Update version to 1.1.0-SNAPSHOT
[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.1.0-SNAPSHOT</version>
27         <packaging>war</packaging>
28         
29         <properties>
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.openecomp.org</nexusproxy>
44         </properties>
45
46         <distributionManagement>
47                 <repository>
48                         <id>ecomp-releases</id>
49                         <name>ECOMP Release Repository</name>
50                         <url>${nexusproxy}/content/repositories/releases/</url>
51                 </repository>
52                 <snapshotRepository>
53                         <id>ecomp-snapshots</id>
54                         <name>ECOMP Snapshot Repository</name>
55                         <url>${nexusproxy}/content/repositories/snapshots/</url>
56                 </snapshotRepository>
57         </distributionManagement>
58         <dependencies>
59                 <dependency>
60                         <groupId>org.mockito</groupId>
61                         <artifactId>mockito-all</artifactId>
62                         <version>1.10.19</version>
63                         <scope>test</scope>
64                 </dependency>
65                 <dependency>
66                         <groupId>org.powermock</groupId>
67                         <artifactId>powermock-module-junit4</artifactId>
68                         <version>1.6.2</version>
69                         <scope>test</scope>
70                 </dependency>
71                 <dependency>
72                         <groupId>org.powermock</groupId>
73                         <artifactId>powermock-api-mockito</artifactId>
74                         <version>1.6.2</version>
75                         <scope>test</scope>
76                 </dependency>
77                 <dependency>
78                         <groupId>org.powermock</groupId>
79                         <artifactId>powermock-module-javaagent</artifactId>
80                         <version>1.6.2</version>
81                         <scope>test</scope>
82                 </dependency>
83                 <dependency>
84                         <groupId>org.powermock</groupId>
85                         <artifactId>powermock-module-junit4-rule-agent</artifactId>
86                         <version>1.6.2</version>
87                         <scope>test</scope>
88                 </dependency>
89                 <!-- xjc dependencies -->
90                 <dependency>
91                         <groupId>javax.xml.bind</groupId>
92                         <artifactId>jaxb-api</artifactId>
93                         <version>2.2.11</version>
94                 </dependency>
95                 <dependency>
96                         <groupId>com.sun.xml.bind</groupId>
97                         <artifactId>jaxb-impl</artifactId>
98                         <version>2.2.11</version>
99                 </dependency>
100                 <dependency>
101                         <groupId>com.sun.xml.bind</groupId>
102                         <artifactId>jaxb-core</artifactId>
103                         <version>2.2.11</version>
104                 </dependency>
105                 <dependency>
106                         <groupId>com.sun.xml.bind</groupId>
107                         <artifactId>jaxb-xjc</artifactId>
108                         <version>2.2.11</version>
109                 </dependency>
110                 <dependency>
111                         <groupId>org.eclipse.persistence</groupId>
112                         <artifactId>org.eclipse.persistence.moxy</artifactId>
113                         <version>2.6.2</version>
114                         <scope>compile</scope>
115                 </dependency>
116                 <dependency>
117                         <groupId>com.sun.jersey</groupId>
118                         <artifactId>jersey-client</artifactId>
119                         <version>1.18</version>
120                 </dependency>
121                 <!-- Common logging framework -->
122                 <dependency>
123                         <groupId>org.openecomp.aai.logging-service</groupId>
124                         <artifactId>common-logging</artifactId>
125                         <version>${ecomp.version}</version>
126                 </dependency>
127                 <dependency>
128                         <groupId>org.openecomp.sdc</groupId>
129                     <artifactId>sdc-distribution-client</artifactId>
130                     <version>${ecomp.version}</version>
131                 </dependency>
132                 <dependency>
133                         <groupId>org.json</groupId>
134                         <artifactId>json</artifactId>
135                         <version>20131018</version>
136                 </dependency>
137                 
138                 <dependency>
139                     <groupId>org.eclipse.jetty</groupId>
140                     <artifactId>jetty-security</artifactId>
141                     <version>9.3.8.RC0</version>
142                 </dependency>
143                 
144         <dependency>
145             <groupId>org.springframework</groupId>
146             <artifactId>spring-webmvc</artifactId>
147             <version>4.0.0.RELEASE</version>
148         </dependency>
149         <dependency>
150             <groupId>jline</groupId>
151             <artifactId>jline</artifactId>
152             <version>2.12.1</version>
153         </dependency>
154         
155         </dependencies>
156         
157         <!-- Plugins and repositories -->
158           <pluginRepositories>
159                 <pluginRepository>
160                            <id>central</id>
161                           <url>http://repo1.maven.org/maven2</url>
162                    </pluginRepository>
163                   <pluginRepository>
164                           <id>EvoSuite</id>
165                         <name>EvoSuite Repository</name>
166                          <url>http://www.evosuite.org/m2</url>
167                   </pluginRepository>
168           </pluginRepositories>
169            <repositories>
170                    <repository>
171                           <id>central</id>
172                           <name>Maven 2 repository 2</name>
173                           <url>http://repo2.maven.org/maven2/</url>
174                   </repository>
175               <repository>
176                          <id>ecomp-releases</id>
177                           <name>ECOMP Release Repository</name>
178                          <url>https://nexus.openecomp.org/content/repositories/releases/</url>
179                   </repository>
180                   <repository>
181                          <id>ecomp-snapshots</id>
182                           <name>ECOMP Snapshot Repository</name>
183                          <url>https://nexus.openecomp.org/content/repositories/snapshots/</url>
184                   </repository>
185                   <repository>
186                          <id>ecomp-staging</id>
187                           <name>ECOMP Staging Repository</name>
188                          <url>https://nexus.openecomp.org/content/repositories/staging/</url>
189                   </repository>
190
191           </repositories>
192         
193         
194         <build>
195                 <plugins>
196                         <plugin>
197                                 <groupId>org.apache.maven.plugins</groupId>
198                                 <artifactId>maven-resources-plugin</artifactId>
199                                 <version>2.7</version>
200                                 <executions>
201                                         <execution>
202                                                 <id>copy-docker-file</id>
203                                                 <phase>package</phase>
204                                                 <goals>
205                                                         <goal>copy-resources</goal>
206                                                 </goals>
207                                                 <configuration>
208                                                         <outputDirectory>target</outputDirectory>
209                                                         <overwrite>true</overwrite>
210                                                         <resources>
211                                                                 <resource>
212                                                                         <directory>${basedir}/src/main/docker</directory>
213                                                                         <filtering>true</filtering>
214                                                                         <includes>
215                                                                                 <include>**/*</include>
216                                                                         </includes>
217                                                                 </resource>
218                                                         </resources>
219                                                 </configuration>
220                                         </execution>
221                                 </executions>
222                         </plugin>
223                         <plugin>
224                                 <groupId>com.spotify</groupId>
225                                 <artifactId>docker-maven-plugin</artifactId>
226                                 <version>0.4.11</version>
227                                 <configuration>         
228                                         <verbose>true</verbose>
229                                         <serverId>docker-hub</serverId>
230                                         <imageName>${docker.push.registry}/openecomp/${project.artifactId}</imageName>                                  
231                                         <dockerDirectory>${docker.location}</dockerDirectory>
232                                         <imageTags>
233                                                 <imageTag>latest</imageTag>
234                                         </imageTags>
235                                         <forceTags>true</forceTags>
236                                 </configuration>
237                         </plugin>
238                         <plugin>
239                                 <groupId>org.apache.maven.plugins</groupId>
240                                 <artifactId>maven-dependency-plugin</artifactId>
241                                 <version>2.5.1</version>
242                                 <executions>
243                                         <execution>
244                                                 <id>copy-agent</id>
245                                                 <phase>process-test-classes</phase>
246                                                 <goals>
247                                                         <goal>copy</goal>
248                                                 </goals>
249                                                 <configuration>
250                                                         <artifactItems>
251                                                                 <artifactItem>
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>
257                                                                 </artifactItem>
258                                                         </artifactItems>
259                                                 </configuration>
260                                         </execution>
261                                 </executions>
262                         </plugin>
263                         <plugin>
264                                 <groupId>org.apache.maven.plugins</groupId>
265                                 <artifactId>maven-surefire-plugin</artifactId>
266                                 <version>2.12.4</version>
267                                 <configuration>
268                                    <argLine>-noverify ${argLine}</argLine>
269                                 </configuration>
270                         </plugin>
271                         <plugin>
272                                 <groupId>org.codehaus.mojo</groupId>
273                                 <artifactId>jaxb2-maven-plugin</artifactId>
274                                 <version>2.2</version>
275                                 <executions>
276                                         <execution>
277                                                 <id>xjc</id>
278                                                 <goals>
279                                                         <goal>xjc</goal>
280                                                 </goals>
281                                         </execution>
282                                 </executions>
283                                 <configuration>
284                                         <clearOutputDir>false</clearOutputDir>
285                                         <outputDirectory>${project.build.directory}/generated-sources</outputDirectory>
286                                         <sources>
287                                                 <source>${project.basedir}/src/main/resources/schema</source>
288                                         </sources>
289                                         <addGeneratedAnnotation>true</addGeneratedAnnotation>
290                                 </configuration>
291                         </plugin>
292                         <plugin>
293                                 <groupId>org.apache.maven.plugins</groupId>
294                                 <artifactId>maven-compiler-plugin</artifactId>
295                                 <version>3.1</version>
296                         </plugin>
297                 
298                         <!-- Checkstyle plugin - used to report on compliance with -->
299                         <!-- the Google style guide. -->
300                         <plugin>
301                                 <groupId>org.apache.maven.plugins</groupId>
302                                 <artifactId>maven-site-plugin</artifactId>
303                                 <version>3.3</version>
304                                 <configuration>
305                                         <reportPlugins>
306                                                 <plugin>
307                                                         <groupId>org.apache.maven.plugins</groupId>
308                                                         <artifactId>maven-checkstyle-plugin</artifactId>
309                                                         <version>2.17</version>
310                                                         <reportSets>
311                                                                 <reportSet>
312                                                                         <reports>
313                                                                                 <report>checkstyle</report>
314                                                                         </reports>
315                                                                 </reportSet>
316                                                         </reportSets>
317                                                 </plugin>
318                                         </reportPlugins>
319                                 </configuration>
320                         </plugin>
321                         
322             <!-- license plugin -->
323             <plugin>
324               <groupId>org.codehaus.mojo</groupId>
325               <artifactId>license-maven-plugin</artifactId>
326               <version>1.10</version>
327               <configuration>
328                 <addJavaLicenseAfterPackage>false</addJavaLicenseAfterPackage>
329                 <excludes>
330                   <exclude>**.json</exclude>
331                   <exclude>**.properties</exclude>
332                 </excludes>
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&amp;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>
344                 <roots>
345                   <root>.</root>
346                 </roots>
347                 <excludes>
348                   <exclude>**/*.json</exclude>
349                 </excludes>
350                 <extraExtensions>
351                   <route>xml</route>
352                   <props>properties</props>
353                   <xsd>xml</xsd>
354                   <txt>java</txt>
355                 </extraExtensions>
356               </configuration>
357               <executions>
358                 <execution>
359                   <id>first</id>
360                   <goals>
361                     <goal>update-file-header</goal>
362                   </goals>
363                   <phase>process-sources</phase>
364                 </execution>
365               </executions>
366             </plugin>
367              <plugin>
368                 <groupId>org.apache.maven.plugins</groupId>
369                 <artifactId>maven-deploy-plugin</artifactId>                    
370                 <configuration>
371                 <skip>true</skip>
372                 </configuration>
373              </plugin>
374              <plugin>
375               <groupId>org.codehaus.mojo</groupId>
376               <artifactId>sonar-maven-plugin</artifactId>
377               <version>3.2</version>
378             </plugin>
379             <plugin>
380               <groupId>org.jacoco</groupId>
381               <artifactId>jacoco-maven-plugin</artifactId>
382               <version>0.7.7.201606060606</version>
383               <configuration>
384                    <dumpOnExit>true</dumpOnExit>
385               </configuration>
386               <executions>
387                    <execution>
388                      <id>jacoco-initialize-unit-tests</id>
389                      <goals>
390                            <goal>prepare-agent</goal>
391                      </goals>
392                      <configuration>
393                            <destFile>${project.build.directory}/coverage-reports/jacoco.exec</destFile>
394                            <!-- <append>true</append> -->
395                      </configuration>
396                    </execution>
397               </executions>
398             </plugin>
399             <plugin>
400                 <groupId>org.sonatype.plugins</groupId>
401                 <artifactId>nexus-staging-maven-plugin</artifactId>
402                 <version>1.6.7</version>
403                 <extensions>true</extensions>
404                 <configuration>
405                         <nexusUrl>${nexusproxy}</nexusUrl>
406                         <stagingProfileId>176c31dfe190a</stagingProfileId>
407                         <serverId>ecomp-staging</serverId>
408                 </configuration>
409             </plugin>
410
411                 </plugins>              
412         </build>
413         
414         
415 </project>