Leonard, Mark (ml401d) | 66b3afa | 2018-03-21 18:40:41 +0000 | [diff] [blame] | 1 | <!-- ============LICENSE_START======================================================= --> |
| 2 | <!-- org.onap.aai --> |
| 3 | <!-- ================================================================================ --> |
| 4 | <!-- Copyright © 2017-2018 AT&T Intellectual Property. All rights reserved. --> |
| 5 | <!-- Copyright © 2017-2018 European Software Marketing Ltd. --> |
| 6 | <!-- ================================================================================ --> |
| 7 | <!-- Licensed under the Apache License, Version 2.0 (the "License"); --> |
| 8 | <!-- you may not use this file except in compliance with the License. --> |
| 9 | <!-- You may obtain a copy of the License at --> |
| 10 | <!-- --> |
| 11 | <!-- http://www.apache.org/licenses/LICENSE-2.0 --> |
| 12 | <!-- --> |
| 13 | <!-- Unless required by applicable law or agreed to in writing, software --> |
| 14 | <!-- distributed under the License is distributed on an "AS IS" BASIS, --> |
| 15 | <!-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. --> |
| 16 | <!-- See the License for the specific language governing permissions and --> |
| 17 | <!-- limitations under the License. --> |
| 18 | <!-- ============LICENSE_END========================================================= --> |
Edwin Lawrance | 1433a67 | 2017-09-22 16:55:07 +0100 | [diff] [blame] | 19 | <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| 20 | xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> |
| 21 | <modelVersion>4.0.0</modelVersion> |
| 22 | |
| 23 | <parent> |
| 24 | <artifactId>ajsc-archetype-parent</artifactId> |
| 25 | <groupId>com.att.ajsc</groupId> |
| 26 | <version>2.0.0</version> |
| 27 | </parent> |
Leonard, Mark (ml401d) | 66b3afa | 2018-03-21 18:40:41 +0000 | [diff] [blame] | 28 | <groupId>org.onap.aai</groupId> |
Edwin Lawrance | 1433a67 | 2017-09-22 16:55:07 +0100 | [diff] [blame] | 29 | <artifactId>babel</artifactId> |
Leonard, Mark (ml401d) | 66b3afa | 2018-03-21 18:40:41 +0000 | [diff] [blame] | 30 | <version>1.2.0-SNAPSHOT</version> |
Gildas Lanilis | 5b2bfbb | 2018-02-02 14:14:41 -0800 | [diff] [blame] | 31 | <name>aai-babel</name> |
Edwin Lawrance | 1433a67 | 2017-09-22 16:55:07 +0100 | [diff] [blame] | 32 | |
| 33 | <properties> |
| 34 | <module.ajsc.namespace.name>babel-service</module.ajsc.namespace.name> |
| 35 | <module.ajsc.namespace.version>v1</module.ajsc.namespace.version> |
| 36 | <ajscRuntimeVersion>2.0.0</ajscRuntimeVersion> |
| 37 | <absoluteDistFilesRoot>/appl/${project.artifactId}</absoluteDistFilesRoot> |
| 38 | |
Leonard, Mark (ml401d) | 66b3afa | 2018-03-21 18:40:41 +0000 | [diff] [blame] | 39 | <!-- For NO Versioning, REMOVE the /${project.version} from the <distFilesRoot> property below. --> |
Edwin Lawrance | 1433a67 | 2017-09-22 16:55:07 +0100 | [diff] [blame] | 40 | <distFilesRoot>/appl/${project.artifactId}/${project.version}</distFilesRoot> |
| 41 | <runAjscHome>${basedir}/target/swm/package/nix/dist_files${distFilesRoot}</runAjscHome> |
| 42 | |
| 43 | <!-- For SOA Cloud Installation --> |
| 44 | <installOwnerUser>aaiadmin</installOwnerUser> |
| 45 | <installOwnerGroup>aaiadmin</installOwnerGroup> |
| 46 | <ownerManagementGroup>com.att.csid.lab</ownerManagementGroup> |
| 47 | |
Leonard, Mark (ml401d) | 66b3afa | 2018-03-21 18:40:41 +0000 | [diff] [blame] | 48 | <!-- Port Selection. A value of 0 will allow for dynamic port selection. |
| 49 | For local testing, you may choose to hardcode this value to something like |
| 50 | 8080 --> |
Edwin Lawrance | 1433a67 | 2017-09-22 16:55:07 +0100 | [diff] [blame] | 51 | <serverPort>9515</serverPort> |
| 52 | <sslport>9516</sslport> |
| 53 | |
| 54 | <testRouteOffer>workstation</testRouteOffer> |
| 55 | <testEnv>DEV</testEnv> |
| 56 | <checkstyle.config.location>google_checks.xml</checkstyle.config.location> |
Edwin Lawrance | d9c8788 | 2017-10-06 10:40:54 +0100 | [diff] [blame] | 57 | <sitePath>/content/sites/site/org/onap/aai/babel/${project.artifactId}/${project.version}</sitePath> |
Edwin Lawrance | 1433a67 | 2017-09-22 16:55:07 +0100 | [diff] [blame] | 58 | |
| 59 | <!-- Dependency Versions --> |
Leonard, Mark (ml401d) | 66b3afa | 2018-03-21 18:40:41 +0000 | [diff] [blame] | 60 | <aai.rest.client.version>1.2.1</aai.rest.client.version> |
| 61 | <apache.lang3.version>3.6</apache.lang3.version> |
Edwin Lawrance | 1433a67 | 2017-09-22 16:55:07 +0100 | [diff] [blame] | 62 | <commons-compress.version>1.14</commons-compress.version> |
Leonard, Mark (ml401d) | 66b3afa | 2018-03-21 18:40:41 +0000 | [diff] [blame] | 63 | <common.logging.version>1.2.2</common.logging.version> |
Edwin Lawrance | 1433a67 | 2017-09-22 16:55:07 +0100 | [diff] [blame] | 64 | <dom4j.version>1.6.1</dom4j.version> |
Edwin Lawrance | 1433a67 | 2017-09-22 16:55:07 +0100 | [diff] [blame] | 65 | <hamcrest.version>1.3</hamcrest.version> |
| 66 | <javaassist.version>3.21.0-GA</javaassist.version> |
| 67 | <logback.version>1.1.9</logback.version> |
Leonard, Mark (ml401d) | 66b3afa | 2018-03-21 18:40:41 +0000 | [diff] [blame] | 68 | <mvn.jaxb2.version>0.13.2</mvn.jaxb2.version> |
Edwin Lawrance | 1433a67 | 2017-09-22 16:55:07 +0100 | [diff] [blame] | 69 | <mockito.version>1.10.19</mockito.version> |
| 70 | <powermock.version>1.6.2</powermock.version> |
Wong, Ben | e104174 | 2017-12-14 11:59:04 +0000 | [diff] [blame] | 71 | <sdc.distribution.client.version>1.1.32</sdc.distribution.client.version> |
Leonard, Mark (ml401d) | 66b3afa | 2018-03-21 18:40:41 +0000 | [diff] [blame] | 72 | <sdc.tosca.version>1.3.3</sdc.tosca.version> |
| 73 | <fasterxml.version>2.9.4</fasterxml.version> |
Edwin Lawrance | 1433a67 | 2017-09-22 16:55:07 +0100 | [diff] [blame] | 74 | <jacoco.version>0.7.9</jacoco.version> |
Leonard, Mark (ml401d) | 66b3afa | 2018-03-21 18:40:41 +0000 | [diff] [blame] | 75 | <xmlunit.version>1.6</xmlunit.version> |
| 76 | <aai-schema.version>1.2.1</aai-schema.version> |
Edwin Lawrance | c20301d | 2017-10-05 14:28:34 +0100 | [diff] [blame] | 77 | <onap.nexus.url>https://nexus.onap.org</onap.nexus.url> |
Edwin Lawrance | 6337075 | 2017-10-09 11:56:05 +0100 | [diff] [blame] | 78 | <docker.location>${basedir}/target</docker.location> |
Edwin Lawrance | 1433a67 | 2017-09-22 16:55:07 +0100 | [diff] [blame] | 79 | </properties> |
| 80 | |
| 81 | <dependencies> |
| 82 | <dependency> |
| 83 | <groupId>javax.ws.rs</groupId> |
| 84 | <artifactId>javax.ws.rs-api</artifactId> |
| 85 | <version>2.0.1</version> |
| 86 | </dependency> |
| 87 | <dependency> |
| 88 | <groupId>dom4j</groupId> |
| 89 | <artifactId>dom4j</artifactId> |
| 90 | <version>${dom4j.version}</version> |
| 91 | <scope>provided</scope> |
| 92 | </dependency> |
mark.j.leonard | eea1282 | 2018-04-09 13:20:26 +0100 | [diff] [blame^] | 93 | <dependency> |
| 94 | <groupId>com.att.aft</groupId> |
| 95 | <artifactId>dme2</artifactId> |
| 96 | </dependency> |
Edwin Lawrance | 1433a67 | 2017-09-22 16:55:07 +0100 | [diff] [blame] | 97 | |
| 98 | <!-- Common logging framework --> |
| 99 | <dependency> |
| 100 | <groupId>org.onap.aai.logging-service</groupId> |
| 101 | <artifactId>common-logging</artifactId> |
| 102 | <version>${common.logging.version}</version> |
| 103 | </dependency> |
| 104 | <dependency> |
| 105 | <groupId>org.hamcrest</groupId> |
| 106 | <artifactId>hamcrest-library</artifactId> |
| 107 | <version>1.3</version> |
| 108 | <scope>test</scope> |
| 109 | </dependency> |
| 110 | <dependency> |
| 111 | <groupId>com.google.code.gson</groupId> |
| 112 | <artifactId>gson</artifactId> |
| 113 | <version>2.8.1</version> |
| 114 | </dependency> |
| 115 | <dependency> |
| 116 | <groupId>ch.qos.logback</groupId> |
| 117 | <artifactId>logback-core</artifactId> |
| 118 | <version>${logback.version}</version> |
| 119 | </dependency> |
| 120 | |
| 121 | <!-- apache commons --> |
| 122 | <dependency> |
| 123 | <groupId>org.apache.commons</groupId> |
| 124 | <artifactId>commons-compress</artifactId> |
| 125 | <version>${commons-compress.version}</version> |
| 126 | </dependency> |
| 127 | <dependency> |
| 128 | <groupId>commons-io</groupId> |
| 129 | <artifactId>commons-io</artifactId> |
| 130 | </dependency> |
| 131 | <dependency> |
| 132 | <groupId>org.apache.commons</groupId> |
| 133 | <artifactId>commons-lang3</artifactId> |
| 134 | <version>${apache.lang3.version}</version> |
| 135 | </dependency> |
Edwin Lawrance | 1433a67 | 2017-09-22 16:55:07 +0100 | [diff] [blame] | 136 | <dependency> |
Leonard, Mark (ml401d) | 66b3afa | 2018-03-21 18:40:41 +0000 | [diff] [blame] | 137 | <groupId>org.onap.sdc.sdc-tosca</groupId> |
| 138 | <artifactId>sdc-tosca</artifactId> |
| 139 | <version>${sdc.tosca.version}</version> |
Edwin Lawrance | 1433a67 | 2017-09-22 16:55:07 +0100 | [diff] [blame] | 140 | </dependency> |
| 141 | <dependency> |
| 142 | <groupId>com.fasterxml.jackson.core</groupId> |
| 143 | <artifactId>jackson-core</artifactId> |
Leonard, Mark (ml401d) | 66b3afa | 2018-03-21 18:40:41 +0000 | [diff] [blame] | 144 | <version>${fasterxml.version}</version><!--$NO-MVN-MAN-VER$ --> |
Edwin Lawrance | 1433a67 | 2017-09-22 16:55:07 +0100 | [diff] [blame] | 145 | </dependency> |
Leonard, Mark (ml401d) | 66b3afa | 2018-03-21 18:40:41 +0000 | [diff] [blame] | 146 | <dependency> |
| 147 | <groupId>org.onap.aai</groupId> |
| 148 | <artifactId>rest-client</artifactId> |
| 149 | <version>${aai.rest.client.version}</version> |
| 150 | </dependency> |
Edwin Lawrance | 1433a67 | 2017-09-22 16:55:07 +0100 | [diff] [blame] | 151 | |
| 152 | <!-- Testing --> |
| 153 | <dependency> |
| 154 | <groupId>org.mockito</groupId> |
| 155 | <artifactId>mockito-core</artifactId> |
| 156 | <version>${mockito.version}</version> |
| 157 | <scope>test</scope> |
| 158 | </dependency> |
| 159 | <dependency> |
| 160 | <groupId>org.powermock</groupId> |
| 161 | <artifactId>powermock-module-junit4</artifactId> |
| 162 | <version>${powermock.version}</version> |
| 163 | <scope>test</scope> |
| 164 | </dependency> |
| 165 | <dependency> |
| 166 | <groupId>org.powermock</groupId> |
| 167 | <artifactId>powermock-api-mockito</artifactId> |
| 168 | <version>${powermock.version}</version> |
| 169 | <scope>test</scope> |
| 170 | </dependency> |
| 171 | <dependency> |
| 172 | <groupId>org.powermock</groupId> |
| 173 | <artifactId>powermock-module-javaagent</artifactId> |
| 174 | <version>${powermock.version}</version> |
| 175 | <scope>test</scope> |
| 176 | </dependency> |
| 177 | <dependency> |
| 178 | <groupId>org.powermock</groupId> |
| 179 | <artifactId>powermock-module-junit4-rule-agent</artifactId> |
| 180 | <version>${powermock.version}</version> |
| 181 | <scope>test</scope> |
| 182 | </dependency> |
| 183 | <dependency> |
| 184 | <groupId>org.javassist</groupId> |
| 185 | <artifactId>javassist</artifactId> |
| 186 | <version>${javaassist.version}</version> |
| 187 | </dependency> |
| 188 | <dependency> |
| 189 | <groupId>org.openecomp.sdc.sdc-distribution-client</groupId> |
| 190 | <artifactId>sdc-distribution-client</artifactId> |
| 191 | <version>${sdc.distribution.client.version}</version> |
Leonard, Mark (ml401d) | 66b3afa | 2018-03-21 18:40:41 +0000 | [diff] [blame] | 192 | <scope>test</scope> |
Edwin Lawrance | 1433a67 | 2017-09-22 16:55:07 +0100 | [diff] [blame] | 193 | </dependency> |
Leonard, Mark (ml401d) | 66b3afa | 2018-03-21 18:40:41 +0000 | [diff] [blame] | 194 | <dependency> |
| 195 | <groupId>xmlunit</groupId> |
| 196 | <artifactId>xmlunit</artifactId> |
| 197 | <version>${xmlunit.version}</version> |
| 198 | <scope>test</scope> |
| 199 | </dependency> |
Edwin Lawrance | 1433a67 | 2017-09-22 16:55:07 +0100 | [diff] [blame] | 200 | </dependencies> |
| 201 | |
Edwin Lawrance | ab6eeb1 | 2017-10-05 16:23:56 +0100 | [diff] [blame] | 202 | <repositories> |
Leonard, Mark (ml401d) | 66b3afa | 2018-03-21 18:40:41 +0000 | [diff] [blame] | 203 | <repository> |
| 204 | <id>ecomp-staging</id> |
| 205 | <name>ECOMP Staging Repository</name> |
| 206 | <url>${onap.nexus.url}/content/repositories/staging/</url> |
| 207 | </repository> |
Edwin Lawrance | ab6eeb1 | 2017-10-05 16:23:56 +0100 | [diff] [blame] | 208 | </repositories> |
| 209 | |
Edwin Lawrance | d9c8788 | 2017-10-06 10:40:54 +0100 | [diff] [blame] | 210 | <distributionManagement> |
| 211 | <repository> |
| 212 | <id>ecomp-releases</id> |
| 213 | <name>ECOMP Release Repository</name> |
| 214 | <url>${onap.nexus.url}/content/repositories/releases/</url> |
| 215 | </repository> |
| 216 | <snapshotRepository> |
| 217 | <id>ecomp-snapshots</id> |
| 218 | <name>ECOMP Snapshot Repository</name> |
| 219 | <url>${onap.nexus.url}/content/repositories/snapshots/</url> |
| 220 | </snapshotRepository> |
| 221 | <site> |
| 222 | <id>ecomp-site</id> |
| 223 | <url>dav:${onap.nexus.url}${sitePath}</url> |
| 224 | </site> |
| 225 | </distributionManagement> |
| 226 | |
Edwin Lawrance | 1433a67 | 2017-09-22 16:55:07 +0100 | [diff] [blame] | 227 | <build> |
| 228 | <plugins> |
Venkata Harish K Kajur | e350708 | 2018-01-08 02:44:08 -0500 | [diff] [blame] | 229 | <plugin> |
Leonard, Mark (ml401d) | 66b3afa | 2018-03-21 18:40:41 +0000 | [diff] [blame] | 230 | <groupId>org.apache.maven.plugins</groupId> |
| 231 | <artifactId>maven-dependency-plugin</artifactId> |
| 232 | <executions> |
| 233 | <execution> |
| 234 | <id>unpack</id> |
| 235 | <phase>initialize</phase> |
| 236 | <goals> |
| 237 | <goal>unpack</goal> |
| 238 | </goals> |
| 239 | <configuration> |
| 240 | <artifactItems> |
| 241 | <artifactItem> |
| 242 | <groupId>org.onap.aai.aai-common</groupId> |
| 243 | <artifactId>aai-schema</artifactId> |
| 244 | <version>${aai-schema.version}</version> |
| 245 | <type>jar</type> |
| 246 | <includes>aai_schema/aai_schema_v**.xsd</includes> |
| 247 | <outputDirectory>target/tmp</outputDirectory> |
| 248 | </artifactItem> |
| 249 | </artifactItems> |
| 250 | </configuration> |
| 251 | </execution> |
| 252 | </executions> |
| 253 | </plugin> |
| 254 | <plugin> |
| 255 | <groupId>org.jvnet.jaxb2.maven2</groupId> |
| 256 | <artifactId>maven-jaxb2-plugin</artifactId> |
| 257 | <version>${mvn.jaxb2.version}</version> |
| 258 | <executions> |
| 259 | <execution> |
| 260 | <phase>process-sources</phase> |
| 261 | <goals> |
| 262 | <goal>generate</goal> |
| 263 | </goals> |
| 264 | </execution> |
| 265 | </executions> |
| 266 | <configuration> |
| 267 | <schemaDirectory>target/tmp/aai_schema</schemaDirectory> |
| 268 | <generatePackage>org.onap.aai.babel.xml.generator.xsd</generatePackage> |
| 269 | <generateDirectory>target/generated-sources</generateDirectory> |
| 270 | <schemaIncludes> |
| 271 | <include>aai_schema_latest.xsd</include> |
| 272 | </schemaIncludes> |
| 273 | <extension>true</extension> |
| 274 | <args> |
| 275 | <arg>-Xannotate</arg> |
| 276 | </args> |
| 277 | <plugins> |
| 278 | <plugin> |
| 279 | <groupId>org.jvnet.jaxb2_commons</groupId> |
| 280 | <artifactId>jaxb2-basics-annotate</artifactId> |
| 281 | <version>0.6.4</version> |
| 282 | </plugin> |
| 283 | <!-- Add the dependencies with your annotations as 'plugins' below --> |
| 284 | <plugin> |
| 285 | <groupId>org.jvnet.jaxb2_commons</groupId> |
| 286 | <artifactId>jaxb2-annotate-plugin-test-annox-annotations</artifactId> |
| 287 | <version>1.0.0</version> |
| 288 | </plugin> |
| 289 | </plugins> |
| 290 | </configuration> |
| 291 | </plugin> |
| 292 | <plugin> |
| 293 | <artifactId>exec-maven-plugin</artifactId> |
| 294 | <groupId>org.codehaus.mojo</groupId> |
| 295 | <executions> |
| 296 | <execution><!-- Run our script to get latest xsd version --> |
| 297 | <id>Get latest xsd version</id> |
| 298 | <phase>generate-sources</phase> |
| 299 | <goals> |
| 300 | <goal>exec</goal> |
| 301 | </goals> |
| 302 | <configuration> |
| 303 | <workingDirectory>${basedir}/scripts</workingDirectory> |
| 304 | <executable>bash</executable> |
| 305 | <commandlineArgs>get-latest-xsd-version.sh ${basedir}</commandlineArgs> |
| 306 | </configuration> |
| 307 | </execution> |
| 308 | </executions> |
| 309 | </plugin> |
| 310 | <plugin> |
Venkata Harish K Kajur | e350708 | 2018-01-08 02:44:08 -0500 | [diff] [blame] | 311 | <groupId>org.codehaus.mojo</groupId> |
| 312 | <artifactId>sonar-maven-plugin</artifactId> |
| 313 | <version>3.2</version> |
| 314 | </plugin> |
Edwin Lawrance | 1433a67 | 2017-09-22 16:55:07 +0100 | [diff] [blame] | 315 | <plugin> |
| 316 | <groupId>org.codehaus.mojo</groupId> |
| 317 | <artifactId>cobertura-maven-plugin</artifactId> |
| 318 | <version>2.7</version> |
| 319 | <executions> |
| 320 | <execution> |
| 321 | <phase /> |
| 322 | </execution> |
| 323 | </executions> |
| 324 | </plugin> |
Edwin Lawrance | 1433a67 | 2017-09-22 16:55:07 +0100 | [diff] [blame] | 325 | <plugin> |
| 326 | <groupId>org.jacoco</groupId> |
| 327 | <artifactId>jacoco-maven-plugin</artifactId> |
| 328 | <version>${jacoco.version}</version> |
Leonard, Mark (ml401d) | 66b3afa | 2018-03-21 18:40:41 +0000 | [diff] [blame] | 329 | <configuration> |
| 330 | <excludes> |
| 331 | <exclude>**/xml/generator/xsd/*.class</exclude> |
| 332 | </excludes> |
| 333 | </configuration> |
Edwin Lawrance | 1433a67 | 2017-09-22 16:55:07 +0100 | [diff] [blame] | 334 | <executions> |
| 335 | <execution> |
| 336 | <id>prepare-agent</id> |
| 337 | <goals> |
| 338 | <goal>prepare-agent</goal> |
| 339 | </goals> |
| 340 | </execution> |
| 341 | |
| 342 | <execution> |
| 343 | <id>report</id> |
| 344 | <phase>package</phase> |
| 345 | <goals> |
| 346 | <goal>report</goal> |
| 347 | </goals> |
| 348 | </execution> |
| 349 | </executions> |
Edwin Lawrance | 1433a67 | 2017-09-22 16:55:07 +0100 | [diff] [blame] | 350 | </plugin> |
| 351 | |
| 352 | <plugin> |
| 353 | <groupId>org.codehaus.groovy</groupId> |
| 354 | <artifactId>groovy-eclipse-compiler</artifactId> |
| 355 | <version>2.9.2-01</version> |
| 356 | </plugin> |
| 357 | <plugin> |
| 358 | <groupId>org.apache.maven.plugins</groupId> |
| 359 | <artifactId>maven-resources-plugin</artifactId> |
| 360 | <version>3.0.2</version> |
| 361 | <executions> |
| 362 | <execution> |
| 363 | <id>copy-docker-file</id> |
| 364 | <phase>package</phase> |
| 365 | <goals> |
| 366 | <goal>copy-resources</goal> |
| 367 | </goals> |
| 368 | <configuration> |
| 369 | <outputDirectory>target</outputDirectory> |
| 370 | <overwrite>true</overwrite> |
| 371 | <resources> |
| 372 | <resource> |
| 373 | <directory>${basedir}/src/main/docker</directory> |
| 374 | <filtering>true</filtering> |
| 375 | <includes> |
| 376 | <include>**/*</include> |
| 377 | </includes> |
| 378 | </resource> |
| 379 | <resource> |
| 380 | <directory>${basedir}/src/main/bin/</directory> |
| 381 | </resource> |
| 382 | </resources> |
| 383 | </configuration> |
| 384 | </execution> |
| 385 | </executions> |
| 386 | </plugin> |
Leonard, Mark (ml401d) | 66b3afa | 2018-03-21 18:40:41 +0000 | [diff] [blame] | 387 | |
Edwin Lawrance | 1433a67 | 2017-09-22 16:55:07 +0100 | [diff] [blame] | 388 | <plugin> |
| 389 | <groupId>org.apache.maven.plugins</groupId> |
| 390 | <artifactId>maven-jar-plugin</artifactId> |
| 391 | <version>3.0.2</version> |
| 392 | <executions> |
| 393 | <execution> |
| 394 | <phase>package</phase> |
| 395 | <goals> |
| 396 | <goal>jar</goal> |
| 397 | </goals> |
| 398 | <configuration> |
| 399 | <classifier>client</classifier> |
| 400 | <includes> |
| 401 | <include>**/babel/service/data/*</include> |
| 402 | </includes> |
| 403 | </configuration> |
| 404 | </execution> |
| 405 | </executions> |
| 406 | </plugin> |
Edwin Lawrance | 6337075 | 2017-10-09 11:56:05 +0100 | [diff] [blame] | 407 | <plugin> |
| 408 | <groupId>com.spotify</groupId> |
| 409 | <artifactId>docker-maven-plugin</artifactId> |
| 410 | <version>0.4.11</version> |
| 411 | <configuration> |
| 412 | <verbose>true</verbose> |
| 413 | <serverId>docker-hub</serverId> |
RaviGeda | 161f5a7 | 2018-03-15 11:56:47 +0000 | [diff] [blame] | 414 | <imageName>${docker.push.registry}/onap/${project.artifactId}</imageName> |
Edwin Lawrance | 6337075 | 2017-10-09 11:56:05 +0100 | [diff] [blame] | 415 | <dockerDirectory>${docker.location}</dockerDirectory> |
| 416 | <imageTags> |
Leonard, Mark (ml401d) | 66b3afa | 2018-03-21 18:40:41 +0000 | [diff] [blame] | 417 | <imageTag>latest</imageTag> |
Edwin Lawrance | 6337075 | 2017-10-09 11:56:05 +0100 | [diff] [blame] | 418 | </imageTags> |
| 419 | <forceTags>true</forceTags> |
| 420 | </configuration> |
| 421 | </plugin> |
Edwin Lawrance | 1433a67 | 2017-09-22 16:55:07 +0100 | [diff] [blame] | 422 | |
Edwin Lawrance | 1433a67 | 2017-09-22 16:55:07 +0100 | [diff] [blame] | 423 | <plugin> |
| 424 | <groupId>org.apache.maven.plugins</groupId> |
| 425 | <artifactId>maven-deploy-plugin</artifactId> |
Leonard, Mark (ml401d) | 66b3afa | 2018-03-21 18:40:41 +0000 | [diff] [blame] | 426 | <version>2.8.2</version> |
Edwin Lawrance | 1433a67 | 2017-09-22 16:55:07 +0100 | [diff] [blame] | 427 | <configuration> |
| 428 | <classifier>client</classifier> |
| 429 | </configuration> |
| 430 | </plugin> |
| 431 | |
| 432 | <plugin> |
| 433 | <groupId>org.apache.maven.plugins</groupId> |
| 434 | <artifactId>maven-site-plugin</artifactId> |
| 435 | <version>3.3</version> |
| 436 | <configuration> |
| 437 | <reportPlugins> |
| 438 | <plugin> |
| 439 | <groupId>org.apache.maven.plugins</groupId> |
| 440 | <artifactId>maven-checkstyle-plugin</artifactId> |
| 441 | <version>2.17</version> |
| 442 | <reportSets> |
| 443 | <reportSet> |
| 444 | <reports> |
| 445 | <report>checkstyle</report> |
| 446 | </reports> |
| 447 | </reportSet> |
| 448 | </reportSets> |
| 449 | </plugin> |
| 450 | </reportPlugins> |
| 451 | </configuration> |
| 452 | </plugin> |
Leonard, Mark (ml401d) | 66b3afa | 2018-03-21 18:40:41 +0000 | [diff] [blame] | 453 | |
Edwin Lawrance | c20301d | 2017-10-05 14:28:34 +0100 | [diff] [blame] | 454 | <plugin> |
Leonard, Mark (ml401d) | 66b3afa | 2018-03-21 18:40:41 +0000 | [diff] [blame] | 455 | <groupId>org.sonatype.plugins</groupId> |
| 456 | <artifactId>nexus-staging-maven-plugin</artifactId> |
| 457 | <version>1.6.7</version> |
| 458 | <extensions>true</extensions> |
| 459 | <configuration> |
| 460 | <nexusUrl>${onap.nexus.url}</nexusUrl> |
| 461 | <stagingProfileId>176c31dfe190a</stagingProfileId> |
| 462 | <serverId>ecomp-staging</serverId> |
| 463 | </configuration> |
Edwin Lawrance | c20301d | 2017-10-05 14:28:34 +0100 | [diff] [blame] | 464 | </plugin> |
Leonard, Mark (ml401d) | 66b3afa | 2018-03-21 18:40:41 +0000 | [diff] [blame] | 465 | |
Edwin Lawrance | 1433a67 | 2017-09-22 16:55:07 +0100 | [diff] [blame] | 466 | <!-- Strong recommendation to use forkCount and reuseForks parameters as forkMode is deprecated since v2.14 --> |
| 467 | <plugin> |
Leonard, Mark (ml401d) | 66b3afa | 2018-03-21 18:40:41 +0000 | [diff] [blame] | 468 | <groupId>org.apache.maven.plugins</groupId> |
| 469 | <artifactId>maven-surefire-plugin</artifactId> |
| 470 | <configuration> |
| 471 | <reuseForks>false</reuseForks> |
| 472 | <forkCount>1</forkCount> |
| 473 | <environmentVariables> |
| 474 | <AJSC_HOME>.</AJSC_HOME> |
| 475 | </environmentVariables> |
| 476 | </configuration> |
Edwin Lawrance | 1433a67 | 2017-09-22 16:55:07 +0100 | [diff] [blame] | 477 | </plugin> |
| 478 | </plugins> |
Edwin Lawrance | 1433a67 | 2017-09-22 16:55:07 +0100 | [diff] [blame] | 479 | |
Leonard, Mark (ml401d) | 66b3afa | 2018-03-21 18:40:41 +0000 | [diff] [blame] | 480 | </build> |
Edwin Lawrance | 1433a67 | 2017-09-22 16:55:07 +0100 | [diff] [blame] | 481 | |
| 482 | <profiles> |
| 483 | <profile> |
| 484 | <id>runAjsc</id> |
| 485 | <build> |
| 486 | <defaultGoal>initialize</defaultGoal> |
| 487 | <plugins> |
| 488 | <plugin> |
| 489 | <groupId>org.codehaus.mojo</groupId> |
| 490 | <artifactId>exec-maven-plugin</artifactId> |
| 491 | <version>1.3.2</version> |
| 492 | <executions> |
| 493 | <execution> |
| 494 | <phase>initialize</phase> |
| 495 | <goals> |
| 496 | <goal>java</goal> |
| 497 | </goals> |
| 498 | <configuration> |
| 499 | <includeProjectDependencies>false</includeProjectDependencies> |
| 500 | <includePluginDependencies>true</includePluginDependencies> |
| 501 | <executable>java</executable> |
| 502 | <mainClass>com.att.ajsc.runner.Runner</mainClass> |
| 503 | <executableDependency> |
| 504 | <groupId>com.att.ajsc</groupId> |
| 505 | <artifactId>ajsc-runner</artifactId> |
| 506 | </executableDependency> |
| 507 | <additionalClasspathElements> |
| 508 | <additionalClasspathElement>${basedir}/ajsc-shared-config/etc</additionalClasspathElement> |
| 509 | </additionalClasspathElements> |
| 510 | |
| 511 | <environmentVariables> |
| 512 | <AJSC_HOME>${runAjscHome}</AJSC_HOME> |
| 513 | </environmentVariables> |
| 514 | |
| 515 | <!-- Main AJSC System Properties below (necessary for proper startup) --> |
| 516 | <systemProperties> |
| 517 | <systemProperty> |
| 518 | <key>AJSC_HOME</key> |
| 519 | <value>${runAjscHome}</value> |
| 520 | </systemProperty> |
| 521 | <systemProperty> |
| 522 | <key>AJSC_HOME</key> |
| 523 | <value>${runAjscHome}</value> |
| 524 | </systemProperty> |
| 525 | <systemProperty> |
| 526 | <key>AJSC_CONF_HOME</key> |
| 527 | <value>${basedir}/bundleconfig-local</value> |
| 528 | </systemProperty> |
| 529 | <systemProperty> |
| 530 | <key>logback.configurationFile</key> |
| 531 | <value>${basedir}/ajsc-shared-config/etc/logback.xml</value> |
| 532 | </systemProperty> |
| 533 | <systemProperty> |
| 534 | <key>AJSC_SHARED_CONFIG</key> |
| 535 | <value>${basedir}/ajsc-shared-config</value> |
| 536 | </systemProperty> |
| 537 | <sysproperty> |
| 538 | <key>AJSC_EXTERNAL_LIB_FOLDERS</key> |
| 539 | <value>${basedir}/target/commonLibs</value> |
| 540 | </sysproperty> |
| 541 | <sysproperty> |
| 542 | <key>AJSC_EXTERNAL_PROPERTIES_FOLDERS</key> |
| 543 | <value>${basedir}/ajsc-shared-config/etc</value> |
| 544 | </sysproperty> |
| 545 | |
| 546 | <systemProperty> |
| 547 | <key>AJSC_SERVICE_NAMESPACE</key> |
| 548 | <value>${module.ajsc.namespace.name}</value> |
| 549 | </systemProperty> |
| 550 | <systemProperty> |
| 551 | <key>AJSC_SERVICE_VERSION</key> |
| 552 | <value>${module.ajsc.namespace.version}</value> |
| 553 | </systemProperty> |
| 554 | <systemProperty> |
| 555 | <key>SOACLOUD_SERVICE_VERSION</key> |
| 556 | <value>${project.version}</value> |
| 557 | </systemProperty> |
| 558 | <systemProperty> |
| 559 | <key>server.port</key> |
| 560 | <value>${serverPort}</value> |
| 561 | </systemProperty> |
| 562 | <systemProperty> |
| 563 | <key>CONFIG_HOME</key> |
| 564 | <value>${basedir}/appconfig-local</value> |
| 565 | </systemProperty> |
| 566 | <systemProperty> |
| 567 | <key>artifactgenerator.config</key> |
| 568 | <value>${basedir}/appconfig-local/artifact-generator.properties</value> |
| 569 | </systemProperty> |
| 570 | </systemProperties> |
| 571 | |
Leonard, Mark (ml401d) | 66b3afa | 2018-03-21 18:40:41 +0000 | [diff] [blame] | 572 | <!-- Command Line Arguments to add to the java command. Here, you |
| 573 | can specify the port as well as the Context you want your service to run |
| 574 | in. Use context=/ to run in an unnamed Context (Root Context). The default |
| 575 | configuration of the AJSC is to run under the / Context. Setting the port |
| 576 | here can aid during the development phase of your service. However, you can |
| 577 | leave this argument out entirely, and the AJSC will default to using an Ephemeral |
| 578 | port. --> |
Edwin Lawrance | 1433a67 | 2017-09-22 16:55:07 +0100 | [diff] [blame] | 579 | <arguments> |
| 580 | <argument>context=/</argument> |
| 581 | <argument>port=${serverPort}</argument> |
| 582 | <argument>sslport=${sslport}</argument> |
| 583 | </arguments> |
| 584 | </configuration> |
| 585 | </execution> |
| 586 | </executions> |
| 587 | <configuration> |
| 588 | <executable>java</executable> |
| 589 | </configuration> |
| 590 | <dependencies> |
| 591 | <dependency> |
| 592 | <groupId>com.att.ajsc</groupId> |
| 593 | <artifactId>ajsc-runner</artifactId> |
| 594 | <version>${ajscRuntimeVersion}</version> |
| 595 | </dependency> |
| 596 | </dependencies> |
| 597 | </plugin> |
| 598 | </plugins> |
| 599 | </build> |
| 600 | </profile> |
| 601 | </profiles> |
| 602 | |
| 603 | </project> |