Initial code submit for Babel
[aai/babel.git] / pom.xml
1 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
2         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
3         <modelVersion>4.0.0</modelVersion>
4
5         <parent>
6                 <artifactId>ajsc-archetype-parent</artifactId>
7                 <groupId>com.att.ajsc</groupId>
8                 <version>2.0.0</version>
9         </parent>
10         <groupId>org.onap.aai</groupId>
11         <artifactId>babel</artifactId>
12         <version>1.0.0-SNAPSHOT</version>
13
14         <properties>
15                 <module.ajsc.namespace.name>babel-service</module.ajsc.namespace.name>
16                 <module.ajsc.namespace.version>v1</module.ajsc.namespace.version>
17                 <ajscRuntimeVersion>2.0.0</ajscRuntimeVersion>
18                 <absoluteDistFilesRoot>/appl/${project.artifactId}</absoluteDistFilesRoot>
19
20                 <!-- For NO Versioning, REMOVE the /${project.version} from the <distFilesRoot> 
21                         property, below. PLEASE, NOTE: If your ${project.version} is a "-SNAPSHOT" 
22                         version, THIS will be used as your directory structure. If you do NOT want 
23                         this, simply remove the "-SNAPSHOT" from your <version> declaration at the 
24                         top of pom.xml -->
25                 <distFilesRoot>/appl/${project.artifactId}/${project.version}</distFilesRoot>
26                 <runAjscHome>${basedir}/target/swm/package/nix/dist_files${distFilesRoot}</runAjscHome>
27
28                 <!-- For SOA Cloud Installation -->
29                 <installOwnerUser>aaiadmin</installOwnerUser>
30                 <installOwnerGroup>aaiadmin</installOwnerGroup>
31                 <ownerManagementGroup>com.att.csid.lab</ownerManagementGroup>
32
33                 <!-- Port Selection. A value of 0 will allow for dynamic port selection. 
34                         For local testing, you may choose to hardcode this value to something like 
35                         8080 -->
36                 <serverPort>9515</serverPort>
37                 <sslport>9516</sslport>
38
39                 <testRouteOffer>workstation</testRouteOffer>
40                 <testEnv>DEV</testEnv>
41                 <checkstyle.config.location>google_checks.xml</checkstyle.config.location>
42                 <nexusproxy>https://nexus.onap.org</nexusproxy>
43
44                 <!-- Dependency Versions -->
45                 <aai.artifact.generator.version>1.1.0</aai.artifact.generator.version>
46                 <apache.lang3.version>3.6</apache.lang3.version> 
47                 <commons-compress.version>1.14</commons-compress.version>
48                 <common.logging.version>1.1.0</common.logging.version>
49                 <dom4j.version>1.6.1</dom4j.version>
50                 <fasterxml.version>2.8.1</fasterxml.version>
51                 <hamcrest.version>1.3</hamcrest.version>
52                 <javaassist.version>3.21.0-GA</javaassist.version>
53                 <logback.version>1.1.9</logback.version>
54                 <mockito.version>1.10.19</mockito.version>
55                 <powermock.version>1.6.2</powermock.version>
56                 <sdc.distribution.client.version>1.1.32-SNAPSHOT</sdc.distribution.client.version>
57                 <snakeyamle.version>1.18</snakeyamle.version>
58                 <jacoco.version>0.7.9</jacoco.version>
59         </properties>
60
61         <dependencies>
62                 <dependency>
63                         <groupId>javax.ws.rs</groupId>
64                         <artifactId>javax.ws.rs-api</artifactId>
65                         <version>2.0.1</version>
66                 </dependency>
67                 <dependency>
68                         <groupId>dom4j</groupId>
69                         <artifactId>dom4j</artifactId>
70                         <version>${dom4j.version}</version>
71                         <scope>provided</scope>
72                 </dependency>
73
74                 <!-- Common logging framework -->
75                 <dependency>
76                         <groupId>org.onap.aai.logging-service</groupId>
77                         <artifactId>common-logging</artifactId>
78                         <version>${common.logging.version}</version>
79                 </dependency>
80                 <dependency>
81                         <groupId>org.hamcrest</groupId>
82                         <artifactId>hamcrest-library</artifactId>
83                         <version>1.3</version>
84                         <scope>test</scope>
85                 </dependency>
86                 <dependency>
87                         <groupId>com.google.code.gson</groupId>
88                         <artifactId>gson</artifactId>
89                         <version>2.8.1</version>
90                 </dependency>
91                 <dependency>
92                         <groupId>ch.qos.logback</groupId>
93                         <artifactId>logback-core</artifactId>
94                         <version>${logback.version}</version>
95                 </dependency>
96
97                 <!-- apache commons -->
98                 <dependency>
99                         <groupId>org.apache.commons</groupId>
100                         <artifactId>commons-compress</artifactId>
101                         <version>${commons-compress.version}</version>
102                 </dependency>
103                 <dependency>
104                         <groupId>commons-io</groupId>
105                         <artifactId>commons-io</artifactId>
106                 </dependency>
107                 <dependency>
108                         <groupId>org.apache.commons</groupId>
109                         <artifactId>commons-lang3</artifactId>
110                         <version>${apache.lang3.version}</version>
111                 </dependency>
112
113                 <!-- Artifact generation -->
114                 <dependency>
115                         <groupId>org.openecomp.sdc.common</groupId>
116                         <artifactId>openecomp-sdc-artifact-generator-core</artifactId>
117                         <version>${aai.artifact.generator.version}</version>
118                 </dependency>
119                 <dependency>
120                         <groupId>com.fasterxml.jackson.core</groupId>
121                         <artifactId>jackson-core</artifactId>
122                         <version>${fasterxml.version}</version>
123                 </dependency>
124
125                 <!-- Testing -->
126                 <dependency>
127                         <groupId>org.mockito</groupId>
128                         <artifactId>mockito-core</artifactId>
129                         <version>${mockito.version}</version>
130                         <scope>test</scope>
131                 </dependency>
132                 <dependency>
133                         <groupId>org.powermock</groupId>
134                         <artifactId>powermock-module-junit4</artifactId>
135                         <version>${powermock.version}</version>
136                         <scope>test</scope>
137                 </dependency>
138                 <dependency>
139                         <groupId>org.powermock</groupId>
140                         <artifactId>powermock-api-mockito</artifactId>
141                         <version>${powermock.version}</version>
142                         <scope>test</scope>
143                 </dependency>
144                 <dependency>
145                         <groupId>org.powermock</groupId>
146                         <artifactId>powermock-module-javaagent</artifactId>
147                         <version>${powermock.version}</version>
148                         <scope>test</scope>
149                 </dependency>
150                 <dependency>
151                         <groupId>org.powermock</groupId>
152                         <artifactId>powermock-module-junit4-rule-agent</artifactId>
153                         <version>${powermock.version}</version>
154                         <scope>test</scope>
155                 </dependency>
156                 <dependency>
157                         <groupId>org.javassist</groupId>
158                         <artifactId>javassist</artifactId>
159                         <version>${javaassist.version}</version>
160                 </dependency>
161                 <dependency>
162                         <groupId>org.openecomp.sdc.sdc-distribution-client</groupId>
163                         <artifactId>sdc-distribution-client</artifactId>
164                         <version>${sdc.distribution.client.version}</version>
165                 </dependency>
166            <dependency>
167                <groupId>xmlunit</groupId>
168                <artifactId>xmlunit</artifactId>
169                <version>1.6</version>
170                <scope>test</scope>
171            </dependency>
172         </dependencies>
173
174         <build>
175                 <plugins>
176
177                         <plugin>
178                                 <groupId>org.codehaus.mojo</groupId>
179                                 <artifactId>cobertura-maven-plugin</artifactId>
180                                 <version>2.7</version>
181                                 <executions>
182                                         <execution>
183                                                 <phase />
184                                         </execution>
185                                 </executions>
186                         </plugin>
187
188                         <plugin>
189                                 <groupId>org.jacoco</groupId>
190                                 <artifactId>jacoco-maven-plugin</artifactId>
191                                 <version>${jacoco.version}</version>
192
193                                 <executions>
194                                         <execution>
195                                                 <id>prepare-agent</id>
196                                                 <goals>
197                                                         <goal>prepare-agent</goal>
198                                                 </goals>
199                                         </execution>
200
201                                         <execution>
202                                                 <id>report</id>
203                                                 <phase>package</phase>
204                                                 <goals>
205                                                         <goal>report</goal>
206                                                 </goals>
207                                         </execution>
208                                 </executions>
209
210                         </plugin>
211
212                         <plugin>
213                                 <groupId>org.codehaus.groovy</groupId>
214                                 <artifactId>groovy-eclipse-compiler</artifactId>
215                                 <version>2.9.2-01</version>
216                         </plugin>
217                         <plugin>
218                                 <groupId>org.apache.maven.plugins</groupId>
219                                 <artifactId>maven-resources-plugin</artifactId>
220                                 <version>3.0.2</version>
221                                 <executions>
222                                         <execution>
223                                                 <id>copy-docker-file</id>
224                                                 <phase>package</phase>
225                                                 <goals>
226                                                         <goal>copy-resources</goal>
227                                                 </goals>
228                                                 <configuration>
229                                                         <outputDirectory>target</outputDirectory>
230                                                         <overwrite>true</overwrite>
231                                                         <resources>
232                                                                 <resource>
233                                                                         <directory>${basedir}/src/main/docker</directory>
234                                                                         <filtering>true</filtering>
235                                                                         <includes>
236                                                                                 <include>**/*</include>
237                                                                         </includes>
238                                                                 </resource>
239                                                                 <resource>
240                                                                         <directory>${basedir}/src/main/bin/</directory>
241                                                                 </resource>
242                                                         </resources>
243                                                 </configuration>
244                                         </execution>
245                                 </executions>
246                         </plugin>
247                         <plugin>
248                                 <groupId>org.apache.maven.plugins</groupId>
249                                 <artifactId>maven-jar-plugin</artifactId>
250                                 <version>3.0.2</version>
251                                 <executions>
252                                         <execution>
253                                                 <phase>package</phase>
254                                                 <goals>
255                                                         <goal>jar</goal>
256                                                 </goals>
257                                                 <configuration>
258                                                         <classifier>client</classifier>
259                                                         <includes>
260                                                                 <include>**/babel/service/data/*</include>
261                                                         </includes>
262                                                 </configuration>
263                                         </execution>
264                                 </executions>
265                         </plugin>
266
267                         <!-- license plugin -->
268                         <plugin>
269                                 <groupId>com.mycila</groupId>
270                                 <artifactId>license-maven-plugin</artifactId>
271                                 <version>3.0</version>
272                                 <configuration>
273                                         <header>License.txt</header>
274                                         <includes>
275                                                 <include>src/main/java/**</include>
276                                                 <include>src/test/java/**</include>
277                                         </includes>
278                                 </configuration>
279                                 <executions>
280                                         <execution>
281                                                 <goals>
282                                                         <goal>format</goal>
283                                                 </goals>
284                                                 <phase>process-sources</phase>
285                                         </execution>
286                                 </executions>
287                         </plugin>
288
289                         <plugin>
290                                 <groupId>org.apache.maven.plugins</groupId>
291                                 <artifactId>maven-deploy-plugin</artifactId>
292                                 <configuration>
293                                         <classifier>client</classifier>
294                                 </configuration>
295                         </plugin>
296
297                         <plugin>
298                                 <groupId>org.apache.maven.plugins</groupId>
299                                 <artifactId>maven-site-plugin</artifactId>
300                                 <version>3.3</version>
301                                 <configuration>
302                                         <reportPlugins>
303                                                 <plugin>
304                                                         <groupId>org.apache.maven.plugins</groupId>
305                                                         <artifactId>maven-checkstyle-plugin</artifactId>
306                                                         <version>2.17</version>
307                                                         <reportSets>
308                                                                 <reportSet>
309                                                                         <reports>
310                                                                                 <report>checkstyle</report>
311                                                                         </reports>
312                                                                 </reportSet>
313                                                         </reportSets>
314                                                 </plugin>
315                                         </reportPlugins>
316                                 </configuration>
317                         </plugin>
318                         <!-- Strong recommendation to use forkCount and reuseForks parameters as forkMode is deprecated since v2.14 -->
319                         <plugin>
320                             <groupId>org.apache.maven.plugins</groupId>
321                             <artifactId>maven-surefire-plugin</artifactId>
322                             <configuration>
323                                 <reuseForks>false</reuseForks>
324                                 <forkCount>1</forkCount>
325                             </configuration>
326                         </plugin>
327                 </plugins>
328         </build>
329
330         <!-- Added to fix build warnings caused by parent pom and bom -->
331
332         <profiles>
333                 <profile>
334                         <id>runAjsc</id>
335                         <build>
336                                 <defaultGoal>initialize</defaultGoal>
337                                 <plugins>
338                                         <plugin>
339                                                 <groupId>org.codehaus.mojo</groupId>
340                                                 <artifactId>exec-maven-plugin</artifactId>
341                                                 <version>1.3.2</version>
342                                                 <executions>
343                                                         <execution>
344                                                                 <phase>initialize</phase>
345                                                                 <goals>
346                                                                         <goal>java</goal>
347                                                                 </goals>
348                                                                 <configuration>
349                                                                         <includeProjectDependencies>false</includeProjectDependencies>
350                                                                         <includePluginDependencies>true</includePluginDependencies>
351                                                                         <executable>java</executable>
352                                                                         <mainClass>com.att.ajsc.runner.Runner</mainClass>
353                                                                         <executableDependency>
354                                                                                 <groupId>com.att.ajsc</groupId>
355                                                                                 <artifactId>ajsc-runner</artifactId>
356                                                                         </executableDependency>
357                                                                         <additionalClasspathElements>
358                                                                                 <additionalClasspathElement>${basedir}/ajsc-shared-config/etc</additionalClasspathElement>
359                                                                         </additionalClasspathElements>
360
361                                                                         <environmentVariables>
362                                                                                 <AJSC_HOME>${runAjscHome}</AJSC_HOME>
363                                                                         </environmentVariables>
364
365                                                                         <!-- Main AJSC System Properties below (necessary for proper startup) -->
366                                                                         <systemProperties>
367                                                                                 <systemProperty>
368                                                                                         <key>AJSC_HOME</key>
369                                                                                         <value>${runAjscHome}</value>
370                                                                                 </systemProperty>
371                                                                                 <systemProperty>
372                                                                                         <key>AJSC_HOME</key>
373                                                                                         <value>${runAjscHome}</value>
374                                                                                 </systemProperty>
375                                                                                 <systemProperty>
376                                                                                         <key>AJSC_CONF_HOME</key>
377                                                                                         <value>${basedir}/bundleconfig-local</value>
378                                                                                 </systemProperty>
379                                                                                 <systemProperty>
380                                                                                         <key>logback.configurationFile</key>
381                                                                                         <value>${basedir}/ajsc-shared-config/etc/logback.xml</value>
382                                                                                 </systemProperty>
383                                                                                 <systemProperty>
384                                                                                         <key>AJSC_SHARED_CONFIG</key>
385                                                                                         <value>${basedir}/ajsc-shared-config</value>
386                                                                                 </systemProperty>
387                                                                                 <sysproperty>
388                                                                                         <key>AJSC_EXTERNAL_LIB_FOLDERS</key>
389                                                                                         <value>${basedir}/target/commonLibs</value>
390                                                                                 </sysproperty>
391                                                                                 <sysproperty>
392                                                                                         <key>AJSC_EXTERNAL_PROPERTIES_FOLDERS</key>
393                                                                                         <value>${basedir}/ajsc-shared-config/etc</value>
394                                                                                 </sysproperty>
395
396                                                                                 <systemProperty>
397                                                                                         <key>AJSC_SERVICE_NAMESPACE</key>
398                                                                                         <value>${module.ajsc.namespace.name}</value>
399                                                                                 </systemProperty>
400                                                                                 <systemProperty>
401                                                                                         <key>AJSC_SERVICE_VERSION</key>
402                                                                                         <value>${module.ajsc.namespace.version}</value>
403                                                                                 </systemProperty>
404                                                                                 <systemProperty>
405                                                                                         <key>SOACLOUD_SERVICE_VERSION</key>
406                                                                                         <value>${project.version}</value>
407                                                                                 </systemProperty>
408                                                                                 <systemProperty>
409                                                                                         <key>server.port</key>
410                                                                                         <value>${serverPort}</value>
411                                                                                 </systemProperty>
412                                                                                 <systemProperty>
413                                                                                         <key>CONFIG_HOME</key>
414                                                                                         <value>${basedir}/appconfig-local</value>
415                                                                                 </systemProperty>
416                                                                                 <systemProperty>
417                                                                                         <key>artifactgenerator.config</key>
418                                                                                         <value>${basedir}/appconfig-local/artifact-generator.properties</value>
419                                                                                 </systemProperty>
420                                                                         </systemProperties>
421
422                                                                         <!-- Command Line Arguments to add to the java command. Here, you 
423                                                                                 can specify the port as well as the Context you want your service to run 
424                                                                                 in. Use context=/ to run in an unnamed Context (Root Context). The default 
425                                                                                 configuration of the AJSC is to run under the / Context. Setting the port 
426                                                                                 here can aid during the development phase of your service. However, you can 
427                                                                                 leave this argument out entirely, and the AJSC will default to using an Ephemeral 
428                                                                                 port. -->
429                                                                         <arguments>
430                                                                                 <argument>context=/</argument>
431                                                                                 <argument>port=${serverPort}</argument>
432                                                                                 <argument>sslport=${sslport}</argument>
433                                                                         </arguments>
434                                                                 </configuration>
435                                                         </execution>
436                                                 </executions>
437                                                 <configuration>
438                                                         <executable>java</executable>
439                                                 </configuration>
440                                                 <dependencies>
441                                                         <dependency>
442                                                                 <groupId>com.att.ajsc</groupId>
443                                                                 <artifactId>ajsc-runner</artifactId>
444                                                                 <version>${ajscRuntimeVersion}</version>
445                                                         </dependency>
446                                                 </dependencies>
447                                         </plugin>
448                                 </plugins>
449                         </build>
450                 </profile>
451         </profiles>
452
453 </project>