blob: 2228b40ee4e68b986db00e02aa3fcb3d6b0f18e1 [file] [log] [blame]
Steve Smokowskief768a72017-02-09 15:43:35 -05001<!--
2 ============LICENSE_START=======================================================
3 MODEL LOADER SERVICE
4 ================================================================================
5 Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
6 ================================================================================
7 Licensed under the Apache License, Version 2.0 (the "License");
8 you may not use this file except in compliance with the License.
9 You may obtain a copy of the License at
10
11 http://www.apache.org/licenses/LICENSE-2.0
12
13 Unless required by applicable law or agreed to in writing, software
14 distributed under the License is distributed on an "AS IS" BASIS,
15 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 See the License for the specific language governing permissions and
17 limitations under the License.
18 ============LICENSE_END=========================================================
19 -->
20
21<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
22 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
23 <modelVersion>4.0.0</modelVersion>
24 <groupId>org.openecomp.aai.model-loader</groupId>
25 <artifactId>model-loader</artifactId>
26 <version>1.0.0-SNAPSHOT</version>
27 <packaging>war</packaging>
28
29 <properties>
30 <docker.location>${basedir}/target</docker.location>
31 <docker.url>${dockerurl}</docker.url>
32 <docker.imagetag>${dockertag}</docker.imagetag>
33 <docker.login>${dockerlogin}</docker.login>
34 <docker.password>${dockerpassword}</docker.password>
35 <docker.registry>${dockerregistry}</docker.registry>
36 <dependency.scope>provided</dependency.scope>
37 <checkstyle.config.location>google_checks.xml</checkstyle.config.location>
38 <maven.compiler.source>1.8</maven.compiler.source>
39 <maven.compiler.target>1.8</maven.compiler.target>
40 </properties>
41
42 <repositories>
43 <repository>
44 <id>maven-central</id>
45 <name>maven-central</name>
46 <url>http://central.maven.org/maven2/</url>
47 <releases>
48 <enabled>true</enabled>
49 <updatePolicy>never</updatePolicy>
50 </releases>
51 <snapshots>
52 <enabled>false</enabled>
53 </snapshots>
54 </repository>
55 <repository>
56 <id>ecomp-nexus</id>
57 <name>ecomp-nexus</name>
58 <url>https://ecomp-nexus:8443/repository/maven-releases/</url>
59 <releases>
60 <enabled>true</enabled>
61 <updatePolicy>never</updatePolicy>
62 </releases>
63 <snapshots>
64 <enabled>false</enabled>
65 </snapshots>
66 </repository>
67 </repositories>
68
69
70 <dependencies>
71 <!-- powermockito dependencies -->
72 <dependency>
73 <groupId>org.mockito</groupId>
74 <artifactId>mockito-all</artifactId>
75 <version>1.10.19</version>
76 <scope>test</scope>
77 </dependency>
78 <dependency>
79 <groupId>org.powermock</groupId>
80 <artifactId>powermock-module-junit4</artifactId>
81 <version>1.6.2</version>
82 <scope>test</scope>
83 </dependency>
84 <dependency>
85 <groupId>org.powermock</groupId>
86 <artifactId>powermock-api-mockito</artifactId>
87 <version>1.6.2</version>
88 <scope>test</scope>
89 </dependency>
90 <dependency>
91 <groupId>org.powermock</groupId>
92 <artifactId>powermock-module-javaagent</artifactId>
93 <version>1.6.2</version>
94 <scope>test</scope>
95 </dependency>
96 <dependency>
97 <groupId>org.powermock</groupId>
98 <artifactId>powermock-module-junit4-rule-agent</artifactId>
99 <version>1.6.2</version>
100 <scope>test</scope>
101 </dependency>
102 <!-- xjc dependencies -->
103 <dependency>
104 <groupId>javax.xml.bind</groupId>
105 <artifactId>jaxb-api</artifactId>
106 <version>2.2.11</version>
107 </dependency>
108 <dependency>
109 <groupId>com.sun.xml.bind</groupId>
110 <artifactId>jaxb-impl</artifactId>
111 <version>2.2.11</version>
112 </dependency>
113 <dependency>
114 <groupId>com.sun.xml.bind</groupId>
115 <artifactId>jaxb-core</artifactId>
116 <version>2.2.11</version>
117 </dependency>
118 <dependency>
119 <groupId>com.sun.xml.bind</groupId>
120 <artifactId>jaxb-xjc</artifactId>
121 <version>2.2.11</version>
122 </dependency>
123 <dependency>
124 <groupId>org.eclipse.persistence</groupId>
125 <artifactId>org.eclipse.persistence.moxy</artifactId>
126 <version>2.6.2</version>
127 <scope>compile</scope>
128 </dependency>
129 <dependency>
130 <groupId>com.sun.jersey</groupId>
131 <artifactId>jersey-client</artifactId>
132 <version>1.18</version>
133 </dependency>
134 <!-- Common logging framework -->
135 <dependency>
136 <groupId>org.openecomp.cl</groupId>
137 <artifactId>common-logging</artifactId>
138 <version>1.0.0-SNAPSHOT</version>
139 </dependency>
140 <!-- ASDC Client Library -->
141 <dependency>
142 <groupId>org.openecomp.sdc</groupId>
143 <artifactId>sdc-distribution-client</artifactId>
144 <version>1.1.2</version>
145 </dependency>
146 <dependency>
147 <groupId>org.json</groupId>
148 <artifactId>json</artifactId>
149 <version>20131018</version>
150 </dependency>
151
152 <dependency>
153 <groupId>org.eclipse.jetty</groupId>
154 <artifactId>jetty-security</artifactId>
155 <version>9.3.8.RC0</version>
156 </dependency>
157
158 <dependency>
159 <groupId>org.springframework</groupId>
160 <artifactId>spring-webmvc</artifactId>
161 <version>4.0.0.RELEASE</version>
162 </dependency>
163 <dependency>
164 <groupId>jline</groupId>
165 <artifactId>jline</artifactId>
166 <version>2.12.1</version>
167 </dependency>
168
169 </dependencies>
170
171 <build>
172 <plugins>
173 <plugin>
174 <groupId>org.apache.maven.plugins</groupId>
175 <artifactId>maven-dependency-plugin</artifactId>
176 <version>2.5.1</version>
177 <executions>
178 <execution>
179 <id>copy-agent</id>
180 <phase>process-test-classes</phase>
181 <goals>
182 <goal>copy</goal>
183 </goals>
184 <configuration>
185 <artifactItems>
186 <artifactItem>
187 <groupId>org.powermock</groupId>
188 <artifactId>powermock-module-javaagent</artifactId>
189 <version>1.6.2</version>
190 <outputDirectory>${project.build.directory}/agents</outputDirectory>
191 <destFileName>powermock-javaagent.jar</destFileName>
192 </artifactItem>
193 </artifactItems>
194 </configuration>
195 </execution>
196 </executions>
197 </plugin>
198 <plugin>
199 <groupId>org.apache.maven.plugins</groupId>
200 <artifactId>maven-surefire-plugin</artifactId>
201 <version>2.12.4</version>
202 <configuration>
203 <argLine>-javaagent:${project.build.directory}/agents/powermock-javaagent.jar
204 -noverify</argLine>
205 </configuration>
206 </plugin>
207 <plugin>
208 <groupId>org.codehaus.mojo</groupId>
209 <artifactId>jaxb2-maven-plugin</artifactId>
210 <version>2.2</version>
211 <executions>
212 <execution>
213 <id>xjc</id>
214 <goals>
215 <goal>xjc</goal>
216 </goals>
217 </execution>
218 </executions>
219 <configuration>
220 <clearOutputDir>false</clearOutputDir>
221 <outputDirectory>${project.build.directory}/generated-sources</outputDirectory>
222 <sources>
223 <source>${project.basedir}/src/main/resources/schema</source>
224 </sources>
225 <addGeneratedAnnotation>true</addGeneratedAnnotation>
226 </configuration>
227 </plugin>
228 <plugin>
229 <groupId>org.apache.maven.plugins</groupId>
230 <artifactId>maven-compiler-plugin</artifactId>
231 <version>3.1</version>
232 </plugin>
233 <plugin>
234 <groupId>org.apache.maven.plugins</groupId>
235 <artifactId>maven-resources-plugin</artifactId>
236 <version>2.7</version>
237 <executions>
238 <execution>
239 <id>copy-docker-file</id>
240 <phase>package</phase>
241 <goals>
242 <goal>copy-resources</goal>
243 </goals>
244 <configuration>
245 <outputDirectory>target</outputDirectory>
246 <overwrite>true</overwrite>
247 <resources>
248 <resource>
249 <directory>${basedir}/src/main/docker</directory>
250 <filtering>true</filtering>
251 <includes>
252 <include>**/*</include>
253 </includes>
254 </resource>
255 </resources>
256 </configuration>
257 </execution>
258 </executions>
259 </plugin>
260 <plugin>
261 <groupId>com.spotify</groupId>
262 <artifactId>docker-maven-plugin</artifactId>
263 <version>0.4.11</version>
264 <configuration>
265 <dockerHost>${docker.url}</dockerHost>
266 <registry>${docker.registry}</registry>
267 <authConfig>
268 <username>${docker.login}</username>
269 <password>${docker.password}</password>
270 </authConfig>
271 <imageName>${docker.registry}/ecomp/${project.artifactId}</imageName>
272 <dockerDirectory>${docker.location}</dockerDirectory>
273 <registryUrl>https://${docker.registry}</registryUrl>
274 <imageTags>
275 <imageTag>${docker.imagetag}</imageTag>
276 <imageTag>latest</imageTag>
277 </imageTags>
278 <forceTags>true</forceTags>
279 </configuration>
280 </plugin>
281 <!-- blackduck maven plugin -->
282 <plugin>
283 <groupId>com.blackducksoftware.integration</groupId>
284 <artifactId>hub-maven-plugin</artifactId>
285 <version>1.0.4</version>
286 <inherited>false</inherited>
287 <configuration>
288 <target>${project.basedir/target}</target>
289 </configuration>
290 <executions>
291 <execution>
292 <id>create-bdio-file</id>
293 <phase>package</phase>
294 <goals>
295 <goal>createHubOutput</goal>
296 </goals>
297 </execution>
298 </executions>
299 </plugin>
300 <!-- Checkstyle plugin - used to report on compliance with -->
301 <!-- the Google style guide. -->
302 <plugin>
303 <groupId>org.apache.maven.plugins</groupId>
304 <artifactId>maven-site-plugin</artifactId>
305 <version>3.3</version>
306 <configuration>
307 <reportPlugins>
308 <plugin>
309 <groupId>org.apache.maven.plugins</groupId>
310 <artifactId>maven-checkstyle-plugin</artifactId>
311 <version>2.17</version>
312 <reportSets>
313 <reportSet>
314 <reports>
315 <report>checkstyle</report>
316 </reports>
317 </reportSet>
318 </reportSets>
319 </plugin>
320 </reportPlugins>
321 </configuration>
322 </plugin>
323
324 <!-- license plugin -->
325 <plugin>
326 <groupId>org.codehaus.mojo</groupId>
327 <artifactId>license-maven-plugin</artifactId>
328 <version>1.10</version>
329 <configuration>
330 <addJavaLicenseAfterPackage>false</addJavaLicenseAfterPackage>
331 <excludes>
332 <exclude>**.json</exclude>
333 <exclude>**.properties</exclude>
334 </excludes>
335 <processStartTag>============LICENSE_START=======================================================</processStartTag>
336 <processEndTag>============LICENSE_END=========================================================</processEndTag>
337 <sectionDelimiter>================================================================================</sectionDelimiter>
338 <licenseName>apache_v2</licenseName>
339 <inceptionYear>2017</inceptionYear>
340 <organizationName>AT&amp;T Intellectual Property. All rights reserved.</organizationName>
341 <projectName>MODEL LOADER SERVICE</projectName>
342 <canUpdateCopyright>true</canUpdateCopyright>
343 <canUpdateDescription>true</canUpdateDescription>
344 <canUpdateLicense>true</canUpdateLicense>
345 <emptyLineAfterHeader>true</emptyLineAfterHeader>
346 <roots>
347 <root>.</root>
348 </roots>
349 <excludes>
350 <exclude>**/*.json</exclude>
351 </excludes>
352 <extraExtensions>
353 <route>xml</route>
354 <props>properties</props>
355 <xsd>xml</xsd>
356 <txt>java</txt>
357 </extraExtensions>
358 </configuration>
359 <executions>
360 <execution>
361 <id>first</id>
362 <goals>
363 <goal>update-file-header</goal>
364 </goals>
365 <phase>process-sources</phase>
366 </execution>
367 </executions>
368 </plugin>
369 </plugins>
370 </build>
371
372</project>