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