blob: 57a009a8ddf7b88f8b232595dfb23377359c8529 [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>
Fraboni, Gino (gf403a)578368f2017-05-03 13:47:43 -040024
25 <parent>
26 <artifactId>ajsc-archetype-parent</artifactId>
27 <groupId>com.att.ajsc</groupId>
28 <version>2.0.0</version>
29 </parent>
30
Arul.Nambi059f42e2017-09-13 15:13:29 -040031 <groupId>org.onap.aai.model-loader</groupId>
Steve Smokowskief768a72017-02-09 15:43:35 -050032 <artifactId>model-loader</artifactId>
Venkata Harish K Kajur8f45aeb2017-03-09 22:05:53 +000033 <version>1.1.0-SNAPSHOT</version>
Jessica Wagantall7813ad12017-09-08 13:13:30 -070034 <name>aai-model-loader</name>
Steve Smokowskief768a72017-02-09 15:43:35 -050035
36 <properties>
37 <docker.location>${basedir}/target</docker.location>
Fraboni, Gino (gf403a)578368f2017-05-03 13:47:43 -040038 <module.ajsc.namespace.name>model-loader</module.ajsc.namespace.name>
39 <module.ajsc.namespace.version>v1</module.ajsc.namespace.version>
40 <ajscRuntimeVersion>2.0.0</ajscRuntimeVersion>
41 <absoluteDistFilesRoot>/appl/${project.artifactId}</absoluteDistFilesRoot>
42 <distFilesRoot>/appl/${project.artifactId}/${project.version}</distFilesRoot>
43 <runAjscHome>${basedir}/target/swm/package/nix/dist_files${distFilesRoot}</runAjscHome>
44
45 <!-- Port Selection. A value of 0 will allow for dynamic port selection.
46 For local testing, you may choose to hardcode this value to something like
47 8080 -->
48 <serverPort>0</serverPort>
49 <sslport>0</sslport>
50
51
52 <!-- For SOA Cloud Installation -->
53 <installOwnerUser>aaiadmin</installOwnerUser>
54 <installOwnerGroup>aaiadmin</installOwnerGroup>
55 <ownerManagementGroup>org.openecomp.aai.dev</ownerManagementGroup>
56
57 <testRouteOffer>workstation</testRouteOffer>
58 <testEnv>DEV</testEnv>
59
Steve Smokowskief768a72017-02-09 15:43:35 -050060 <dependency.scope>provided</dependency.scope>
61 <checkstyle.config.location>google_checks.xml</checkstyle.config.location>
62 <maven.compiler.source>1.8</maven.compiler.source>
Fraboni, Gino (gf403a)578368f2017-05-03 13:47:43 -040063 <maven.compiler.target>1.8</maven.compiler.target>
Venkata Harish K Kajurbe45d5c2017-02-28 20:50:04 +000064 <sonar.language>java</sonar.language>
65 <sonar.java.coveragePlugin>jacoco</sonar.java.coveragePlugin>
66 <sonar.surefire.reportsPath>${project.build.directory}/surefire-reports</sonar.surefire.reportsPath>
67 <sonar.jacoco.reportPath>${project.build.directory}/coverage-reports/jacoco.exec</sonar.jacoco.reportPath>
68 <sonar.jacoco.reportMissing.force.zero>false</sonar.jacoco.reportMissing.force.zero>
69 <sonar.projectVersion>${project.version}</sonar.projectVersion>
Fraboni, Gino (gf403a)578368f2017-05-03 13:47:43 -040070 <nexusproxy>https://nexus.onap.org</nexusproxy>
Steve Smokowskief768a72017-02-09 15:43:35 -050071 </properties>
Steve Smokowskief768a72017-02-09 15:43:35 -050072
Venkata Harish K Kajur74573bf2017-03-08 17:25:12 +000073 <distributionManagement>
74 <repository>
75 <id>ecomp-releases</id>
76 <name>ECOMP Release Repository</name>
77 <url>${nexusproxy}/content/repositories/releases/</url>
78 </repository>
79 <snapshotRepository>
80 <id>ecomp-snapshots</id>
81 <name>ECOMP Snapshot Repository</name>
82 <url>${nexusproxy}/content/repositories/snapshots/</url>
83 </snapshotRepository>
84 </distributionManagement>
Steve Smokowskief768a72017-02-09 15:43:35 -050085 <dependencies>
Steve Smokowskief768a72017-02-09 15:43:35 -050086 <dependency>
87 <groupId>org.mockito</groupId>
88 <artifactId>mockito-all</artifactId>
89 <version>1.10.19</version>
90 <scope>test</scope>
91 </dependency>
92 <dependency>
93 <groupId>org.powermock</groupId>
94 <artifactId>powermock-module-junit4</artifactId>
95 <version>1.6.2</version>
96 <scope>test</scope>
97 </dependency>
98 <dependency>
99 <groupId>org.powermock</groupId>
100 <artifactId>powermock-api-mockito</artifactId>
101 <version>1.6.2</version>
102 <scope>test</scope>
103 </dependency>
104 <dependency>
105 <groupId>org.powermock</groupId>
106 <artifactId>powermock-module-javaagent</artifactId>
107 <version>1.6.2</version>
108 <scope>test</scope>
109 </dependency>
110 <dependency>
111 <groupId>org.powermock</groupId>
112 <artifactId>powermock-module-junit4-rule-agent</artifactId>
113 <version>1.6.2</version>
114 <scope>test</scope>
115 </dependency>
116 <!-- xjc dependencies -->
117 <dependency>
118 <groupId>javax.xml.bind</groupId>
119 <artifactId>jaxb-api</artifactId>
120 <version>2.2.11</version>
121 </dependency>
122 <dependency>
123 <groupId>com.sun.xml.bind</groupId>
124 <artifactId>jaxb-impl</artifactId>
125 <version>2.2.11</version>
126 </dependency>
127 <dependency>
128 <groupId>com.sun.xml.bind</groupId>
129 <artifactId>jaxb-core</artifactId>
130 <version>2.2.11</version>
131 </dependency>
132 <dependency>
133 <groupId>com.sun.xml.bind</groupId>
134 <artifactId>jaxb-xjc</artifactId>
135 <version>2.2.11</version>
136 </dependency>
137 <dependency>
138 <groupId>org.eclipse.persistence</groupId>
139 <artifactId>org.eclipse.persistence.moxy</artifactId>
140 <version>2.6.2</version>
141 <scope>compile</scope>
142 </dependency>
143 <dependency>
144 <groupId>com.sun.jersey</groupId>
145 <artifactId>jersey-client</artifactId>
146 <version>1.18</version>
147 </dependency>
148 <!-- Common logging framework -->
149 <dependency>
Steve Smokowskie6908712017-02-10 16:08:20 -0500150 <groupId>org.openecomp.aai.logging-service</groupId>
Steve Smokowskief768a72017-02-09 15:43:35 -0500151 <artifactId>common-logging</artifactId>
Blimkie, Steven (sb787e)4c0349b2017-05-15 20:15:44 +0300152 <version>1.0.0</version>
Steve Smokowskief768a72017-02-09 15:43:35 -0500153 </dependency>
Steve Smokowskief768a72017-02-09 15:43:35 -0500154 <dependency>
Fraboni, Gino (gf403a)578368f2017-05-03 13:47:43 -0400155 <groupId>ch.qos.logback</groupId>
156 <artifactId>logback-core</artifactId>
157 <version>1.1.7</version>
158 </dependency>
159
160 <dependency>
Lee, Tian (tl5884)3e34fda2017-08-15 16:18:20 +0100161 <groupId>org.openecomp.sdc.sdc-distribution-client</groupId>
Steve Smokowskie6908712017-02-10 16:08:20 -0500162 <artifactId>sdc-distribution-client</artifactId>
Lee, Tian (tl5884)3e34fda2017-08-15 16:18:20 +0100163 <version>1.1.32-SNAPSHOT</version>
Steve Smokowskief768a72017-02-09 15:43:35 -0500164 </dependency>
165 <dependency>
Lee, Tian (tl5884)952a19d2017-08-18 16:45:23 +0100166 <groupId>org.apache.httpcomponents</groupId>
167 <artifactId>httpclient</artifactId>
168 <version>4.5</version>
169 </dependency>
170 <dependency>
Steve Smokowskief768a72017-02-09 15:43:35 -0500171 <groupId>org.json</groupId>
172 <artifactId>json</artifactId>
173 <version>20131018</version>
174 </dependency>
175
176 <dependency>
177 <groupId>org.eclipse.jetty</groupId>
178 <artifactId>jetty-security</artifactId>
179 <version>9.3.8.RC0</version>
180 </dependency>
181
182 <dependency>
183 <groupId>org.springframework</groupId>
184 <artifactId>spring-webmvc</artifactId>
185 <version>4.0.0.RELEASE</version>
186 </dependency>
187 <dependency>
188 <groupId>jline</groupId>
189 <artifactId>jline</artifactId>
190 <version>2.12.1</version>
191 </dependency>
192
193 </dependencies>
194
Steve Smokowskie6908712017-02-10 16:08:20 -0500195 <!-- Plugins and repositories -->
196 <pluginRepositories>
197 <pluginRepository>
198 <id>central</id>
199 <url>http://repo1.maven.org/maven2</url>
200 </pluginRepository>
201 <pluginRepository>
202 <id>EvoSuite</id>
203 <name>EvoSuite Repository</name>
204 <url>http://www.evosuite.org/m2</url>
205 </pluginRepository>
206 </pluginRepositories>
207 <repositories>
208 <repository>
209 <id>central</id>
210 <name>Maven 2 repository 2</name>
211 <url>http://repo2.maven.org/maven2/</url>
212 </repository>
213 <repository>
214 <id>ecomp-releases</id>
215 <name>ECOMP Release Repository</name>
Venkata Harish K Kajur3c76a642017-03-29 15:44:22 +0000216 <url>${nexusproxy}/content/repositories/releases/</url>
Steve Smokowskie6908712017-02-10 16:08:20 -0500217 </repository>
218 <repository>
219 <id>ecomp-snapshots</id>
220 <name>ECOMP Snapshot Repository</name>
Venkata Harish K Kajur3c76a642017-03-29 15:44:22 +0000221 <url>${nexusproxy}/content/repositories/snapshots/</url>
Steve Smokowskie6908712017-02-10 16:08:20 -0500222 </repository>
Venkata Harish K Kajurb290aca2017-03-07 06:11:38 +0000223 <repository>
224 <id>ecomp-staging</id>
225 <name>ECOMP Staging Repository</name>
Venkata Harish K Kajur3c76a642017-03-29 15:44:22 +0000226 <url>${nexusproxy}/content/repositories/staging/</url>
Venkata Harish K Kajurb290aca2017-03-07 06:11:38 +0000227 </repository>
Steve Smokowskie6908712017-02-10 16:08:20 -0500228
229 </repositories>
230
Fraboni, Gino (gf403a)578368f2017-05-03 13:47:43 -0400231 <profiles>
232 <profile>
233 <id>runAjsc</id>
234 <build>
235 <defaultGoal>initialize</defaultGoal>
236 <plugins>
237 <plugin>
238 <groupId>org.codehaus.mojo</groupId>
239 <artifactId>exec-maven-plugin</artifactId>
240 <version>1.3.2</version>
241 <executions>
242 <execution>
243 <phase>initialize</phase>
244 <goals>
245 <goal>java</goal>
246 </goals>
247 <configuration>
248 <includeProjectDependencies>false</includeProjectDependencies>
249 <includePluginDependencies>true</includePluginDependencies>
250 <executable>java</executable>
251 <mainClass>com.att.ajsc.runner.Runner</mainClass>
252 <executableDependency>
253 <groupId>com.att.ajsc</groupId>
254 <artifactId>ajsc-runner</artifactId>
255 </executableDependency>
256 <additionalClasspathElements>
257 <additionalClasspathElement>${basedir}/ajsc-shared-config/etc</additionalClasspathElement>
258 </additionalClasspathElements>
259
260 <environmentVariables>
261 <AJSC_HOME>${runAjscHome}</AJSC_HOME>
262 </environmentVariables>
263
264 <!-- Main AJSC System Properties below (necessary for proper startup) -->
265 <systemProperties>
266 <systemProperty>
267 <key>AJSC_HOME</key>
268 <value>${runAjscHome}</value>
269 </systemProperty>
270 <systemProperty>
271 <key>CONFIG_HOME</key>
272 <value>${basedir}/appconfig-local/</value>
273 </systemProperty>
274 <systemProperty>
275 <key>AJSC_CONF_HOME</key>
276 <value>${basedir}/bundleconfig-local</value>
277 </systemProperty>
278 <systemProperty>
279 <key>logback.configurationFile</key>
280 <value>${basedir}/ajsc-shared-config/etc/logback.xml</value>
281 </systemProperty>
282 <systemProperty>
283 <key>AJSC_SHARED_CONFIG</key>
284 <value>${basedir}/ajsc-shared-config</value>
285 </systemProperty>
286
287 <sysproperty>
288 <key>AJSC_EXTERNAL_LIB_FOLDERS</key>
289 <value>${basedir}/target/commonLibs</value>
290 </sysproperty>
291 <sysproperty>
292 <key>AJSC_EXTERNAL_PROPERTIES_FOLDERS</key>
293 <value>${basedir}/ajsc-shared-config/etc</value>
294 </sysproperty>
295 <systemProperty>
296 <key>AJSC_SERVICE_NAMESPACE</key>
297 <value>${module.ajsc.namespace.name}</value>
298 </systemProperty>
299 <systemProperty>
300 <key>AJSC_SERVICE_VERSION</key>
301 <value>${module.ajsc.namespace.version}</value>
302 </systemProperty>
303 <systemProperty>
304 <key>SOACLOUD_SERVICE_VERSION</key>
305 <value>${project.version}</value>
306 </systemProperty>
307 <systemProperty>
308 <key>server.port</key>
309 <value>${serverPort}</value>
310 </systemProperty>
311 </systemProperties>
312
313 <!-- Command Line Arguments to add to the java command. Here, you
314 can specify the port as well as the Context you want your service to run
315 in. Use context=/ to run in an unnamed Context (Root Context). The default
316 configuration of the AJSC is to run under the / Context. Setting the port
317 here can aid during the development phase of your service. However, you can
318 leave this argument out entirely, and the AJSC will default to using an Ephemeral
319 port. -->
320 <arguments>
321 <argument>context=//</argument>
322 <argument>port=${serverPort}</argument>
323 <argument>sslport=${sslport}</argument>
324 </arguments>
325 </configuration>
326 </execution>
327 </executions>
328 <configuration>
329 <executable>java</executable>
330 </configuration>
331 <dependencies>
332 <dependency>
333 <groupId>com.att.ajsc</groupId>
334 <artifactId>ajsc-runner</artifactId>
335 <version>${ajscRuntimeVersion}</version>
336 </dependency>
337 </dependencies>
338 </plugin>
339 </plugins>
340 </build>
341 </profile>
342 </profiles>
Steve Smokowskie6908712017-02-10 16:08:20 -0500343
Steve Smokowskief768a72017-02-09 15:43:35 -0500344 <build>
345 <plugins>
346 <plugin>
347 <groupId>org.apache.maven.plugins</groupId>
Venkata Harish K Kajur8d5d8862017-02-20 21:33:52 +0000348 <artifactId>maven-resources-plugin</artifactId>
349 <version>2.7</version>
350 <executions>
351 <execution>
352 <id>copy-docker-file</id>
353 <phase>package</phase>
354 <goals>
355 <goal>copy-resources</goal>
356 </goals>
357 <configuration>
358 <outputDirectory>target</outputDirectory>
359 <overwrite>true</overwrite>
360 <resources>
361 <resource>
362 <directory>${basedir}/src/main/docker</directory>
363 <filtering>true</filtering>
364 <includes>
365 <include>**/*</include>
366 </includes>
367 </resource>
Fraboni, Gino (gf403a)578368f2017-05-03 13:47:43 -0400368 <resource>
369 <directory>${basedir}/src/main/bin/</directory>
370 </resource>
Venkata Harish K Kajur8d5d8862017-02-20 21:33:52 +0000371 </resources>
372 </configuration>
373 </execution>
374 </executions>
375 </plugin>
376 <plugin>
377 <groupId>com.spotify</groupId>
378 <artifactId>docker-maven-plugin</artifactId>
379 <version>0.4.11</version>
380 <configuration>
Venkata Harish K Kajur61293a32017-02-20 23:58:13 +0000381 <verbose>true</verbose>
382 <serverId>docker-hub</serverId>
Venkata Harish K Kajur8d5d8862017-02-20 21:33:52 +0000383 <imageName>${docker.push.registry}/openecomp/${project.artifactId}</imageName>
384 <dockerDirectory>${docker.location}</dockerDirectory>
385 <imageTags>
Venkata Harish K Kajur8d5d8862017-02-20 21:33:52 +0000386 <imageTag>latest</imageTag>
387 </imageTags>
388 <forceTags>true</forceTags>
389 </configuration>
390 </plugin>
391 <plugin>
392 <groupId>org.apache.maven.plugins</groupId>
Steve Smokowskief768a72017-02-09 15:43:35 -0500393 <artifactId>maven-dependency-plugin</artifactId>
Jessica Wagantallfaa407b2017-06-12 14:38:05 -0700394 <version>2.8</version>
Steve Smokowskief768a72017-02-09 15:43:35 -0500395 <executions>
396 <execution>
397 <id>copy-agent</id>
398 <phase>process-test-classes</phase>
399 <goals>
400 <goal>copy</goal>
401 </goals>
402 <configuration>
403 <artifactItems>
404 <artifactItem>
405 <groupId>org.powermock</groupId>
406 <artifactId>powermock-module-javaagent</artifactId>
407 <version>1.6.2</version>
408 <outputDirectory>${project.build.directory}/agents</outputDirectory>
409 <destFileName>powermock-javaagent.jar</destFileName>
410 </artifactItem>
411 </artifactItems>
412 </configuration>
413 </execution>
414 </executions>
415 </plugin>
416 <plugin>
417 <groupId>org.apache.maven.plugins</groupId>
418 <artifactId>maven-surefire-plugin</artifactId>
419 <version>2.12.4</version>
420 <configuration>
Venkata Harish K Kajurbe45d5c2017-02-28 20:50:04 +0000421 <argLine>-noverify ${argLine}</argLine>
Steve Smokowskief768a72017-02-09 15:43:35 -0500422 </configuration>
423 </plugin>
424 <plugin>
425 <groupId>org.codehaus.mojo</groupId>
426 <artifactId>jaxb2-maven-plugin</artifactId>
427 <version>2.2</version>
428 <executions>
429 <execution>
430 <id>xjc</id>
431 <goals>
432 <goal>xjc</goal>
433 </goals>
434 </execution>
435 </executions>
436 <configuration>
437 <clearOutputDir>false</clearOutputDir>
438 <outputDirectory>${project.build.directory}/generated-sources</outputDirectory>
439 <sources>
440 <source>${project.basedir}/src/main/resources/schema</source>
441 </sources>
442 <addGeneratedAnnotation>true</addGeneratedAnnotation>
443 </configuration>
444 </plugin>
445 <plugin>
446 <groupId>org.apache.maven.plugins</groupId>
447 <artifactId>maven-compiler-plugin</artifactId>
448 <version>3.1</version>
449 </plugin>
Steve Smokowskie6908712017-02-10 16:08:20 -0500450
Steve Smokowskief768a72017-02-09 15:43:35 -0500451 <!-- Checkstyle plugin - used to report on compliance with -->
452 <!-- the Google style guide. -->
453 <plugin>
454 <groupId>org.apache.maven.plugins</groupId>
455 <artifactId>maven-site-plugin</artifactId>
456 <version>3.3</version>
457 <configuration>
458 <reportPlugins>
459 <plugin>
460 <groupId>org.apache.maven.plugins</groupId>
461 <artifactId>maven-checkstyle-plugin</artifactId>
462 <version>2.17</version>
463 <reportSets>
464 <reportSet>
465 <reports>
466 <report>checkstyle</report>
467 </reports>
468 </reportSet>
469 </reportSets>
470 </plugin>
471 </reportPlugins>
472 </configuration>
473 </plugin>
474
475 <!-- license plugin -->
476 <plugin>
Fraboni, Gino (gf403a)578368f2017-05-03 13:47:43 -0400477 <groupId>com.mycila</groupId>
478 <artifactId>license-maven-plugin</artifactId>
479 <version>3.0</version>
480 <configuration>
481 <header>License.txt</header>
482 <includes>
483 <include>src/main/java/**</include>
484 <include>src/test/java/**</include>
485 </includes>
486 </configuration>
487 <executions>
488 <execution>
489 <goals>
490 <goal>format</goal>
491 </goals>
492 <phase>process-sources</phase>
493 </execution>
494 </executions>
495 </plugin>
496
Steve Smokowski253f6362017-02-13 14:15:58 -0500497 <plugin>
498 <groupId>org.apache.maven.plugins</groupId>
499 <artifactId>maven-deploy-plugin</artifactId>
500 <configuration>
501 <skip>true</skip>
502 </configuration>
503 </plugin>
Venkata Harish K Kajurbe45d5c2017-02-28 20:50:04 +0000504 <plugin>
505 <groupId>org.codehaus.mojo</groupId>
506 <artifactId>sonar-maven-plugin</artifactId>
507 <version>3.2</version>
508 </plugin>
509 <plugin>
510 <groupId>org.jacoco</groupId>
511 <artifactId>jacoco-maven-plugin</artifactId>
512 <version>0.7.7.201606060606</version>
513 <configuration>
514 <dumpOnExit>true</dumpOnExit>
515 </configuration>
516 <executions>
517 <execution>
518 <id>jacoco-initialize-unit-tests</id>
519 <goals>
520 <goal>prepare-agent</goal>
521 </goals>
522 <configuration>
523 <destFile>${project.build.directory}/coverage-reports/jacoco.exec</destFile>
524 <!-- <append>true</append> -->
525 </configuration>
526 </execution>
527 </executions>
528 </plugin>
Venkata Harish K Kajur74573bf2017-03-08 17:25:12 +0000529 <plugin>
530 <groupId>org.sonatype.plugins</groupId>
531 <artifactId>nexus-staging-maven-plugin</artifactId>
532 <version>1.6.7</version>
533 <extensions>true</extensions>
534 <configuration>
535 <nexusUrl>${nexusproxy}</nexusUrl>
536 <stagingProfileId>176c31dfe190a</stagingProfileId>
537 <serverId>ecomp-staging</serverId>
538 </configuration>
539 </plugin>
540
Steve Smokowski253f6362017-02-13 14:15:58 -0500541 </plugins>
Steve Smokowskief768a72017-02-09 15:43:35 -0500542 </build>
543
Steve Smokowski253f6362017-02-13 14:15:58 -0500544
Steve Smokowskief768a72017-02-09 15:43:35 -0500545</project>