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>
47 <groupId>org.mockito</groupId>
48 <artifactId>mockito-all</artifactId>
49 <version>1.10.19</version>
53 <groupId>org.powermock</groupId>
54 <artifactId>powermock-module-junit4</artifactId>
55 <version>1.6.2</version>
59 <groupId>org.powermock</groupId>
60 <artifactId>powermock-api-mockito</artifactId>
61 <version>1.6.2</version>
65 <groupId>org.powermock</groupId>
66 <artifactId>powermock-module-javaagent</artifactId>
67 <version>1.6.2</version>
71 <groupId>org.powermock</groupId>
72 <artifactId>powermock-module-junit4-rule-agent</artifactId>
73 <version>1.6.2</version>
76 <!-- xjc dependencies -->
78 <groupId>javax.xml.bind</groupId>
79 <artifactId>jaxb-api</artifactId>
80 <version>2.2.11</version>
83 <groupId>com.sun.xml.bind</groupId>
84 <artifactId>jaxb-impl</artifactId>
85 <version>2.2.11</version>
88 <groupId>com.sun.xml.bind</groupId>
89 <artifactId>jaxb-core</artifactId>
90 <version>2.2.11</version>
93 <groupId>com.sun.xml.bind</groupId>
94 <artifactId>jaxb-xjc</artifactId>
95 <version>2.2.11</version>
98 <groupId>org.eclipse.persistence</groupId>
99 <artifactId>org.eclipse.persistence.moxy</artifactId>
100 <version>2.6.2</version>
101 <scope>compile</scope>
104 <groupId>com.sun.jersey</groupId>
105 <artifactId>jersey-client</artifactId>
106 <version>1.18</version>
108 <!-- Common logging framework -->
110 <groupId>org.openecomp.aai.logging-service</groupId>
111 <artifactId>common-logging</artifactId>
112 <version>${ecomp.version}</version>
115 <groupId>org.openecomp.sdc</groupId>
116 <artifactId>sdc-distribution-client</artifactId>
117 <version>${ecomp.version}</version>
120 <groupId>org.json</groupId>
121 <artifactId>json</artifactId>
122 <version>20131018</version>
126 <groupId>org.eclipse.jetty</groupId>
127 <artifactId>jetty-security</artifactId>
128 <version>9.3.8.RC0</version>
132 <groupId>org.springframework</groupId>
133 <artifactId>spring-webmvc</artifactId>
134 <version>4.0.0.RELEASE</version>
137 <groupId>jline</groupId>
138 <artifactId>jline</artifactId>
139 <version>2.12.1</version>
144 <!-- Plugins and repositories -->
148 <url>http://repo1.maven.org/maven2</url>
152 <name>EvoSuite Repository</name>
153 <url>http://www.evosuite.org/m2</url>
155 </pluginRepositories>
159 <name>Maven 2 repository 2</name>
160 <url>http://repo2.maven.org/maven2/</url>
163 <id>ecomp-releases</id>
164 <name>ECOMP Release Repository</name>
165 <url>https://nexus.openecomp.org/content/repositories/releases/</url>
168 <id>ecomp-snapshots</id>
169 <name>ECOMP Snapshot Repository</name>
170 <url>https://nexus.openecomp.org/content/repositories/snapshots/</url>
173 <id>ecomp-staging</id>
174 <name>ECOMP Staging Repository</name>
175 <url>https://nexus.openecomp.org/content/repositories/staging/</url>
184 <groupId>org.apache.maven.plugins</groupId>
185 <artifactId>maven-resources-plugin</artifactId>
186 <version>2.7</version>
189 <id>copy-docker-file</id>
190 <phase>package</phase>
192 <goal>copy-resources</goal>
195 <outputDirectory>target</outputDirectory>
196 <overwrite>true</overwrite>
199 <directory>${basedir}/src/main/docker</directory>
200 <filtering>true</filtering>
202 <include>**/*</include>
211 <groupId>com.spotify</groupId>
212 <artifactId>docker-maven-plugin</artifactId>
213 <version>0.4.11</version>
215 <verbose>true</verbose>
216 <serverId>docker-hub</serverId>
217 <imageName>${docker.push.registry}/openecomp/${project.artifactId}</imageName>
218 <dockerDirectory>${docker.location}</dockerDirectory>
220 <imageTag>latest</imageTag>
222 <forceTags>true</forceTags>
226 <groupId>org.apache.maven.plugins</groupId>
227 <artifactId>maven-dependency-plugin</artifactId>
228 <version>2.5.1</version>
232 <phase>process-test-classes</phase>
239 <groupId>org.powermock</groupId>
240 <artifactId>powermock-module-javaagent</artifactId>
241 <version>1.6.2</version>
242 <outputDirectory>${project.build.directory}/agents</outputDirectory>
243 <destFileName>powermock-javaagent.jar</destFileName>
251 <groupId>org.apache.maven.plugins</groupId>
252 <artifactId>maven-surefire-plugin</artifactId>
253 <version>2.12.4</version>
255 <argLine>-noverify ${argLine}</argLine>
259 <groupId>org.codehaus.mojo</groupId>
260 <artifactId>jaxb2-maven-plugin</artifactId>
261 <version>2.2</version>
271 <clearOutputDir>false</clearOutputDir>
272 <outputDirectory>${project.build.directory}/generated-sources</outputDirectory>
274 <source>${project.basedir}/src/main/resources/schema</source>
276 <addGeneratedAnnotation>true</addGeneratedAnnotation>
280 <groupId>org.apache.maven.plugins</groupId>
281 <artifactId>maven-compiler-plugin</artifactId>
282 <version>3.1</version>
285 <!-- Checkstyle plugin - used to report on compliance with -->
286 <!-- the Google style guide. -->
288 <groupId>org.apache.maven.plugins</groupId>
289 <artifactId>maven-site-plugin</artifactId>
290 <version>3.3</version>
294 <groupId>org.apache.maven.plugins</groupId>
295 <artifactId>maven-checkstyle-plugin</artifactId>
296 <version>2.17</version>
300 <report>checkstyle</report>
309 <!-- license plugin -->
311 <groupId>org.codehaus.mojo</groupId>
312 <artifactId>license-maven-plugin</artifactId>
313 <version>1.10</version>
315 <addJavaLicenseAfterPackage>false</addJavaLicenseAfterPackage>
317 <exclude>**.json</exclude>
318 <exclude>**.properties</exclude>
320 <processStartTag>============LICENSE_START=======================================================</processStartTag>
321 <processEndTag>============LICENSE_END=========================================================</processEndTag>
322 <sectionDelimiter>================================================================================</sectionDelimiter>
323 <licenseName>apache_v2</licenseName>
324 <inceptionYear>2017</inceptionYear>
325 <organizationName>AT&T Intellectual Property. All rights reserved.</organizationName>
326 <projectName>MODEL LOADER SERVICE</projectName>
327 <canUpdateCopyright>true</canUpdateCopyright>
328 <canUpdateDescription>true</canUpdateDescription>
329 <canUpdateLicense>true</canUpdateLicense>
330 <emptyLineAfterHeader>true</emptyLineAfterHeader>
335 <exclude>**/*.json</exclude>
339 <props>properties</props>
348 <goal>update-file-header</goal>
350 <phase>process-sources</phase>
355 <groupId>org.apache.maven.plugins</groupId>
356 <artifactId>maven-deploy-plugin</artifactId>
362 <groupId>org.codehaus.mojo</groupId>
363 <artifactId>sonar-maven-plugin</artifactId>
364 <version>3.2</version>
367 <groupId>org.jacoco</groupId>
368 <artifactId>jacoco-maven-plugin</artifactId>
369 <version>0.7.7.201606060606</version>
371 <dumpOnExit>true</dumpOnExit>
375 <id>jacoco-initialize-unit-tests</id>
377 <goal>prepare-agent</goal>
380 <destFile>${project.build.directory}/coverage-reports/jacoco.exec</destFile>
381 <!-- <append>true</append> -->