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-SNAPSHOT</version>
27 <packaging>war</packaging>
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>
44 <groupId>org.mockito</groupId>
45 <artifactId>mockito-all</artifactId>
46 <version>1.10.19</version>
50 <groupId>org.powermock</groupId>
51 <artifactId>powermock-module-junit4</artifactId>
52 <version>1.6.2</version>
56 <groupId>org.powermock</groupId>
57 <artifactId>powermock-api-mockito</artifactId>
58 <version>1.6.2</version>
62 <groupId>org.powermock</groupId>
63 <artifactId>powermock-module-javaagent</artifactId>
64 <version>1.6.2</version>
68 <groupId>org.powermock</groupId>
69 <artifactId>powermock-module-junit4-rule-agent</artifactId>
70 <version>1.6.2</version>
73 <!-- xjc dependencies -->
75 <groupId>javax.xml.bind</groupId>
76 <artifactId>jaxb-api</artifactId>
77 <version>2.2.11</version>
80 <groupId>com.sun.xml.bind</groupId>
81 <artifactId>jaxb-impl</artifactId>
82 <version>2.2.11</version>
85 <groupId>com.sun.xml.bind</groupId>
86 <artifactId>jaxb-core</artifactId>
87 <version>2.2.11</version>
90 <groupId>com.sun.xml.bind</groupId>
91 <artifactId>jaxb-xjc</artifactId>
92 <version>2.2.11</version>
95 <groupId>org.eclipse.persistence</groupId>
96 <artifactId>org.eclipse.persistence.moxy</artifactId>
97 <version>2.6.2</version>
98 <scope>compile</scope>
101 <groupId>com.sun.jersey</groupId>
102 <artifactId>jersey-client</artifactId>
103 <version>1.18</version>
105 <!-- Common logging framework -->
107 <groupId>org.openecomp.aai.logging-service</groupId>
108 <artifactId>common-logging</artifactId>
109 <version>1.0.0-SNAPSHOT</version>
112 <groupId>org.openecomp.sdc</groupId>
113 <artifactId>sdc-distribution-client</artifactId>
114 <version>0.9.0</version>
117 <groupId>org.json</groupId>
118 <artifactId>json</artifactId>
119 <version>20131018</version>
123 <groupId>org.eclipse.jetty</groupId>
124 <artifactId>jetty-security</artifactId>
125 <version>9.3.8.RC0</version>
129 <groupId>org.springframework</groupId>
130 <artifactId>spring-webmvc</artifactId>
131 <version>4.0.0.RELEASE</version>
134 <groupId>jline</groupId>
135 <artifactId>jline</artifactId>
136 <version>2.12.1</version>
141 <!-- Plugins and repositories -->
145 <url>http://repo1.maven.org/maven2</url>
149 <name>EvoSuite Repository</name>
150 <url>http://www.evosuite.org/m2</url>
152 </pluginRepositories>
156 <name>Maven 2 repository 2</name>
157 <url>http://repo2.maven.org/maven2/</url>
160 <id>ecomp-releases</id>
161 <name>ECOMP Release Repository</name>
162 <url>https://nexus.openecomp.org/content/repositories/releases/</url>
165 <id>ecomp-snapshots</id>
166 <name>ECOMP Snapshot Repository</name>
167 <url>https://nexus.openecomp.org/content/repositories/snapshots/</url>
169 <updatePolicy>always</updatePolicy>
172 <updatePolicy>always</updatePolicy>
182 <groupId>org.apache.maven.plugins</groupId>
183 <artifactId>maven-dependency-plugin</artifactId>
184 <version>2.5.1</version>
188 <phase>process-test-classes</phase>
195 <groupId>org.powermock</groupId>
196 <artifactId>powermock-module-javaagent</artifactId>
197 <version>1.6.2</version>
198 <outputDirectory>${project.build.directory}/agents</outputDirectory>
199 <destFileName>powermock-javaagent.jar</destFileName>
207 <groupId>org.apache.maven.plugins</groupId>
208 <artifactId>maven-surefire-plugin</artifactId>
209 <version>2.12.4</version>
211 <argLine>-javaagent:${project.build.directory}/agents/powermock-javaagent.jar
216 <groupId>org.codehaus.mojo</groupId>
217 <artifactId>jaxb2-maven-plugin</artifactId>
218 <version>2.2</version>
228 <clearOutputDir>false</clearOutputDir>
229 <outputDirectory>${project.build.directory}/generated-sources</outputDirectory>
231 <source>${project.basedir}/src/main/resources/schema</source>
233 <addGeneratedAnnotation>true</addGeneratedAnnotation>
237 <groupId>org.apache.maven.plugins</groupId>
238 <artifactId>maven-compiler-plugin</artifactId>
239 <version>3.1</version>
242 <groupId>org.apache.maven.plugins</groupId>
243 <artifactId>maven-resources-plugin</artifactId>
244 <version>2.7</version>
247 <id>copy-docker-file</id>
248 <phase>package</phase>
250 <goal>copy-resources</goal>
253 <outputDirectory>target</outputDirectory>
254 <overwrite>true</overwrite>
257 <directory>${basedir}/src/main/docker</directory>
258 <filtering>true</filtering>
260 <include>**/*</include>
269 <groupId>com.spotify</groupId>
270 <artifactId>docker-maven-plugin</artifactId>
271 <version>0.4.11</version>
273 <dockerHost>${docker.url}</dockerHost>
274 <registry>${docker.registry}</registry>
276 <username>${docker.login}</username>
277 <password>${docker.password}</password>
279 <imageName>${docker.registry}/ecomp/${project.artifactId}</imageName>
280 <dockerDirectory>${docker.location}</dockerDirectory>
281 <registryUrl>https://${docker.registry}</registryUrl>
283 <imageTag>${docker.imagetag}</imageTag>
284 <imageTag>latest</imageTag>
286 <forceTags>true</forceTags>
290 <!-- Checkstyle plugin - used to report on compliance with -->
291 <!-- the Google style guide. -->
293 <groupId>org.apache.maven.plugins</groupId>
294 <artifactId>maven-site-plugin</artifactId>
295 <version>3.3</version>
299 <groupId>org.apache.maven.plugins</groupId>
300 <artifactId>maven-checkstyle-plugin</artifactId>
301 <version>2.17</version>
305 <report>checkstyle</report>
314 <!-- license plugin -->
316 <groupId>org.codehaus.mojo</groupId>
317 <artifactId>license-maven-plugin</artifactId>
318 <version>1.10</version>
320 <addJavaLicenseAfterPackage>false</addJavaLicenseAfterPackage>
322 <exclude>**.json</exclude>
323 <exclude>**.properties</exclude>
325 <processStartTag>============LICENSE_START=======================================================</processStartTag>
326 <processEndTag>============LICENSE_END=========================================================</processEndTag>
327 <sectionDelimiter>================================================================================</sectionDelimiter>
328 <licenseName>apache_v2</licenseName>
329 <inceptionYear>2017</inceptionYear>
330 <organizationName>AT&T Intellectual Property. All rights reserved.</organizationName>
331 <projectName>MODEL LOADER SERVICE</projectName>
332 <canUpdateCopyright>true</canUpdateCopyright>
333 <canUpdateDescription>true</canUpdateDescription>
334 <canUpdateLicense>true</canUpdateLicense>
335 <emptyLineAfterHeader>true</emptyLineAfterHeader>
340 <exclude>**/*.json</exclude>
344 <props>properties</props>
353 <goal>update-file-header</goal>
355 <phase>process-sources</phase>