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