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=========================================================
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</version>
27 <packaging>war</packaging>
30 <docker.location>${basedir}/target</docker.location>
31 <!-- Ecomp Version -->
32 <ecomp.version>1.0.0</ecomp.version>
33 <dependency.scope>provided</dependency.scope>
34 <checkstyle.config.location>google_checks.xml</checkstyle.config.location>
35 <maven.compiler.source>1.8</maven.compiler.source>
36 <maven.compiler.target>1.8</maven.compiler.target>
37 <sonar.language>java</sonar.language>
38 <sonar.java.coveragePlugin>jacoco</sonar.java.coveragePlugin>
39 <sonar.surefire.reportsPath>${project.build.directory}/surefire-reports</sonar.surefire.reportsPath>
40 <sonar.jacoco.reportPath>${project.build.directory}/coverage-reports/jacoco.exec</sonar.jacoco.reportPath>
41 <sonar.jacoco.reportMissing.force.zero>false</sonar.jacoco.reportMissing.force.zero>
42 <sonar.projectVersion>${project.version}</sonar.projectVersion>
43 <nexusproxy>https://nexus.onap.org</nexusproxy>
46 <distributionManagement>
48 <id>ecomp-releases</id>
49 <name>ECOMP Release Repository</name>
50 <url>${nexusproxy}/content/repositories/releases/</url>
53 <id>ecomp-snapshots</id>
54 <name>ECOMP Snapshot Repository</name>
55 <url>${nexusproxy}/content/repositories/snapshots/</url>
57 </distributionManagement>
60 <groupId>org.mockito</groupId>
61 <artifactId>mockito-all</artifactId>
62 <version>1.10.19</version>
66 <groupId>org.powermock</groupId>
67 <artifactId>powermock-module-junit4</artifactId>
68 <version>1.6.2</version>
72 <groupId>org.powermock</groupId>
73 <artifactId>powermock-api-mockito</artifactId>
74 <version>1.6.2</version>
78 <groupId>org.powermock</groupId>
79 <artifactId>powermock-module-javaagent</artifactId>
80 <version>1.6.2</version>
84 <groupId>org.powermock</groupId>
85 <artifactId>powermock-module-junit4-rule-agent</artifactId>
86 <version>1.6.2</version>
89 <!-- xjc dependencies -->
91 <groupId>javax.xml.bind</groupId>
92 <artifactId>jaxb-api</artifactId>
93 <version>2.2.11</version>
96 <groupId>com.sun.xml.bind</groupId>
97 <artifactId>jaxb-impl</artifactId>
98 <version>2.2.11</version>
101 <groupId>com.sun.xml.bind</groupId>
102 <artifactId>jaxb-core</artifactId>
103 <version>2.2.11</version>
106 <groupId>com.sun.xml.bind</groupId>
107 <artifactId>jaxb-xjc</artifactId>
108 <version>2.2.11</version>
111 <groupId>org.eclipse.persistence</groupId>
112 <artifactId>org.eclipse.persistence.moxy</artifactId>
113 <version>2.6.2</version>
114 <scope>compile</scope>
117 <groupId>com.sun.jersey</groupId>
118 <artifactId>jersey-client</artifactId>
119 <version>1.18</version>
121 <!-- Common logging framework -->
123 <groupId>org.openecomp.aai.logging-service</groupId>
124 <artifactId>common-logging</artifactId>
125 <version>${ecomp.version}</version>
128 <groupId>org.openecomp.sdc</groupId>
129 <artifactId>sdc-distribution-client</artifactId>
130 <version>${ecomp.version}</version>
133 <groupId>org.json</groupId>
134 <artifactId>json</artifactId>
135 <version>20131018</version>
139 <groupId>org.eclipse.jetty</groupId>
140 <artifactId>jetty-security</artifactId>
141 <version>9.3.8.RC0</version>
145 <groupId>org.springframework</groupId>
146 <artifactId>spring-webmvc</artifactId>
147 <version>4.0.0.RELEASE</version>
150 <groupId>jline</groupId>
151 <artifactId>jline</artifactId>
152 <version>2.12.1</version>
157 <!-- Plugins and repositories -->
161 <url>http://repo1.maven.org/maven2</url>
165 <name>EvoSuite Repository</name>
166 <url>http://www.evosuite.org/m2</url>
168 </pluginRepositories>
172 <name>Maven 2 repository 2</name>
173 <url>http://repo2.maven.org/maven2/</url>
176 <id>ecomp-releases</id>
177 <name>ECOMP Release Repository</name>
178 <url>${nexusproxy}/content/repositories/releases/</url>
181 <id>ecomp-snapshots</id>
182 <name>ECOMP Snapshot Repository</name>
183 <url>${nexusproxy}/content/repositories/snapshots/</url>
186 <id>ecomp-staging</id>
187 <name>ECOMP Staging Repository</name>
188 <url>${nexusproxy}/content/repositories/staging/</url>
197 <groupId>org.apache.maven.plugins</groupId>
198 <artifactId>maven-resources-plugin</artifactId>
199 <version>2.7</version>
202 <id>copy-docker-file</id>
203 <phase>package</phase>
205 <goal>copy-resources</goal>
208 <outputDirectory>target</outputDirectory>
209 <overwrite>true</overwrite>
212 <directory>${basedir}/src/main/docker</directory>
213 <filtering>true</filtering>
215 <include>**/*</include>
224 <groupId>com.spotify</groupId>
225 <artifactId>docker-maven-plugin</artifactId>
226 <version>0.4.11</version>
228 <verbose>true</verbose>
229 <serverId>docker-hub</serverId>
230 <imageName>${docker.push.registry}/openecomp/${project.artifactId}</imageName>
231 <dockerDirectory>${docker.location}</dockerDirectory>
233 <imageTag>latest</imageTag>
235 <forceTags>true</forceTags>
239 <groupId>org.apache.maven.plugins</groupId>
240 <artifactId>maven-dependency-plugin</artifactId>
241 <version>2.8</version>
245 <phase>process-test-classes</phase>
252 <groupId>org.powermock</groupId>
253 <artifactId>powermock-module-javaagent</artifactId>
254 <version>1.6.2</version>
255 <outputDirectory>${project.build.directory}/agents</outputDirectory>
256 <destFileName>powermock-javaagent.jar</destFileName>
264 <groupId>org.apache.maven.plugins</groupId>
265 <artifactId>maven-surefire-plugin</artifactId>
266 <version>2.12.4</version>
268 <argLine>-noverify ${argLine}</argLine>
272 <groupId>org.codehaus.mojo</groupId>
273 <artifactId>jaxb2-maven-plugin</artifactId>
274 <version>2.2</version>
284 <clearOutputDir>false</clearOutputDir>
285 <outputDirectory>${project.build.directory}/generated-sources</outputDirectory>
287 <source>${project.basedir}/src/main/resources/schema</source>
289 <addGeneratedAnnotation>true</addGeneratedAnnotation>
293 <groupId>org.apache.maven.plugins</groupId>
294 <artifactId>maven-compiler-plugin</artifactId>
295 <version>3.1</version>
298 <!-- Checkstyle plugin - used to report on compliance with -->
299 <!-- the Google style guide. -->
301 <groupId>org.apache.maven.plugins</groupId>
302 <artifactId>maven-site-plugin</artifactId>
303 <version>3.3</version>
307 <groupId>org.apache.maven.plugins</groupId>
308 <artifactId>maven-checkstyle-plugin</artifactId>
309 <version>2.17</version>
313 <report>checkstyle</report>
322 <!-- license plugin -->
324 <groupId>org.codehaus.mojo</groupId>
325 <artifactId>license-maven-plugin</artifactId>
326 <version>1.10</version>
328 <addJavaLicenseAfterPackage>false</addJavaLicenseAfterPackage>
330 <exclude>**.json</exclude>
331 <exclude>**.properties</exclude>
333 <processStartTag>============LICENSE_START=======================================================</processStartTag>
334 <processEndTag>============LICENSE_END=========================================================</processEndTag>
335 <sectionDelimiter>================================================================================</sectionDelimiter>
336 <licenseName>apache_v2</licenseName>
337 <inceptionYear>2017</inceptionYear>
338 <organizationName>AT&T Intellectual Property. All rights reserved.</organizationName>
339 <projectName>MODEL LOADER SERVICE</projectName>
340 <canUpdateCopyright>true</canUpdateCopyright>
341 <canUpdateDescription>true</canUpdateDescription>
342 <canUpdateLicense>true</canUpdateLicense>
343 <emptyLineAfterHeader>true</emptyLineAfterHeader>
348 <exclude>**/*.json</exclude>
352 <props>properties</props>
361 <goal>update-file-header</goal>
363 <phase>process-sources</phase>
368 <groupId>org.apache.maven.plugins</groupId>
369 <artifactId>maven-deploy-plugin</artifactId>
375 <groupId>org.codehaus.mojo</groupId>
376 <artifactId>sonar-maven-plugin</artifactId>
377 <version>3.2</version>
380 <groupId>org.jacoco</groupId>
381 <artifactId>jacoco-maven-plugin</artifactId>
382 <version>0.7.7.201606060606</version>
384 <dumpOnExit>true</dumpOnExit>
388 <id>jacoco-initialize-unit-tests</id>
390 <goal>prepare-agent</goal>
393 <destFile>${project.build.directory}/coverage-reports/jacoco.exec</destFile>
394 <!-- <append>true</append> -->
400 <groupId>org.sonatype.plugins</groupId>
401 <artifactId>nexus-staging-maven-plugin</artifactId>
402 <version>1.6.7</version>
403 <extensions>true</extensions>
405 <nexusUrl>${nexusproxy}</nexusUrl>
406 <stagingProfileId>176c31dfe190a</stagingProfileId>
407 <serverId>ecomp-staging</serverId>