[VID-6] Fixed pom files
[vid.git] / pom.xml
1 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"\r
2         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">\r
3         <modelVersion>4.0.0</modelVersion>\r
4         <groupId>org.openecomp.vid</groupId>\r
5         <artifactId>vid-parent</artifactId>\r
6         <packaging>pom</packaging>\r
7         <name>VID Parent Project</name>\r
8 \r
9         <profiles>\r
10                 <!-- DO NOT CHANGE THE *ORDER* IN WHICH THESE PROFILES ARE DEFINED! -->\r
11 \r
12                 <profile>\r
13                         <id>onap</id>\r
14                         <activation>\r
15                                 <activeByDefault>true</activeByDefault>\r
16                         </activation>\r
17                         <modules>\r
18                                 <module>vid-app-common</module>\r
19                                 <module>epsdk-app-onap</module>\r
20                         </modules>\r
21 \r
22                         <repositories>\r
23                                 <repository>\r
24                                         <id>ecomp-releases</id>\r
25                                         <name>VID Release Repository</name>\r
26                                         <url>${nexusproxy}/${releaseNexusPath}</url>\r
27                                 </repository>\r
28                                 <repository>\r
29                                         <id>ecomp-snapshots</id>\r
30                                         <name>VID Snapshot Repository</name>\r
31                                         <url>${nexusproxy}/${snapshotNexusPath}</url>\r
32                                 </repository>\r
33                                 <repository>\r
34                                         <id>ecomp-staging</id>\r
35                                         <name>VID Staging Repository</name>\r
36                                         <url>${nexusproxy}/${stagingNexusPath}</url>\r
37                                 </repository>\r
38                                 <repository>\r
39                                         <!-- Snapshots repository has ECOMP snapshot artifacts -->\r
40                                         <id>oss-snapshots</id>\r
41                                         <name>oss Central - Snapshots</name>\r
42                                         <url>https://oss.sonatype.org/service/local/repositories/releases/content/</url>\r
43                                 </repository>\r
44                         </repositories>\r
45 \r
46                         <distributionManagement>\r
47                                 <repository>\r
48                                         <id>ecomp-releases</id>\r
49                                         <name>VID Release Repository</name>\r
50                                         <url>${nexusproxy}/${releaseNexusPath}</url>\r
51                                 </repository>\r
52                                 <snapshotRepository>\r
53                                         <id>ecomp-snapshots</id>\r
54                                         <name>VID Snapshot Repository</name>\r
55                                         <url>${nexusproxy}/${snapshotNexusPath}</url>\r
56                                 </snapshotRepository>\r
57                                 <!-- added for javadoc -->\r
58                                 <site>\r
59                                         <id>ecomp-site</id>\r
60                                         <url>dav:${nexusproxy}${sitePath}</url>\r
61                                 </site>\r
62                         </distributionManagement>\r
63 \r
64                 </profile>\r
65 \r
66                 <profile>\r
67                         <id>docker</id>\r
68                         <modules>\r
69                                 <module>vid-app-common</module>\r
70                                 <module>epsdk-app-onap</module>\r
71                                 <module>deliveries</module>\r
72                         </modules>\r
73                 </profile>\r
74         </profiles>\r
75 \r
76         <properties>\r
77                 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>\r
78                 <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>\r
79                 <build.version>1.1.0-SNAPSHOT</build.version>\r
80                 <nexusproxy>https://nexus.onap.org</nexusproxy>\r
81                 <snapshotNexusPath>/content/repositories/snapshots/</snapshotNexusPath>\r
82                 <releaseNexusPath>/content/repositories/releases/</releaseNexusPath>\r
83                 <stagingNexusPath>/content/repositories/staging/</stagingNexusPath>\r
84                 <sitePath>/content/sites/site/org/openecomp/vid/${project.version}</sitePath>\r
85         </properties>\r
86 \r
87         <build>\r
88                 <plugins>\r
89                         <plugin>\r
90                                 <groupId>org.codehaus.mojo</groupId>\r
91                                 <artifactId>versions-maven-plugin</artifactId>\r
92                                 <version>1.3.1</version>\r
93                         </plugin>\r
94                         <plugin>\r
95                                 <groupId>org.sonatype.plugins</groupId>\r
96                                 <artifactId>nexus-staging-maven-plugin</artifactId>\r
97                                 <version>1.6.7</version>\r
98                                 <extensions>true</extensions>\r
99                                 <configuration>\r
100                                         <nexusUrl>${nexusproxy}</nexusUrl>\r
101                                         <stagingProfileId>176c31dfe190a</stagingProfileId>\r
102                                         <serverId>ecomp-staging</serverId>\r
103                                 </configuration>\r
104                         </plugin>\r
105 \r
106                         <plugin>\r
107                                 <groupId>org.apache.maven.plugins</groupId>\r
108                                 <artifactId>maven-site-plugin</artifactId>\r
109                                 <version>3.6</version>\r
110                                 <dependencies>\r
111                                         <dependency>\r
112                                                 <groupId>org.apache.maven.wagon</groupId>\r
113                                                 <artifactId>wagon-webdav-jackrabbit</artifactId>\r
114                                                 <version>2.10</version>\r
115                                         </dependency>\r
116                                 </dependencies>\r
117                         </plugin>\r
118                         <plugin>\r
119 \r
120                                 <groupId>org.codehaus.mojo</groupId>\r
121                                 <artifactId>versions-maven-plugin</artifactId>\r
122                                 <version>1.3.1</version>\r
123                         </plugin>\r
124                         <plugin>\r
125                                 <groupId>org.sonatype.plugins</groupId>\r
126                                 <artifactId>nexus-staging-maven-plugin</artifactId>\r
127                                 <version>1.6.7</version>\r
128                                 <extensions>true</extensions>\r
129                                 <configuration>\r
130                                         <nexusUrl>${nexusproxy}</nexusUrl>\r
131                                         <stagingProfileId>176c31dfe190a</stagingProfileId>\r
132                                         <serverId>ecomp-staging</serverId>\r
133                                 </configuration>\r
134                         </plugin>\r
135 \r
136                         <!-- license plugin for open source -->\r
137                         <plugin>\r
138                                 <groupId>org.codehaus.mojo</groupId>\r
139                                 <artifactId>license-maven-plugin</artifactId>\r
140                                 <version>1.9</version>\r
141                                 <configuration>\r
142                                         <licenseName>apache_v2</licenseName>\r
143                                         <inceptionYear>2017</inceptionYear>\r
144                                         <organizationName>AT&amp;T</organizationName>\r
145                                         <projectName>VID</projectName>\r
146                                         <addJavaLicenseAfterPackage>false</addJavaLicenseAfterPackage>\r
147                                         <processStartTag>========LICENSE_START===========</processStartTag>\r
148                                         <processEndTag>============LICENSE_END===========</processEndTag>\r
149                                         <roots>\r
150                                                 <root>src/main/java</root>\r
151                                         </roots>\r
152                                         <excludes>\r
153                                                 <exclude>*.png</exclude>\r
154                                         </excludes>\r
155                                 </configuration>\r
156                         </plugin>\r
157 \r
158                         <plugin>\r
159                                 <groupId>org.apache.maven.plugins</groupId>\r
160                                 <artifactId>maven-deploy-plugin</artifactId>\r
161                                 <version>2.8</version>\r
162                         </plugin>\r
163 \r
164                         <plugin>\r
165                                 <groupId>org.apache.maven.plugins</groupId>\r
166                                 <artifactId>maven-surefire-plugin</artifactId>\r
167                                 <version>2.17</version>\r
168                         </plugin>\r
169 \r
170                         <plugin>\r
171                                 <groupId>org.apache.maven.plugins</groupId>\r
172                                 <artifactId>maven-compiler-plugin</artifactId>\r
173                                 <version>2.3.2</version>\r
174 \r
175                                 <configuration>\r
176                                         <debug>true</debug>\r
177                                         <compilerArgument>-Xlint</compilerArgument>\r
178                                         <verbose>true</verbose>\r
179                                         <showDeprecation>true</showDeprecation>\r
180                                         <showWarnings>true</showWarnings>\r
181                                         <source>1.8</source>\r
182                                         <target>1.8</target>\r
183                                 </configuration>\r
184                         </plugin>\r
185                         <plugin>\r
186                                 <groupId>org.apache.maven.plugins</groupId>\r
187                                 <artifactId>maven-site-plugin</artifactId>\r
188                                 <version>3.6</version>\r
189                                 <dependencies>\r
190                                         <dependency>\r
191                                                 <groupId>org.apache.maven.wagon</groupId>\r
192                                                 <artifactId>wagon-webdav-jackrabbit</artifactId>\r
193                                                 <version>2.10</version>\r
194                                         </dependency>\r
195                                 </dependencies>\r
196                         </plugin>\r
197                         <plugin>\r
198                                 <groupId>com.blackducksoftware.integration</groupId>\r
199                                 <artifactId>hub-maven-plugin</artifactId>\r
200                                 <version>1.4.0</version>\r
201                                 <inherited>false</inherited>\r
202                                 <configuration>\r
203                                         <hubProjectName>${project.name}</hubProjectName>\r
204                                         <outputDirectory>${project.basedir}</outputDirectory>\r
205                                 </configuration>\r
206                                 <executions>\r
207                                         <execution>\r
208                                                 <id>create-bdio-file</id>\r
209                                                 <phase>package</phase>\r
210                                                 <goals>\r
211                                                         <goal>createHubOutput</goal>\r
212                                                 </goals>\r
213                                         </execution>\r
214                                 </executions>\r
215                         </plugin>\r
216                 </plugins>\r
217         </build>\r
218 \r
219         <!-- added for javadoc -->\r
220         <pluginRepositories>\r
221                 <!-- Black Duck plugin dependencies -->\r
222                 <pluginRepository>\r
223                         <id>JCenter</id>\r
224                         <name>JCenter Repository</name>\r
225                         <url>http://jcenter.bintray.com</url>\r
226                 </pluginRepository>\r
227 \r
228                 <pluginRepository>\r
229                         <id>Restlet</id>\r
230                         <name>Restlet Repository</name>\r
231                         <url>http://maven.restlet.com</url>\r
232                 </pluginRepository>\r
233         </pluginRepositories>\r
234         <reporting>\r
235                 <plugins>\r
236 \r
237                         <plugin>\r
238                                 <groupId>org.apache.maven.plugins</groupId>\r
239                                 <artifactId>maven-javadoc-plugin</artifactId>\r
240                                 <version>2.10.4</version>\r
241                                 <configuration>\r
242                                         <failOnError>false</failOnError>\r
243                                         <doclet>org.umlgraph.doclet.UmlGraphDoc</doclet>\r
244                                         <docletArtifact>\r
245                                                 <groupId>org.umlgraph</groupId>\r
246                                                 <artifactId>umlgraph</artifactId>\r
247                                                 <version>5.6</version>\r
248                                         </docletArtifact>\r
249                                         <additionalparam>-views</additionalparam>\r
250                                         <useStandardDocletOptions>true</useStandardDocletOptions>\r
251                                 </configuration>\r
252                         </plugin>\r
253                 </plugins>\r
254         </reporting>\r
255         <dependencies>\r
256                 <dependency>\r
257                         <groupId>junit</groupId>\r
258                         <artifactId>junit</artifactId>\r
259                         <version>4.11</version>\r
260                         <scope>test</scope>\r
261                 </dependency>\r
262         </dependencies>\r
263         <version>1.1.0-SNAPSHOT</version>\r
264 </project>\r