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