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