CHange groupId and correct dependency version
[aai/data-router.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.data-router</groupId>
11         <artifactId>data-router</artifactId>
12         <version>1.1.0-SNAPSHOT</version>
13
14         <properties>
15                 <module.ajsc.namespace.name>data-router</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>0</serverPort>
37                 <sslport>9502</sslport>
38
39                 <testRouteOffer>workstation</testRouteOffer>
40                 <testEnv>DEV</testEnv>
41                 <checkstyle.config.location>google_checks.xml</checkstyle.config.location>
42         </properties>
43
44         <dependencies>
45
46                 <dependency>
47                         <groupId>dom4j</groupId>
48                         <artifactId>dom4j</artifactId>
49                         <version>1.6.1</version>
50                         <scope>provided</scope>
51                 </dependency>
52
53                 <dependency>
54                         <groupId>com.att.aft</groupId>
55                         <artifactId>dme2</artifactId>
56                         <version>3.1.200</version>
57                         <scope>provided</scope>
58                 </dependency>
59
60                 <dependency>
61                         <groupId>org.onap.aai.router-core</groupId>
62                         <artifactId>router-core</artifactId>
63                         <version>1.1.0-SNAPSHOT</version>
64                 </dependency>
65
66                 <dependency>
67                         <groupId>org.json</groupId>
68                         <artifactId>json</artifactId>
69                 </dependency>
70
71                 <dependency>
72                         <groupId>com.google.code.gson</groupId>
73                         <artifactId>gson</artifactId>
74                         <version>2.6.2</version>
75                 </dependency>
76
77                 <dependency>
78                         <groupId>org.eclipse.persistence</groupId>
79                         <artifactId>eclipselink</artifactId>
80                         <version>2.6.2</version>
81                 </dependency>
82
83                 <dependency>
84                         <groupId>org.openecomp.aai.logging-service</groupId>
85                         <artifactId>common-logging</artifactId>
86                         <version>1.0.0</version>
87                 </dependency>
88
89                 <dependency>
90                         <groupId>org.openecomp.aai</groupId>
91                         <artifactId>rest-client</artifactId>
92                         <version>1.1.0</version>
93                 </dependency>
94
95                 <dependency>
96                         <groupId>ch.qos.logback</groupId>
97                         <artifactId>logback-core</artifactId>
98                         <version>1.1.7</version>
99                 </dependency>
100
101         </dependencies>
102
103         <build>
104                 <plugins>
105                 <!-- Checkstyle plugin - used to report on compliance with -->
106                 <!-- the Google style guide. -->
107                 <plugin>
108                         <groupId>org.apache.maven.plugins</groupId>
109                         <artifactId>maven-site-plugin</artifactId>
110                         <version>3.3</version>
111                         <configuration>
112                                 <reportPlugins>
113                                         <plugin>
114                                                 <groupId>org.apache.maven.plugins</groupId>
115                                                 <artifactId>maven-checkstyle-plugin</artifactId>
116                                                 <version>2.17</version>
117                                                 <reportSets>
118                                                         <reportSet>
119                                                                 <reports>
120                                                                    <report>checkstyle</report>
121                                                                 </reports>
122                                                         </reportSet>
123                                                 </reportSets>
124                                         </plugin>
125                                 </reportPlugins>
126                         </configuration>
127                 </plugin>
128                         <plugin>
129                                 <groupId>org.apache.maven.plugins</groupId>
130                                 <artifactId>maven-resources-plugin</artifactId>
131                                 <version>2.7</version>
132                                 <executions>
133                                         <execution>
134                                                 <id>copy-docker-file</id>
135                                                 <phase>package</phase>
136                                                 <goals>
137                                                         <goal>copy-resources</goal>
138                                                 </goals>
139                                                 <configuration>
140                                                         <outputDirectory>target</outputDirectory>
141                                                         <overwrite>true</overwrite>
142                                                         <resources>
143                                                                 <resource>
144                                                                         <directory>${basedir}/src/main/docker</directory>
145                                                                         <filtering>true</filtering>
146                                                                         <includes>
147                                                                                 <include>**/*</include>
148                                                                         </includes>
149                                                                 </resource>
150                                                                 <resource>
151                                                                         <directory>${basedir}/src/main/bin/</directory>
152                                                                 </resource>
153                                                         </resources>
154                                                 </configuration>
155                                         </execution>
156                                 </executions>
157                         </plugin>
158                         <!-- license plugin -->
159                         <plugin>
160                                 <groupId>com.mycila</groupId>
161                                 <artifactId>license-maven-plugin</artifactId>
162                                 <version>3.0</version>
163                                 <configuration>
164                                         <header>License.txt</header>
165                                         <includes>
166                                                 <include>src/main/java/**</include>
167                                         </includes>
168                                 </configuration>
169                                 <executions>
170                                         <execution>
171                                                 <goals>
172                                                         <goal>format</goal>
173                                                 </goals>
174                                                 <phase>process-sources</phase>
175                                         </execution>
176                                 </executions>
177                         </plugin>
178                 </plugins>
179         </build>
180
181         <profiles>
182                 <profile>
183                         <id>runAjsc</id>
184                         <build>
185                                 <defaultGoal>initialize</defaultGoal>
186                                 <plugins>
187                                         <plugin>
188                                                 <groupId>org.codehaus.mojo</groupId>
189                                                 <artifactId>exec-maven-plugin</artifactId>
190                                                 <version>1.3.2</version>
191                                                 <executions>
192                                                         <execution>
193                                                                 <phase>initialize</phase>
194                                                                 <goals>
195                                                                         <goal>java</goal>
196                                                                 </goals>
197                                                                 <configuration>
198                                                                         <includeProjectDependencies>false</includeProjectDependencies>
199                                                                         <includePluginDependencies>true</includePluginDependencies>
200                                                                         <executable>java</executable>
201                                                                         <mainClass>com.att.ajsc.runner.Runner</mainClass>
202                                                                         <executableDependency>
203                                                                                 <groupId>com.att.ajsc</groupId>
204                                                                                 <artifactId>ajsc-runner</artifactId>
205                                                                         </executableDependency>
206                                                                         <additionalClasspathElements>
207                                                                                 <additionalClasspathElement>${basedir}/ajsc-shared-config/etc</additionalClasspathElement>
208                                                                         </additionalClasspathElements>
209
210                                                                         <environmentVariables>
211                                                                                 <AJSC_HOME>${runAjscHome}</AJSC_HOME>
212                                                                         </environmentVariables>
213
214                                                                         <!-- Main AJSC System Properties below (necessary for proper startup) -->
215                                                                         <systemProperties>
216                                                                                 <systemProperty>
217                                                                                         <key>AJSC_HOME</key>
218                                                                                         <value>${runAjscHome}</value>
219                                                                                 </systemProperty>
220
221                                                                                 <systemProperty>
222                                                                                         <key>CONFIG_HOME</key>
223                                                                                         <value>${basedir}/appconfig-local/</value>
224                                                                                 </systemProperty>
225
226                                                                                 <systemProperty>
227                                                                                         <key>AJSC_CONF_HOME</key>
228                                                                                         <value>${basedir}/bundleconfig-local</value>
229                                                                                 </systemProperty>
230                                                                                 <systemProperty>
231                                                                                         <key>logback.configurationFile</key>
232                                                                                         <value>${basedir}/ajsc-shared-config/etc/logback.xml</value>
233                                                                                 </systemProperty>
234                                                                                 <systemProperty>
235                                                                                         <key>AJSC_SHARED_CONFIG</key>
236                                                                                         <value>${basedir}/ajsc-shared-config</value>
237                                                                                 </systemProperty>
238
239                                                                                 <sysproperty>
240                                                                                         <key>AJSC_EXTERNAL_LIB_FOLDERS</key>
241                                                                                         <value>${basedir}/target/commonLibs</value>
242                                                                                 </sysproperty>
243                                                                                 <sysproperty>
244                                                                                         <key>AJSC_EXTERNAL_PROPERTIES_FOLDERS</key>
245                                                                                         <value>${basedir}/ajsc-shared-config/etc</value>
246                                                                                 </sysproperty>
247
248                                                                                 <systemProperty>
249                                                                                         <key>AJSC_SERVICE_NAMESPACE</key>
250                                                                                         <value>${module.ajsc.namespace.name}</value>
251                                                                                 </systemProperty>
252                                                                                 <systemProperty>
253                                                                                         <key>AJSC_SERVICE_VERSION</key>
254                                                                                         <value>${module.ajsc.namespace.version}</value>
255                                                                                 </systemProperty>
256                                                                                 <systemProperty>
257                                                                                         <key>SOACLOUD_SERVICE_VERSION</key>
258                                                                                         <value>${project.version}</value>
259                                                                                 </systemProperty>
260                                                                                 <systemProperty>
261                                                                                         <key>server.port</key>
262                                                                                         <value>${serverPort}</value>
263                                                                                 </systemProperty>
264                                                                         </systemProperties>
265
266                                                                         <!-- Command Line Arguments to add to the java command. Here, you
267                                                                                 can specify the port as well as the Context you want your service to run
268                                                                                 in. Use context=/ to run in an unnamed Context (Root Context). The default
269                                                                                 configuration of the AJSC is to run under the / Context. Setting the port
270                                                                                 here can aid during the development phase of your service. However, you can
271                                                                                 leave this argument out entirely, and the AJSC will default to using an Ephemeral
272                                                                                 port. -->
273                                                                         <arguments>
274                                                                                 <argument>context=/</argument>
275                                                                                 <argument>port=${serverPort}</argument>
276                                                                                 <argument>sslport=${sslport}</argument>
277                                                                         </arguments>
278                                                                 </configuration>
279                                                         </execution>
280                                                 </executions>
281                                                 <configuration>
282                                                         <executable>java</executable>
283                                                 </configuration>
284                                                 <dependencies>
285                                                         <dependency>
286                                                                 <groupId>com.att.ajsc</groupId>
287                                                                 <artifactId>ajsc-runner</artifactId>
288                                                                 <version>${ajscRuntimeVersion}</version>
289                                                         </dependency>
290                                                 </dependencies>
291                                         </plugin>
292                                 </plugins>
293                         </build>
294                 </profile>
295         </profiles>
296         <dependencyManagement>
297                 <dependencies>
298                         <dependency>
299                                 <groupId>org.apache.httpcomponents</groupId>
300                                 <artifactId>httpclient</artifactId>
301                                 <version>4.5</version>
302                         </dependency>
303                         <dependency>
304                                 <groupId>org.apache.httpcomponents</groupId>
305                                 <artifactId>httpcore</artifactId>
306                                 <version>4.4.1</version>
307                         </dependency>
308                         <dependency>
309                                 <groupId>org.json</groupId>
310                                 <artifactId>json</artifactId>
311                                 <version>20131018</version>
312                         </dependency>
313                 </dependencies>
314         </dependencyManagement>
315         <distributionManagement>
316         <repository>
317             <id>ecomp-releases</id>
318             <name>ECOMP Release Repository</name>
319             <url>${nexusproxy}/content/repositories/releases/</url>
320         </repository>
321         <snapshotRepository>
322             <id>ecomp-snapshots</id>
323             <name>ECOMP Snapshot Repository</name>
324             <url>${nexusproxy}/content/repositories/snapshots/</url>
325         </snapshotRepository>
326     </distributionManagement>
327 </project>