2 ============LICENSE_START=======================================================
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
11 http://www.apache.org/licenses/LICENSE-2.0
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=========================================================
20 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
21 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
22 <modelVersion>4.0.0</modelVersion>
25 <artifactId>ajsc-archetype-parent</artifactId>
26 <groupId>com.att.ajsc</groupId>
27 <version>2.0.0</version>
30 <groupId>org.onap.aai.model-loader</groupId>
31 <artifactId>model-loader</artifactId>
32 <version>1.2.0-SNAPSHOT</version>
33 <name>aai-model-loader</name>
36 <docker.location>${basedir}/target</docker.location>
37 <module.ajsc.namespace.name>model-loader</module.ajsc.namespace.name>
38 <module.ajsc.namespace.version>v1</module.ajsc.namespace.version>
39 <ajscRuntimeVersion>2.0.0</ajscRuntimeVersion>
40 <absoluteDistFilesRoot>/appl/${project.artifactId}</absoluteDistFilesRoot>
41 <distFilesRoot>/appl/${project.artifactId}/${project.version}</distFilesRoot>
42 <runAjscHome>${basedir}/target/swm/package/nix/dist_files${distFilesRoot}</runAjscHome>
44 <!-- Port Selection. A value of 0 will allow for dynamic port selection.
45 For local testing, you may choose to hardcode this value to something like
47 <serverPort>0</serverPort>
51 <!-- For SOA Cloud Installation -->
52 <installOwnerUser>aaiadmin</installOwnerUser>
53 <installOwnerGroup>aaiadmin</installOwnerGroup>
54 <ownerManagementGroup>org.openecomp.aai.dev</ownerManagementGroup>
56 <testRouteOffer>workstation</testRouteOffer>
57 <testEnv>DEV</testEnv>
59 <dependency.scope>provided</dependency.scope>
60 <checkstyle.config.location>google_checks.xml</checkstyle.config.location>
61 <maven.compiler.source>1.8</maven.compiler.source>
62 <maven.compiler.target>1.8</maven.compiler.target>
63 <sonar.language>java</sonar.language>
64 <sonar.java.coveragePlugin>jacoco</sonar.java.coveragePlugin>
65 <sonar.surefire.reportsPath>${project.build.directory}/surefire-reports</sonar.surefire.reportsPath>
66 <sonar.jacoco.reportPath>${project.build.directory}/coverage-reports/jacoco.exec</sonar.jacoco.reportPath>
67 <sonar.jacoco.reportMissing.force.zero>false</sonar.jacoco.reportMissing.force.zero>
68 <sonar.projectVersion>${project.version}</sonar.projectVersion>
69 <nexusproxy>https://nexus.onap.org</nexusproxy>
72 <distributionManagement>
74 <id>ecomp-releases</id>
75 <name>ECOMP Release Repository</name>
76 <url>${nexusproxy}/content/repositories/releases/</url>
79 <id>ecomp-snapshots</id>
80 <name>ECOMP Snapshot Repository</name>
81 <url>${nexusproxy}/content/repositories/snapshots/</url>
83 </distributionManagement>
87 <groupId>org.mockito</groupId>
88 <artifactId>mockito-all</artifactId>
89 <version>1.10.19</version>
93 <groupId>org.powermock</groupId>
94 <artifactId>powermock-module-junit4</artifactId>
95 <version>1.6.2</version>
99 <groupId>org.powermock</groupId>
100 <artifactId>powermock-api-mockito</artifactId>
101 <version>1.6.2</version>
105 <groupId>org.powermock</groupId>
106 <artifactId>powermock-module-javaagent</artifactId>
107 <version>1.6.2</version>
111 <groupId>org.powermock</groupId>
112 <artifactId>powermock-module-junit4-rule-agent</artifactId>
113 <version>1.6.2</version>
116 <!-- xjc dependencies -->
118 <groupId>javax.xml.bind</groupId>
119 <artifactId>jaxb-api</artifactId>
120 <version>2.2.11</version>
123 <groupId>com.sun.xml.bind</groupId>
124 <artifactId>jaxb-impl</artifactId>
125 <version>2.2.11</version>
128 <groupId>com.sun.xml.bind</groupId>
129 <artifactId>jaxb-core</artifactId>
130 <version>2.2.11</version>
133 <groupId>com.sun.xml.bind</groupId>
134 <artifactId>jaxb-xjc</artifactId>
135 <version>2.2.11</version>
138 <groupId>org.eclipse.persistence</groupId>
139 <artifactId>org.eclipse.persistence.moxy</artifactId>
140 <version>2.6.2</version>
141 <scope>compile</scope>
144 <groupId>com.sun.jersey</groupId>
145 <artifactId>jersey-client</artifactId>
146 <version>1.18</version>
148 <!-- Common logging framework -->
150 <groupId>org.onap.aai.logging-service</groupId>
151 <artifactId>common-logging</artifactId>
152 <version>1.1.0</version>
155 <groupId>ch.qos.logback</groupId>
156 <artifactId>logback-core</artifactId>
157 <version>1.1.7</version>
160 <groupId>org.openecomp.sdc.sdc-distribution-client</groupId>
161 <artifactId>sdc-distribution-client</artifactId>
162 <version>1.1.32</version>
165 <groupId>org.apache.httpcomponents</groupId>
166 <artifactId>httpclient</artifactId>
167 <version>4.5</version>
170 <groupId>org.json</groupId>
171 <artifactId>json</artifactId>
172 <version>20131018</version>
175 <groupId>org.eclipse.jetty</groupId>
176 <artifactId>jetty-security</artifactId>
177 <version>9.3.8.RC0</version>
180 <groupId>org.springframework</groupId>
181 <artifactId>spring-webmvc</artifactId>
182 <version>4.0.0.RELEASE</version>
185 <groupId>jline</groupId>
186 <artifactId>jline</artifactId>
187 <version>2.12.1</version>
191 <!-- Plugins and repositories -->
195 <url>http://repo1.maven.org/maven2</url>
199 <name>EvoSuite Repository</name>
200 <url>http://www.evosuite.org/m2</url>
202 </pluginRepositories>
207 <name>Maven 2 repository 2</name>
208 <url>http://repo2.maven.org/maven2/</url>
211 <id>ecomp-releases</id>
212 <name>ECOMP Release Repository</name>
213 <url>${nexusproxy}/content/repositories/releases/</url>
216 <id>ecomp-snapshots</id>
217 <name>ECOMP Snapshot Repository</name>
218 <url>${nexusproxy}/content/repositories/snapshots/</url>
221 <id>ecomp-staging</id>
222 <name>ECOMP Staging Repository</name>
223 <url>${nexusproxy}/content/repositories/staging/</url>
231 <defaultGoal>initialize</defaultGoal>
234 <groupId>org.codehaus.mojo</groupId>
235 <artifactId>exec-maven-plugin</artifactId>
236 <version>1.3.2</version>
239 <phase>initialize</phase>
244 <includeProjectDependencies>false</includeProjectDependencies>
245 <includePluginDependencies>true</includePluginDependencies>
246 <executable>java</executable>
247 <mainClass>com.att.ajsc.runner.Runner</mainClass>
248 <executableDependency>
249 <groupId>com.att.ajsc</groupId>
250 <artifactId>ajsc-runner</artifactId>
251 </executableDependency>
252 <additionalClasspathElements>
253 <additionalClasspathElement>${basedir}/ajsc-shared-config/etc</additionalClasspathElement>
254 </additionalClasspathElements>
256 <environmentVariables>
257 <AJSC_HOME>${runAjscHome}</AJSC_HOME>
258 </environmentVariables>
260 <!-- Main AJSC System Properties below (necessary for proper startup) -->
264 <value>${runAjscHome}</value>
267 <key>CONFIG_HOME</key>
268 <value>${basedir}/appconfig-local/</value>
271 <key>AJSC_CONF_HOME</key>
272 <value>${basedir}/bundleconfig-local</value>
275 <key>logback.configurationFile</key>
276 <value>${basedir}/ajsc-shared-config/etc/logback.xml</value>
279 <key>AJSC_SHARED_CONFIG</key>
280 <value>${basedir}/ajsc-shared-config</value>
284 <key>AJSC_EXTERNAL_LIB_FOLDERS</key>
285 <value>${basedir}/target/commonLibs</value>
288 <key>AJSC_EXTERNAL_PROPERTIES_FOLDERS</key>
289 <value>${basedir}/ajsc-shared-config/etc</value>
292 <key>AJSC_SERVICE_NAMESPACE</key>
293 <value>${module.ajsc.namespace.name}</value>
296 <key>AJSC_SERVICE_VERSION</key>
297 <value>${module.ajsc.namespace.version}</value>
300 <key>SOACLOUD_SERVICE_VERSION</key>
301 <value>${project.version}</value>
304 <key>server.port</key>
305 <value>${serverPort}</value>
309 <!-- Command Line Arguments to add to the java command. Here, you
310 can specify the port as well as the Context you want your service to run
311 in. Use context=/ to run in an unnamed Context (Root Context). The default
312 configuration of the AJSC is to run under the / Context. Setting the port
313 here can aid during the development phase of your service. However, you can
314 leave this argument out entirely, and the AJSC will default to using an Ephemeral
317 <argument>context=//</argument>
318 <argument>port=${serverPort}</argument>
319 <argument>sslport=${sslport}</argument>
325 <executable>java</executable>
329 <groupId>com.att.ajsc</groupId>
330 <artifactId>ajsc-runner</artifactId>
331 <version>${ajscRuntimeVersion}</version>
343 <groupId>org.apache.maven.plugins</groupId>
344 <artifactId>maven-resources-plugin</artifactId>
345 <version>2.7</version>
348 <id>copy-docker-file</id>
349 <phase>package</phase>
351 <goal>copy-resources</goal>
354 <outputDirectory>target</outputDirectory>
355 <overwrite>true</overwrite>
358 <directory>${basedir}/src/main/docker</directory>
359 <filtering>true</filtering>
361 <include>**/*</include>
365 <directory>${basedir}/src/main/bin/</directory>
373 <groupId>com.spotify</groupId>
374 <artifactId>docker-maven-plugin</artifactId>
375 <version>0.4.11</version>
377 <verbose>true</verbose>
378 <serverId>docker-hub</serverId>
379 <imageName>${docker.push.registry}/onap/${project.artifactId}</imageName>
380 <dockerDirectory>${docker.location}</dockerDirectory>
382 <imageTag>latest</imageTag>
384 <forceTags>true</forceTags>
388 <groupId>org.apache.maven.plugins</groupId>
389 <artifactId>maven-dependency-plugin</artifactId>
390 <version>2.8</version>
394 <phase>process-test-classes</phase>
401 <groupId>org.powermock</groupId>
402 <artifactId>powermock-module-javaagent</artifactId>
403 <version>1.6.2</version>
404 <outputDirectory>${project.build.directory}/agents</outputDirectory>
405 <destFileName>powermock-javaagent.jar</destFileName>
413 <groupId>org.apache.maven.plugins</groupId>
414 <artifactId>maven-surefire-plugin</artifactId>
415 <version>2.12.4</version>
417 <argLine>-noverify ${argLine}</argLine>
421 <groupId>org.codehaus.mojo</groupId>
422 <artifactId>jaxb2-maven-plugin</artifactId>
423 <version>2.2</version>
433 <clearOutputDir>false</clearOutputDir>
434 <outputDirectory>${project.build.directory}/generated-sources</outputDirectory>
436 <source>${project.basedir}/src/main/resources/schema</source>
438 <addGeneratedAnnotation>true</addGeneratedAnnotation>
442 <groupId>org.apache.maven.plugins</groupId>
443 <artifactId>maven-compiler-plugin</artifactId>
444 <version>3.1</version>
447 <!-- Checkstyle plugin - used to report on compliance with -->
448 <!-- the Google style guide. -->
450 <groupId>org.apache.maven.plugins</groupId>
451 <artifactId>maven-site-plugin</artifactId>
452 <version>3.3</version>
456 <groupId>org.apache.maven.plugins</groupId>
457 <artifactId>maven-checkstyle-plugin</artifactId>
458 <version>2.17</version>
462 <report>checkstyle</report>
471 <!-- license plugin -->
473 <groupId>com.mycila</groupId>
474 <artifactId>license-maven-plugin</artifactId>
475 <version>3.0</version>
477 <header>License.txt</header>
479 <include>src/main/java/**</include>
480 <include>src/test/java/**</include>
488 <phase>process-sources</phase>
494 <groupId>org.apache.maven.plugins</groupId>
495 <artifactId>maven-deploy-plugin</artifactId>
501 <groupId>org.codehaus.mojo</groupId>
502 <artifactId>sonar-maven-plugin</artifactId>
503 <version>3.2</version>
506 <groupId>org.jacoco</groupId>
507 <artifactId>jacoco-maven-plugin</artifactId>
508 <version>0.7.7.201606060606</version>
510 <dumpOnExit>true</dumpOnExit>
514 <id>jacoco-initialize-unit-tests</id>
516 <goal>prepare-agent</goal>
519 <destFile>${project.build.directory}/coverage-reports/jacoco.exec</destFile>
520 <!-- <append>true</append> -->
526 <groupId>org.sonatype.plugins</groupId>
527 <artifactId>nexus-staging-maven-plugin</artifactId>
528 <version>1.6.7</version>
529 <extensions>true</extensions>
531 <nexusUrl>${nexusproxy}</nexusUrl>
532 <stagingProfileId>176c31dfe190a</stagingProfileId>
533 <serverId>ecomp-staging</serverId>