Remove license violations
[aai/babel.git] / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3
4     ============LICENSE_START=======================================================
5     org.onap.aai
6     ================================================================================
7     Copyright © 2017-2018 AT&T Intellectual Property. All rights reserved.
8     Copyright © 2017-2018 European Software Marketing Ltd.
9     ================================================================================
10     Licensed under the Apache License, Version 2.0 (the "License");
11     you may not use this file except in compliance with the License.
12     You may obtain a copy of the License at
13
14           http://www.apache.org/licenses/LICENSE-2.0
15
16     Unless required by applicable law or agreed to in writing, software
17     distributed under the License is distributed on an "AS IS" BASIS,
18     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19     See the License for the specific language governing permissions and
20     limitations under the License.
21     ============LICENSE_END=========================================================
22
23 -->
24 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
25         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
26         <modelVersion>4.0.0</modelVersion>
27
28         <parent>
29                 <groupId>org.onap.oparent</groupId>
30                 <artifactId>oparent</artifactId>
31                 <version>1.1.0</version>
32                 <relativePath />
33         </parent>
34
35         <groupId>org.onap.aai</groupId>
36         <artifactId>babel</artifactId>
37         <version>1.2.0-SNAPSHOT</version>
38         <packaging>jar</packaging>
39
40         <name>aai-babel</name>
41         <description>ONAP AAI Babel Microservice</description>
42
43         <properties>
44                 <!-- Spring boot version -->
45                 <spring.boot.version>1.5.12.RELEASE</spring.boot.version>
46
47                 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
48                 <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
49                 <java.version>1.8</java.version>
50                 <docker.location>${basedir}/target</docker.location>
51
52                 <!-- Dependency Versions -->
53                 <common.logging.version>1.2.2</common.logging.version>
54                 <sdc.tosca.version>1.3.0</sdc.tosca.version>
55                 <commons.compress.version>1.16.1</commons.compress.version>
56                 <javax.ws.rs.version>2.1</javax.ws.rs.version>
57                 <mvn.jaxb2.version>0.13.2</mvn.jaxb2.version>
58                 <aai-schema.group.id>org.onap.aai.aai-common</aai-schema.group.id>
59                 <aai-schema.version>1.2.3</aai-schema.version>
60                 <apache.lang3.version>3.7</apache.lang3.version>
61                 <aai.rest.client.version>1.2.1</aai.rest.client.version>
62                 <sdc.distribution.client.version>1.3.0</sdc.distribution.client.version>
63                 <xmlunit.version>1.6</xmlunit.version>
64                 <logback.version>1.2.3</logback.version>
65         </properties>
66
67         <dependencyManagement>
68                 <dependencies>
69                         <dependency>
70                                 <!-- Import dependency management from Spring Boot -->
71                                 <groupId>org.springframework.boot</groupId>
72                                 <artifactId>spring-boot-dependencies</artifactId>
73                                 <version>${spring.boot.version}</version>
74                                 <type>pom</type>
75                                 <scope>import</scope>
76                         </dependency>
77                 </dependencies>
78         </dependencyManagement>
79
80         <dependencies>
81                 <dependency>
82                         <groupId>org.springframework.boot</groupId>
83                         <artifactId>spring-boot-starter-jetty</artifactId>
84                 </dependency>
85                 <dependency>
86                         <groupId>org.springframework.boot</groupId>
87                         <artifactId>spring-boot-starter-jersey</artifactId>
88                 </dependency>
89                 <dependency>
90                         <groupId>org.onap.aai.logging-service</groupId>
91                         <artifactId>common-logging</artifactId>
92                         <version>${common.logging.version}</version>
93                 </dependency>
94                 <dependency>
95                         <groupId>ch.qos.logback</groupId>
96                         <artifactId>logback-classic</artifactId>
97                         <version>${logback.version}</version><!--$NO-MVN-MAN-VER$-->
98                 </dependency>
99                 <dependency>
100                         <groupId>ch.qos.logback</groupId>
101                         <artifactId>logback-core</artifactId>
102                         <version>${logback.version}</version><!--$NO-MVN-MAN-VER$-->
103                 </dependency>
104
105                 <dependency>
106                         <groupId>commons-codec</groupId>
107                         <artifactId>commons-codec</artifactId>
108                 </dependency>
109                 <dependency>
110                         <groupId>org.apache.commons</groupId>
111                         <artifactId>commons-compress</artifactId>
112                         <version>${commons.compress.version}</version>
113                 </dependency>
114                 <dependency>
115                         <groupId>org.apache.commons</groupId>
116                         <artifactId>commons-lang3</artifactId>
117                         <version>${apache.lang3.version}</version>
118                 </dependency>
119                 <dependency>
120                         <groupId>javax.ws.rs</groupId>
121                         <artifactId>javax.ws.rs-api</artifactId>
122                         <version>${javax.ws.rs.version}</version>
123                 </dependency>
124                 <dependency>
125                         <groupId>org.codehaus.groovy</groupId>
126                         <artifactId>groovy-all</artifactId>
127                 </dependency>
128
129                 <dependency>
130                         <groupId>org.onap.sdc.sdc-tosca</groupId>
131                         <artifactId>sdc-tosca</artifactId>
132                         <version>${sdc.tosca.version}</version>
133                 </dependency>
134                 <dependency>
135                         <groupId>org.onap.aai</groupId>
136                         <artifactId>rest-client</artifactId>
137                         <version>${aai.rest.client.version}</version>
138                 </dependency>
139
140                 <!-- Testing -->
141                 <dependency>
142                         <groupId>org.springframework.boot</groupId>
143                         <artifactId>spring-boot-starter-test</artifactId>
144                         <scope>test</scope>
145                 </dependency>
146                 <dependency>
147                         <groupId>org.onap.sdc.sdc-distribution-client</groupId>
148                         <artifactId>sdc-distribution-client</artifactId>
149                         <version>${sdc.distribution.client.version}</version>
150                         <scope>test</scope>
151                 </dependency>
152                 <dependency>
153                         <groupId>xmlunit</groupId>
154                         <artifactId>xmlunit</artifactId>
155                         <version>${xmlunit.version}</version>
156                         <scope>test</scope>
157                 </dependency>
158         </dependencies>
159
160         <build>
161                 <finalName>babel</finalName>
162                 <plugins>
163                         <plugin>
164                                 <groupId>org.springframework.boot</groupId>
165                                 <artifactId>spring-boot-maven-plugin</artifactId>
166                                 <version>${spring.boot.version}</version>
167                                 <configuration>
168                                         <jvmArguments>
169                                                 -DCONFIG_HOME=./appconfig-local
170                                                 -DAPP_HOME=.
171                                                 -Dartifactgenerator.config=./appconfig-local/artifact-generator.properties
172                                                 -DKEY_STORE_PASSWORD=${KEY_STORE_PASSWORD}
173                                         </jvmArguments>
174                                 </configuration>
175                                 <executions>
176                                         <execution>
177                                                 <goals>
178                                                         <goal>repackage</goal>
179                                                 </goals>
180                                         </execution>
181                                 </executions>
182                         </plugin>
183                         <plugin>
184                                 <groupId>org.apache.maven.plugins</groupId>
185                                 <artifactId>maven-dependency-plugin</artifactId>
186                                 <executions>
187                                         <execution>
188                                                 <id>unpack</id>
189                                                 <phase>initialize</phase>
190                                                 <goals>
191                                                         <goal>unpack</goal>
192                                                 </goals>
193                                                 <configuration>
194                                                         <artifactItems>
195                                                                 <artifactItem>
196                                                                         <groupId>${aai-schema.group.id}</groupId>
197                                                                         <artifactId>aai-schema</artifactId>
198                                                                         <version>${aai-schema.version}</version>
199                                                                         <type>jar</type>
200                                                                         <includes>aai_schema/aai_schema_v**.xsd</includes>
201                                                                         <outputDirectory>target/tmp</outputDirectory>
202                                                                 </artifactItem>
203                                                         </artifactItems>
204                                                 </configuration>
205                                         </execution>
206                                 </executions>
207                         </plugin>
208                         <plugin>
209                                 <groupId>org.jvnet.jaxb2.maven2</groupId>
210                                 <artifactId>maven-jaxb2-plugin</artifactId>
211                                 <version>${mvn.jaxb2.version}</version>
212                                 <executions>
213                                         <execution>
214                                                 <phase>process-sources</phase>
215                                                 <goals>
216                                                         <goal>generate</goal>
217                                                 </goals>
218                                         </execution>
219                                 </executions>
220                                 <configuration>
221                                         <schemaDirectory>target/tmp/aai_schema</schemaDirectory>
222                                         <generatePackage>org.onap.aai.babel.xml.generator.xsd</generatePackage>
223                                         <generateDirectory>target/generated-sources</generateDirectory>
224                                         <schemaIncludes>
225                                                 <include>aai_schema_latest.xsd</include>
226                                         </schemaIncludes>
227                                         <extension>true</extension>
228                                         <args>
229                                                 <arg>-Xannotate</arg>
230                                         </args>
231                                         <plugins>
232                                                 <plugin>
233                                                         <groupId>org.jvnet.jaxb2_commons</groupId>
234                                                         <artifactId>jaxb2-basics-annotate</artifactId>
235                                                         <version>0.6.4</version>
236                                                 </plugin>
237                                                 <!-- Add the dependencies with your annotations as 'plugins' below -->
238                                                 <plugin>
239                                                         <groupId>org.jvnet.jaxb2_commons</groupId>
240                                                         <artifactId>jaxb2-annotate-plugin-test-annox-annotations</artifactId>
241                                                         <version>1.0.0</version>
242                                                 </plugin>
243                                         </plugins>
244                                 </configuration>
245                         </plugin>
246                         <plugin>
247                                 <artifactId>exec-maven-plugin</artifactId>
248                                 <groupId>org.codehaus.mojo</groupId>
249                                 <version>1.5.0</version>
250                                 <executions>
251                                         <execution><!-- Run our script to get latest xsd version -->
252                                                 <id>Get latest xsd version</id>
253                                                 <phase>generate-sources</phase>
254                                                 <goals>
255                                                         <goal>exec</goal>
256                                                 </goals>
257                                                 <configuration>
258                                                         <workingDirectory>${basedir}/scripts</workingDirectory>
259                                                         <executable>bash</executable>
260                                                         <commandlineArgs>get-latest-xsd-version.sh ${basedir}</commandlineArgs>
261                                                 </configuration>
262                                         </execution>
263                                 </executions>
264                         </plugin>
265                         <plugin>
266                                 <groupId>com.mycila</groupId>
267                                 <artifactId>license-maven-plugin</artifactId>
268                                 <version>3.0</version>
269                                 <configuration>
270                                         <header>License.txt</header>
271                                         <includes>
272                                                 <include>src/main/java/**</include>
273                                                 <include>src/test/java/**</include>
274                                                 <include>pom.xml</include>
275                                         </includes>
276                                         <skipExistingHeaders>true</skipExistingHeaders>
277                                 </configuration>
278                                 <executions>
279                                         <execution>
280                                                 <goals>
281                                                         <!-- Set goal from "check" to "format" to auto update license headers -->
282                                                         <goal>check</goal>
283                                                 </goals>
284                                                 <phase>validate</phase>
285                                         </execution>
286                                 </executions>
287                         </plugin>
288                         <plugin>
289                                 <groupId>org.apache.maven.plugins</groupId>
290                                 <artifactId>maven-surefire-plugin</artifactId>
291                                 <configuration>
292                                         <reuseForks>false</reuseForks>
293                                         <forkCount>1</forkCount>
294                                         <environmentVariables>
295                                                 <APP_HOME>.</APP_HOME>
296                                                 <CONFIG_HOME>src/test/resources</CONFIG_HOME>
297                                         </environmentVariables>
298                                 </configuration>
299                         </plugin>
300                         <plugin>
301                                 <groupId>org.apache.maven.plugins</groupId>
302                                 <artifactId>maven-resources-plugin</artifactId>
303                                 <version>3.0.2</version>
304                                 <executions>
305                                         <execution>
306                                                 <id>copy-docker-file</id>
307                                                 <phase>package</phase>
308                                                 <goals>
309                                                         <goal>copy-resources</goal>
310                                                 </goals>
311                                                 <configuration>
312                                                         <outputDirectory>target</outputDirectory>
313                                                         <overwrite>true</overwrite>
314                                                         <resources>
315                                                                 <resource>
316                                                                         <directory>${basedir}/src/main/docker</directory>
317                                                                         <filtering>true</filtering>
318                                                                 </resource>
319                                                                 <resource>
320                                                                         <directory>${basedir}/src/main/bin/</directory>
321                                                                         <filtering>true</filtering>
322                                                                 </resource>
323                                                         </resources>
324                                                 </configuration>
325                                         </execution>
326                                 </executions>
327                         </plugin>
328                         <plugin>
329                                 <groupId>org.apache.maven.plugins</groupId>
330                                 <artifactId>maven-jar-plugin</artifactId>
331                                 <version>3.0.2</version>
332                                 <executions>
333                                         <execution>
334                                                 <phase>package</phase>
335                                                 <goals>
336                                                         <goal>jar</goal>
337                                                 </goals>
338                                                 <configuration>
339                                                         <classifier>client</classifier>
340                                                         <includes>
341                                                                 <include>**/babel/service/data/*</include>
342                                                         </includes>
343                                                 </configuration>
344                                         </execution>
345                                 </executions>
346                         </plugin>
347                         <plugin>
348                                 <groupId>org.apache.maven.plugins</groupId>
349                                 <artifactId>maven-deploy-plugin</artifactId>
350                                 <configuration>
351                                         <classifier>client</classifier>
352                                 </configuration>
353                         </plugin>
354                         <plugin>
355                                 <groupId>com.spotify</groupId>
356                                 <artifactId>docker-maven-plugin</artifactId>
357                                 <version>0.4.11</version>
358                                 <configuration>
359                                         <verbose>true</verbose>
360                                         <serverId>docker-hub</serverId>
361                                         <imageName>${docker.push.registry}/onap/${project.artifactId}</imageName>
362                                         <dockerDirectory>${docker.location}</dockerDirectory>
363                                         <imageTags>
364                                                 <imageTag>latest</imageTag>
365                                         </imageTags>
366                                         <forceTags>true</forceTags>
367                                 </configuration>
368                         </plugin>
369                 </plugins>
370         </build>
371
372 </project>