Update Poms and Tests
[aai/model-loader.git] / pom.xml
1 <!--
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>
24         <groupId>org.openecomp.aai.model-loader</groupId>
25         <artifactId>model-loader</artifactId>
26         <version>1.0.0-SNAPSHOT</version>
27         <packaging>war</packaging>
28         
29         <properties>
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>
40         </properties>
41
42         <dependencies>
43                 <dependency>
44                         <groupId>org.mockito</groupId>
45                         <artifactId>mockito-all</artifactId>
46                         <version>1.10.19</version>
47                         <scope>test</scope>
48                 </dependency>
49                 <dependency>
50                         <groupId>org.powermock</groupId>
51                         <artifactId>powermock-module-junit4</artifactId>
52                         <version>1.6.2</version>
53                         <scope>test</scope>
54                 </dependency>
55                 <dependency>
56                         <groupId>org.powermock</groupId>
57                         <artifactId>powermock-api-mockito</artifactId>
58                         <version>1.6.2</version>
59                         <scope>test</scope>
60                 </dependency>
61                 <dependency>
62                         <groupId>org.powermock</groupId>
63                         <artifactId>powermock-module-javaagent</artifactId>
64                         <version>1.6.2</version>
65                         <scope>test</scope>
66                 </dependency>
67                 <dependency>
68                         <groupId>org.powermock</groupId>
69                         <artifactId>powermock-module-junit4-rule-agent</artifactId>
70                         <version>1.6.2</version>
71                         <scope>test</scope>
72                 </dependency>
73                 <!-- xjc dependencies -->
74                 <dependency>
75                         <groupId>javax.xml.bind</groupId>
76                         <artifactId>jaxb-api</artifactId>
77                         <version>2.2.11</version>
78                 </dependency>
79                 <dependency>
80                         <groupId>com.sun.xml.bind</groupId>
81                         <artifactId>jaxb-impl</artifactId>
82                         <version>2.2.11</version>
83                 </dependency>
84                 <dependency>
85                         <groupId>com.sun.xml.bind</groupId>
86                         <artifactId>jaxb-core</artifactId>
87                         <version>2.2.11</version>
88                 </dependency>
89                 <dependency>
90                         <groupId>com.sun.xml.bind</groupId>
91                         <artifactId>jaxb-xjc</artifactId>
92                         <version>2.2.11</version>
93                 </dependency>
94                 <dependency>
95                         <groupId>org.eclipse.persistence</groupId>
96                         <artifactId>org.eclipse.persistence.moxy</artifactId>
97                         <version>2.6.2</version>
98                         <scope>compile</scope>
99                 </dependency>
100                 <dependency>
101                         <groupId>com.sun.jersey</groupId>
102                         <artifactId>jersey-client</artifactId>
103                         <version>1.18</version>
104                 </dependency>
105                 <!-- Common logging framework -->
106                 <dependency>
107                         <groupId>org.openecomp.aai.logging-service</groupId>
108                         <artifactId>common-logging</artifactId>
109                         <version>1.0.0-SNAPSHOT</version>
110                 </dependency>
111                 <dependency>
112                         <groupId>org.openecomp.sdc</groupId>
113                     <artifactId>sdc-distribution-client</artifactId>
114                         <version>0.9.0</version>
115                 </dependency>
116                 <dependency>
117                         <groupId>org.json</groupId>
118                         <artifactId>json</artifactId>
119                         <version>20131018</version>
120                 </dependency>
121                 
122                 <dependency>
123                     <groupId>org.eclipse.jetty</groupId>
124                     <artifactId>jetty-security</artifactId>
125                     <version>9.3.8.RC0</version>
126                 </dependency>
127                 
128         <dependency>
129             <groupId>org.springframework</groupId>
130             <artifactId>spring-webmvc</artifactId>
131             <version>4.0.0.RELEASE</version>
132         </dependency>
133         <dependency>
134             <groupId>jline</groupId>
135             <artifactId>jline</artifactId>
136             <version>2.12.1</version>
137         </dependency>
138         
139         </dependencies>
140         
141         <!-- Plugins and repositories -->
142           <pluginRepositories>
143                 <pluginRepository>
144                            <id>central</id>
145                           <url>http://repo1.maven.org/maven2</url>
146                    </pluginRepository>
147                   <pluginRepository>
148                           <id>EvoSuite</id>
149                         <name>EvoSuite Repository</name>
150                          <url>http://www.evosuite.org/m2</url>
151                   </pluginRepository>
152           </pluginRepositories>
153            <repositories>
154                    <repository>
155                           <id>central</id>
156                           <name>Maven 2 repository 2</name>
157                           <url>http://repo2.maven.org/maven2/</url>
158                   </repository>
159               <repository>
160                          <id>ecomp-releases</id>
161                           <name>ECOMP Release Repository</name>
162                          <url>https://nexus.openecomp.org/content/repositories/releases/</url>
163                   </repository>
164                   <repository>
165                          <id>ecomp-snapshots</id>
166                           <name>ECOMP Snapshot Repository</name>
167                          <url>https://nexus.openecomp.org/content/repositories/snapshots/</url>
168                           <snapshots>
169             <updatePolicy>always</updatePolicy>
170         </snapshots>
171         <releases>
172             <updatePolicy>always</updatePolicy>
173         </releases>
174                   </repository>
175
176           </repositories>
177         
178         
179         <build>
180                 <plugins>
181                         <plugin>
182                                 <groupId>org.apache.maven.plugins</groupId>
183                                 <artifactId>maven-dependency-plugin</artifactId>
184                                 <version>2.5.1</version>
185                                 <executions>
186                                         <execution>
187                                                 <id>copy-agent</id>
188                                                 <phase>process-test-classes</phase>
189                                                 <goals>
190                                                         <goal>copy</goal>
191                                                 </goals>
192                                                 <configuration>
193                                                         <artifactItems>
194                                                                 <artifactItem>
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>
200                                                                 </artifactItem>
201                                                         </artifactItems>
202                                                 </configuration>
203                                         </execution>
204                                 </executions>
205                         </plugin>
206                         <plugin>
207                                 <groupId>org.apache.maven.plugins</groupId>
208                                 <artifactId>maven-surefire-plugin</artifactId>
209                                 <version>2.12.4</version>
210                                 <configuration>
211                                         <argLine>-javaagent:${project.build.directory}/agents/powermock-javaagent.jar
212                                                 -noverify</argLine>
213                                 </configuration>
214                         </plugin>
215                         <plugin>
216                                 <groupId>org.codehaus.mojo</groupId>
217                                 <artifactId>jaxb2-maven-plugin</artifactId>
218                                 <version>2.2</version>
219                                 <executions>
220                                         <execution>
221                                                 <id>xjc</id>
222                                                 <goals>
223                                                         <goal>xjc</goal>
224                                                 </goals>
225                                         </execution>
226                                 </executions>
227                                 <configuration>
228                                         <clearOutputDir>false</clearOutputDir>
229                                         <outputDirectory>${project.build.directory}/generated-sources</outputDirectory>
230                                         <sources>
231                                                 <source>${project.basedir}/src/main/resources/schema</source>
232                                         </sources>
233                                         <addGeneratedAnnotation>true</addGeneratedAnnotation>
234                                 </configuration>
235                         </plugin>
236                         <plugin>
237                                 <groupId>org.apache.maven.plugins</groupId>
238                                 <artifactId>maven-compiler-plugin</artifactId>
239                                 <version>3.1</version>
240                         </plugin>
241                         <plugin>
242                                 <groupId>org.apache.maven.plugins</groupId>
243                                 <artifactId>maven-resources-plugin</artifactId>
244                                 <version>2.7</version>
245                                 <executions>
246                                         <execution>
247                                                 <id>copy-docker-file</id>
248                                                 <phase>package</phase>
249                                                 <goals>
250                                                         <goal>copy-resources</goal>
251                                                 </goals>
252                                                 <configuration>
253                                                         <outputDirectory>target</outputDirectory>
254                                                         <overwrite>true</overwrite>
255                                                         <resources>
256                                                                 <resource>
257                                                                         <directory>${basedir}/src/main/docker</directory>
258                                                                         <filtering>true</filtering>
259                                                                         <includes>
260                                                                                 <include>**/*</include>
261                                                                         </includes>
262                                                                 </resource>
263                                                         </resources>
264                                                 </configuration>
265                                         </execution>
266                                 </executions>
267                         </plugin>
268                         <plugin>
269                                 <groupId>com.spotify</groupId>
270                                 <artifactId>docker-maven-plugin</artifactId>
271                                 <version>0.4.11</version>
272                                 <configuration>
273                                         <dockerHost>${docker.url}</dockerHost>
274                                         <registry>${docker.registry}</registry>
275                                         <authConfig>
276                         <username>${docker.login}</username>
277                         <password>${docker.password}</password>
278                     </authConfig>
279                                         <imageName>${docker.registry}/ecomp/${project.artifactId}</imageName>
280                                         <dockerDirectory>${docker.location}</dockerDirectory>
281                                         <registryUrl>https://${docker.registry}</registryUrl>
282                                         <imageTags>
283                                                 <imageTag>${docker.imagetag}</imageTag>
284                                                 <imageTag>latest</imageTag>
285                                         </imageTags>
286                                         <forceTags>true</forceTags>
287                                 </configuration>
288                         </plugin>
289                 
290                         <!-- Checkstyle plugin - used to report on compliance with -->
291                         <!-- the Google style guide. -->
292                         <plugin>
293                                 <groupId>org.apache.maven.plugins</groupId>
294                                 <artifactId>maven-site-plugin</artifactId>
295                                 <version>3.3</version>
296                                 <configuration>
297                                         <reportPlugins>
298                                                 <plugin>
299                                                         <groupId>org.apache.maven.plugins</groupId>
300                                                         <artifactId>maven-checkstyle-plugin</artifactId>
301                                                         <version>2.17</version>
302                                                         <reportSets>
303                                                                 <reportSet>
304                                                                         <reports>
305                                                                                 <report>checkstyle</report>
306                                                                         </reports>
307                                                                 </reportSet>
308                                                         </reportSets>
309                                                 </plugin>
310                                         </reportPlugins>
311                                 </configuration>
312                         </plugin>
313                         
314             <!-- license plugin -->
315             <plugin>
316               <groupId>org.codehaus.mojo</groupId>
317               <artifactId>license-maven-plugin</artifactId>
318               <version>1.10</version>
319               <configuration>
320                 <addJavaLicenseAfterPackage>false</addJavaLicenseAfterPackage>
321                 <excludes>
322                   <exclude>**.json</exclude>
323                   <exclude>**.properties</exclude>
324                 </excludes>
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&amp;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>
336                 <roots>
337                   <root>.</root>
338                 </roots>
339                 <excludes>
340                   <exclude>**/*.json</exclude>
341                 </excludes>
342                 <extraExtensions>
343                   <route>xml</route>
344                   <props>properties</props>
345                   <xsd>xml</xsd>
346                   <txt>java</txt>
347                 </extraExtensions>
348               </configuration>
349               <executions>
350                 <execution>
351                   <id>first</id>
352                   <goals>
353                     <goal>update-file-header</goal>
354                   </goals>
355                   <phase>process-sources</phase>
356                 </execution>
357               </executions>
358             </plugin>
359                 </plugins>
360         </build>
361         
362 </project>