1<!--
2This file is part of Dependency-Check.
3
4Licensed under the Apache License, Version 2.0 (the "License");
5you may not use this file except in compliance with the License.
6You may obtain a copy of the License at
7
8    http://www.apache.org/licenses/LICENSE-2.0
9
10Unless required by applicable law or agreed to in writing, software
11distributed under the License is distributed on an "AS IS" BASIS,
12WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13See the License for the specific language governing permissions and
14limitations under the License.
15
16Copyright (c) 2012 - Jeremy Long. All Rights Reserved.
17-->
18<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
19    <modelVersion>4.0.0</modelVersion>
20    <parent>
21        <groupId>org.owasp</groupId>
22        <artifactId>dependency-check-parent</artifactId>
23        <version>3.1.1</version>
24    </parent>
25
26    <artifactId>dependency-check-cli</artifactId>
27    <packaging>jar</packaging>
28
29    <name>Dependency-Check Command Line</name>
30    <description>dependency-check-cli is an command line tool that uses dependency-check-core to detect publicly disclosed vulnerabilities associated with the scanned project dependencies. The tool will generate a report listing the dependency, any identified Common Platform Enumeration (CPE) identifiers, and the associated Common Vulnerability and Exposure (CVE) entries.</description>
31    <build>
32        <finalName>dependency-check-${project.version}</finalName>
33        <resources>
34            <resource>
35                <directory>src/main/resources</directory>
36                <includes>
37                    <include>**/*.properties</include>
38                    <include>logback.xml</include>
39                </includes>
40                <filtering>true</filtering>
41            </resource>
42            <resource>
43                <directory>${basedir}</directory>
44                <targetPath>META-INF</targetPath>
45                <includes>
46                    <include>LICENSE.txt</include>
47                    <include>NOTICE.txt</include>
48                </includes>
49            </resource>
50        </resources>
51        <plugins>
52            <plugin>
53                <groupId>org.apache.maven.plugins</groupId>
54                <artifactId>maven-jar-plugin</artifactId>
55                <configuration>
56                    <archive>
57                        <manifest>
58                            <mainClass>org.owasp.dependencycheck.App</mainClass>
59                        </manifest>
60                    </archive>
61                </configuration>
62            </plugin>
63            <plugin>
64                <groupId>org.codehaus.mojo</groupId>
65                <artifactId>appassembler-maven-plugin</artifactId>
66                <configuration>
67                    <programs>
68                        <program>
69                            <mainClass>org.owasp.dependencycheck.App</mainClass>
70                            <id>dependency-check</id>
71                        </program>
72                    </programs>
73                    <assembleDirectory>${project.build.directory}/release</assembleDirectory>
74                    <licenseHeaderFile>${basedir}/src/main/assembly/license.txt</licenseHeaderFile>
75                    <binFileExtensions>
76                        <unix>.sh</unix>
77                    </binFileExtensions>
78                    <configurationDirectory>plugins/*</configurationDirectory>
79                    <includeConfigurationDirectoryInClasspath>true</includeConfigurationDirectoryInClasspath>
80                </configuration>
81                <executions>
82                    <execution>
83                        <id>assemble</id>
84                        <goals>
85                            <goal>assemble</goal>
86                        </goals>
87                    </execution>
88                </executions>
89            </plugin>
90            <plugin>
91                <groupId>org.apache.maven.plugins</groupId>
92                <artifactId>maven-assembly-plugin</artifactId>
93                <configuration>
94                    <archive>
95                        <manifest>
96                            <mainClass>org.owasp.dependencycheck.App</mainClass>
97                        </manifest>
98                    </archive>
99                    <attach>false</attach> <!-- don't install/deploy this archive -->
100                    <descriptorRefs>
101                        <descriptorRef>jar-with-dependencies</descriptorRef>
102                    </descriptorRefs>
103                </configuration>
104                <executions>
105                    <execution>
106                        <id>create-distribution</id>
107                        <phase>package</phase>
108                        <goals>
109                            <goal>single</goal>
110                        </goals>
111                        <configuration>
112                            <descriptors>
113                                <descriptor>src/main/assembly/release.xml</descriptor>
114                            </descriptors>
115                        </configuration>
116                    </execution>
117                </executions>
118            </plugin>
119        </plugins>
120    </build>
121    <reporting>
122        <plugins>
123            <plugin>
124                <groupId>org.apache.maven.plugins</groupId>
125                <artifactId>maven-checkstyle-plugin</artifactId>
126                <version>${reporting.checkstyle-plugin.version}</version>
127                <configuration>
128                    <enableRulesSummary>false</enableRulesSummary>
129                    <enableFilesSummary>false</enableFilesSummary>
130                    <configLocation>${basedir}/../src/main/config/checkstyle-checks.xml</configLocation>
131                    <headerLocation>${basedir}/../src/main/config/checkstyle-header.txt</headerLocation>
132                    <suppressionsLocation>${basedir}/../src/main/config/checkstyle-suppressions.xml</suppressionsLocation>
133                    <suppressionsFileExpression>checkstyle.suppressions.file</suppressionsFileExpression>
134                </configuration>
135            </plugin>
136            <plugin>
137                <groupId>org.apache.maven.plugins</groupId>
138                <artifactId>maven-pmd-plugin</artifactId>
139                <version>${reporting.pmd-plugin.version}</version>
140                <configuration>
141                    <targetJdk>1.6</targetJdk>
142                    <linkXRef>true</linkXRef>
143                    <sourceEncoding>utf-8</sourceEncoding>
144                    <excludes>
145                        <exclude>**/generated/*.java</exclude>
146                    </excludes>
147                    <rulesets>
148                        <ruleset>../src/main/config/dcrules.xml</ruleset>
149                        <ruleset>/rulesets/java/basic.xml</ruleset>
150                        <ruleset>/rulesets/java/imports.xml</ruleset>
151                        <ruleset>/rulesets/java/unusedcode.xml</ruleset>
152                    </rulesets>
153                </configuration>
154            </plugin>
155        </plugins>
156    </reporting>
157    <dependencies>
158        <dependency>
159            <groupId>commons-cli</groupId>
160            <artifactId>commons-cli</artifactId>
161        </dependency>
162        <dependency>
163            <groupId>org.owasp</groupId>
164            <artifactId>dependency-check-core</artifactId>
165            <version>${project.parent.version}</version>
166        </dependency>
167        <dependency>
168            <groupId>org.owasp</groupId>
169            <artifactId>dependency-check-utils</artifactId>
170            <version>${project.parent.version}</version>
171        </dependency>
172        <dependency>
173            <groupId>org.slf4j</groupId>
174            <artifactId>slf4j-api</artifactId>
175        </dependency>
176        <dependency>
177            <groupId>ch.qos.logback</groupId>
178            <artifactId>logback-core</artifactId>
179        </dependency>
180        <dependency>
181            <groupId>ch.qos.logback</groupId>
182            <artifactId>logback-classic</artifactId>
183        </dependency>
184        <dependency>
185            <groupId>org.apache.ant</groupId>
186            <artifactId>ant</artifactId>
187            <exclusions>
188                <exclusion>
189                    <groupId>org.apache.ant</groupId>
190                    <artifactId>ant-launcher</artifactId>
191                </exclusion>
192            </exclusions>
193        </dependency>
194    </dependencies>
195</project>
196