sg481n | bd890c5 | 2017-08-28 12:11:35 -0400 | [diff] [blame] | 1 | <?xml version="1.0" encoding="UTF-8"?>
|
| 2 | <!--
|
| 3 | ============LICENSE_START====================================================
|
| 4 | * org.onap.aaf
|
| 5 | * ===========================================================================
|
| 6 | * Copyright © 2017 AT&T Intellectual Property. All rights reserved.
|
| 7 | * ===========================================================================
|
| 8 | * Licensed under the Apache License, Version 2.0 (the "License");
|
| 9 | * you may not use this file except in compliance with the License.
|
| 10 | * You may obtain a copy of the License at
|
| 11 | *
|
| 12 | * http://www.apache.org/licenses/LICENSE-2.0
|
| 13 | *
|
| 14 | * Unless required by applicable law or agreed to in writing, software
|
| 15 | * distributed under the License is distributed on an "AS IS" BASIS,
|
| 16 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
| 17 | * See the License for the specific language governing permissions and
|
| 18 | * limitations under the License.
|
| 19 | * ============LICENSE_END====================================================
|
| 20 | *
|
| 21 | * ECOMP is a trademark and service mark of AT&T Intellectual Property.
|
| 22 | *
|
| 23 | -->
|
| 24 | <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
| 25 | xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
|
| 26 | <modelVersion>4.0.0</modelVersion>
|
| 27 | <parent>
|
| 28 | <groupId>org.onap.aaf.authz</groupId>
|
| 29 | <artifactId>parent</artifactId>
|
sg481n | a2ac678 | 2017-09-18 16:35:50 -0400 | [diff] [blame] | 30 | <version>1.0.1-SNAPSHOT</version>
|
sg481n | bd890c5 | 2017-08-28 12:11:35 -0400 | [diff] [blame] | 31 | <relativePath>../pom.xml</relativePath>
|
| 32 | </parent>
|
| 33 |
|
| 34 | <artifactId>authz-service</artifactId>
|
| 35 | <name>Authz Service</name>
|
| 36 | <description>API for Authorization and Authentication</description>
|
| 37 | <url>https://github.com/att/AAF</url>
|
| 38 | <licenses>
|
| 39 | <license>
|
| 40 | <name>BSD License</name>
|
| 41 | <url> </url>
|
| 42 | </license>
|
| 43 | </licenses>
|
| 44 | <developers>
|
| 45 | <developer>
|
| 46 | <name>Jonathan Gathman</name>
|
| 47 | <email></email>
|
| 48 | <organization>ATT</organization>
|
| 49 | <organizationUrl></organizationUrl>
|
| 50 | </developer>
|
| 51 | </developers>
|
| 52 |
|
| 53 | <properties>
|
sg481n | c7499ee | 2017-09-24 04:05:00 +0000 | [diff] [blame] | 54 | <maven.build.timestamp.format>yyyy.MM.dd'T'hh.mm.ss'Z'</maven.build.timestamp.format>
|
sg481n | bd890c5 | 2017-08-28 12:11:35 -0400 | [diff] [blame] | 55 | <maven.test.failure.ignore>true</maven.test.failure.ignore>
|
| 56 | <project.swmVersion>1</project.swmVersion>
|
sg481n | a2ac678 | 2017-09-18 16:35:50 -0400 | [diff] [blame] | 57 | <project.innoVersion>1.0.0-SNAPSHOT</project.innoVersion>
|
| 58 | <project.cadiVersion>1.0.0-SNAPSHOT</project.cadiVersion>
|
sg481n | b0012ae | 2017-09-24 05:39:19 +0000 | [diff] [blame^] | 59 | <dockerLocation>${basedir}/target/</dockerLocation>
|
sg481n | dc5fcf1 | 2017-09-15 13:06:30 -0400 | [diff] [blame] | 60 | <distFilesRootDirPath>opt/app/aaf/${project.artifactId}/${project.version}</distFilesRootDirPath>
|
sg481n | 40cd356 | 2017-09-01 13:12:31 -0400 | [diff] [blame] | 61 | <sonar.language>java</sonar.language>
|
| 62 | <sonar.java.coveragePlugin>jacoco</sonar.java.coveragePlugin>
|
| 63 | <sonar.surefire.reportsPath>${project.build.directory}/surefire-reports</sonar.surefire.reportsPath>
|
| 64 | <sonar.jacoco.reportPath>${project.build.directory}/coverage-reports/jacoco.exec</sonar.jacoco.reportPath>
|
| 65 | <sonar.jacoco.itReportPath>${project.build.directory}/coverage-reports/jacoco-it.exec</sonar.jacoco.itReportPath>
|
| 66 | <sonar.jacoco.reportMissing.force.zero>true</sonar.jacoco.reportMissing.force.zero>
|
| 67 | <sonar.projectVersion>${project.version}</sonar.projectVersion>
|
sg481n | bd890c5 | 2017-08-28 12:11:35 -0400 | [diff] [blame] | 68 | <nexusproxy>https://nexus.onap.org</nexusproxy>
|
| 69 | <snapshotNexusPath>/content/repositories/snapshots/</snapshotNexusPath>
|
| 70 | <releaseNexusPath>/content/repositories/releases/</releaseNexusPath>
|
| 71 | <stagingNexusPath>/content/repositories/staging/</stagingNexusPath>
|
sg481n | a9d2108 | 2017-09-23 14:26:06 +0000 | [diff] [blame] | 72 | <sitePath>/content/sites/site/org/onap/aaf/authz/${project.artifactId}/${project.version}</sitePath>
|
sg481n | c7499ee | 2017-09-24 04:05:00 +0000 | [diff] [blame] | 73 | <skip.docker.build>true</skip.docker.build>
|
| 74 | <skip.docker.push>true</skip.docker.push>
|
| 75 | <skip.staging.artifacts>false</skip.staging.artifacts>
|
sg481n | bd890c5 | 2017-08-28 12:11:35 -0400 | [diff] [blame] | 76 | </properties>
|
| 77 |
|
| 78 |
|
| 79 | <dependencies>
|
| 80 | <dependency>
|
| 81 | <groupId>org.onap.aaf.authz</groupId>
|
| 82 | <artifactId>authz-client</artifactId>
|
sg481n | 5c30b7f | 2017-09-17 11:37:00 -0400 | [diff] [blame] | 83 | <version>${project.version}</version>
|
sg481n | bd890c5 | 2017-08-28 12:11:35 -0400 | [diff] [blame] | 84 | </dependency>
|
sg481n | dc5fcf1 | 2017-09-15 13:06:30 -0400 | [diff] [blame] | 85 |
|
| 86 | <dependency>
|
| 87 | <groupId>org.onap.aaf.authz</groupId>
|
| 88 | <artifactId>authz-cmd</artifactId>
|
sg481n | 5c30b7f | 2017-09-17 11:37:00 -0400 | [diff] [blame] | 89 | <version>${project.version}</version>
|
sg481n | dc5fcf1 | 2017-09-15 13:06:30 -0400 | [diff] [blame] | 90 | </dependency>
|
sg481n | bd890c5 | 2017-08-28 12:11:35 -0400 | [diff] [blame] | 91 | <dependency>
|
| 92 | <groupId>org.onap.aaf.authz</groupId>
|
| 93 | <artifactId>authz-core</artifactId>
|
sg481n | 5c30b7f | 2017-09-17 11:37:00 -0400 | [diff] [blame] | 94 | <version>${project.version}</version>
|
sg481n | bd890c5 | 2017-08-28 12:11:35 -0400 | [diff] [blame] | 95 | <exclusions>
|
| 96 | <exclusion>
|
| 97 | <groupId>javax.servlet</groupId>
|
| 98 | <artifactId>servlet-api</artifactId>
|
| 99 | </exclusion>
|
| 100 | </exclusions>
|
| 101 | </dependency>
|
| 102 |
|
| 103 | <dependency>
|
| 104 | <groupId>org.onap.aaf.authz</groupId>
|
| 105 | <artifactId>authz-cass</artifactId>
|
sg481n | 5c30b7f | 2017-09-17 11:37:00 -0400 | [diff] [blame] | 106 | <version>${project.version}</version>
|
sg481n | bd890c5 | 2017-08-28 12:11:35 -0400 | [diff] [blame] | 107 | </dependency>
|
| 108 |
|
| 109 | <dependency>
|
| 110 | <groupId>org.onap.aaf.authz</groupId>
|
| 111 | <artifactId>authz-defOrg</artifactId>
|
| 112 | <version>${project.version}</version>
|
| 113 | </dependency>
|
| 114 |
|
| 115 |
|
| 116 |
|
| 117 | <dependency >
|
| 118 | <groupId>org.onap.aaf.inno</groupId>
|
| 119 | <artifactId>env</artifactId>
|
sg481n | a2ac678 | 2017-09-18 16:35:50 -0400 | [diff] [blame] | 120 | <version>${project.innoVersion}</version>
|
sg481n | bd890c5 | 2017-08-28 12:11:35 -0400 | [diff] [blame] | 121 | </dependency>
|
| 122 |
|
| 123 |
|
| 124 | <dependency>
|
| 125 | <groupId>org.onap.aaf.cadi</groupId>
|
| 126 | <artifactId>cadi-core</artifactId>
|
sg481n | a2ac678 | 2017-09-18 16:35:50 -0400 | [diff] [blame] | 127 | <version>${project.cadiVersion}</version>
|
sg481n | bd890c5 | 2017-08-28 12:11:35 -0400 | [diff] [blame] | 128 | </dependency>
|
| 129 |
|
| 130 | <dependency>
|
| 131 | <groupId>com.att.aft</groupId>
|
| 132 | <artifactId>dme2</artifactId>
|
| 133 | </dependency>
|
| 134 |
|
| 135 | <dependency>
|
| 136 | <groupId>org.onap.aaf.inno</groupId>
|
| 137 | <artifactId>rosetta</artifactId>
|
sg481n | a2ac678 | 2017-09-18 16:35:50 -0400 | [diff] [blame] | 138 | <version>${project.innoVersion}</version>
|
sg481n | bd890c5 | 2017-08-28 12:11:35 -0400 | [diff] [blame] | 139 | </dependency>
|
| 140 | <dependency>
|
| 141 | <groupId>org.onap.aaf.cadi</groupId>
|
| 142 | <artifactId>cadi-aaf</artifactId>
|
sg481n | a2ac678 | 2017-09-18 16:35:50 -0400 | [diff] [blame] | 143 | <version>${project.cadiVersion}</version>
|
sg481n | dc5fcf1 | 2017-09-15 13:06:30 -0400 | [diff] [blame] | 144 | </dependency>
|
sg481n | bd890c5 | 2017-08-28 12:11:35 -0400 | [diff] [blame] | 145 | </dependencies>
|
sg481n | 2bc3538 | 2017-09-23 15:50:15 +0000 | [diff] [blame] | 146 |
|
sg481n | c7499ee | 2017-09-24 04:05:00 +0000 | [diff] [blame] | 147 |
|
sg481n | bd890c5 | 2017-08-28 12:11:35 -0400 | [diff] [blame] | 148 | <build>
|
| 149 | <plugins>
|
sg481n | c7499ee | 2017-09-24 04:05:00 +0000 | [diff] [blame] | 150 |
|
sg481n | a9d2108 | 2017-09-23 14:26:06 +0000 | [diff] [blame] | 151 |
|
sg481n | c7499ee | 2017-09-24 04:05:00 +0000 | [diff] [blame] | 152 | <plugin>
|
| 153 | <groupId>com.spotify</groupId>
|
| 154 | <artifactId>docker-maven-plugin</artifactId>
|
| 155 | <version>1.0.0</version>
|
| 156 | <configuration>
|
| 157 | <imageName>onap/aaf/authz-service</imageName>
|
sg481n | b0012ae | 2017-09-24 05:39:19 +0000 | [diff] [blame^] | 158 | <dockerDirectory>src/main/resources/docker</dockerDirectory>
|
sg481n | c7499ee | 2017-09-24 04:05:00 +0000 | [diff] [blame] | 159 | <serverId>docker-hub</serverId>
|
| 160 | <imageTags>
|
| 161 | <imageTag>latest</imageTag>
|
| 162 | <imageTag>${project.docker.latesttagtimestamp.version}</imageTag>
|
| 163 | <imageTag>${project.docker.latesttag.version}</imageTag>
|
| 164 | </imageTags>
|
| 165 | <forceTags>true</forceTags>
|
| 166 | <resources>
|
| 167 | <resource>
|
| 168 | <targetPath>/</targetPath>
|
sg481n | b0012ae | 2017-09-24 05:39:19 +0000 | [diff] [blame^] | 169 | <directory>${project.build.directory}/opt</directory>
|
sg481n | c7499ee | 2017-09-24 04:05:00 +0000 | [diff] [blame] | 170 | <filtering>true</filtering>
|
| 171 | <includes>
|
| 172 | <include>**/*</include>
|
| 173 | </includes>
|
| 174 | </resource>
|
| 175 | </resources>
|
sg481n | b0012ae | 2017-09-24 05:39:19 +0000 | [diff] [blame^] | 176 |
|
| 177 | </configuration>
|
sg481n | c7499ee | 2017-09-24 04:05:00 +0000 | [diff] [blame] | 178 | <executions>
|
sg481n | 1e538f7 | 2017-09-24 02:12:15 +0000 | [diff] [blame] | 179 | <execution>
|
| 180 | <id>build-image</id>
|
| 181 | <phase>package</phase>
|
| 182 | <goals>
|
| 183 | <goal>build</goal>
|
| 184 | </goals>
|
| 185 | <configuration>
|
| 186 | <skipDockerBuild>${skip.docker.build}</skipDockerBuild>
|
sg481n | 1e538f7 | 2017-09-24 02:12:15 +0000 | [diff] [blame] | 187 | </configuration>
|
| 188 | </execution>
|
sg481n | c7499ee | 2017-09-24 04:05:00 +0000 | [diff] [blame] | 189 |
|
| 190 | <execution>
|
| 191 | <id>tag-image-latest-timestamp</id>
|
| 192 | <phase>package</phase>
|
| 193 | <goals>
|
| 194 | <goal>tag</goal>
|
| 195 | </goals>
|
| 196 | <configuration>
|
| 197 | <image>onap/aaf/authz-service</image>
|
sg481n | b0012ae | 2017-09-24 05:39:19 +0000 | [diff] [blame^] | 198 | <newName>onap/aaf/authz-service:${project.docker.latesttagtimestamp.version}</newName>
|
sg481n | c7499ee | 2017-09-24 04:05:00 +0000 | [diff] [blame] | 199 | <skipDockerTag>${skip.docker.push}</skipDockerTag>
|
| 200 | </configuration>
|
| 201 | </execution>
|
| 202 | <execution>
|
| 203 | <id>push-image-latest-timestamp</id>
|
sg481n | 1e538f7 | 2017-09-24 02:12:15 +0000 | [diff] [blame] | 204 | <phase>deploy</phase>
|
| 205 | <goals>
|
| 206 | <goal>push</goal>
|
| 207 | </goals>
|
| 208 | <configuration>
|
sg481n | b0012ae | 2017-09-24 05:39:19 +0000 | [diff] [blame^] | 209 | <imageName>onap/aaf/authz-service:${project.docker.latesttagtimestamp.version}</imageName>
|
sg481n | 1e538f7 | 2017-09-24 02:12:15 +0000 | [diff] [blame] | 210 | <skipDockerPush>${skip.docker.push}</skipDockerPush>
|
| 211 | </configuration>
|
| 212 | </execution>
|
sg481n | c7499ee | 2017-09-24 04:05:00 +0000 | [diff] [blame] | 213 | <execution>
|
| 214 | <id>tag-image-latest</id>
|
| 215 | <phase>package</phase>
|
| 216 | <goals>
|
| 217 | <goal>tag</goal>
|
| 218 | </goals>
|
| 219 | <configuration>
|
| 220 | <image>onap/aaf/authz-service</image>
|
sg481n | b0012ae | 2017-09-24 05:39:19 +0000 | [diff] [blame^] | 221 | <newName>onap/aaf/authz-service:${project.docker.latesttag.version}</newName>
|
sg481n | c7499ee | 2017-09-24 04:05:00 +0000 | [diff] [blame] | 222 | <skipDockerTag>${skip.docker.push}</skipDockerTag>
|
| 223 | </configuration>
|
| 224 | </execution>
|
| 225 | <execution>
|
| 226 | <id>push-image-latest</id>
|
| 227 | <phase>deploy</phase>
|
| 228 | <goals>
|
| 229 | <goal>push</goal>
|
| 230 | </goals>
|
| 231 | <configuration>
|
sg481n | b0012ae | 2017-09-24 05:39:19 +0000 | [diff] [blame^] | 232 | <imageName>onap/aaf/authz-service:${project.docker.latesttag.version}</imageName>
|
sg481n | c7499ee | 2017-09-24 04:05:00 +0000 | [diff] [blame] | 233 | <skipDockerPush>${skip.docker.push}</skipDockerPush>
|
| 234 | </configuration>
|
| 235 | </execution>
|
| 236 | <execution>
|
| 237 | <id>tag-image</id>
|
| 238 | <phase>package</phase>
|
| 239 | <goals>
|
| 240 | <goal>tag</goal>
|
| 241 | </goals>
|
| 242 | <configuration>
|
| 243 | <image>onap/aaf/authz-service</image>
|
sg481n | b0012ae | 2017-09-24 05:39:19 +0000 | [diff] [blame^] | 244 | <newName>onap/aaf/authz-service:latest</newName>
|
sg481n | c7499ee | 2017-09-24 04:05:00 +0000 | [diff] [blame] | 245 | <skipDockerTag>${skip.docker.push}</skipDockerTag>
|
| 246 | </configuration>
|
| 247 | </execution>
|
| 248 | <execution>
|
| 249 | <id>push-image</id>
|
| 250 | <phase>deploy</phase>
|
| 251 | <goals>
|
| 252 | <goal>push</goal>
|
| 253 | </goals>
|
| 254 | <configuration>
|
sg481n | b0012ae | 2017-09-24 05:39:19 +0000 | [diff] [blame^] | 255 | <imageName>onap/aaf/authz-service:latest</imageName>
|
sg481n | c7499ee | 2017-09-24 04:05:00 +0000 | [diff] [blame] | 256 | <skipDockerPush>${skip.docker.push}</skipDockerPush>
|
| 257 | </configuration>
|
| 258 | </execution>
|
| 259 | </executions>
|
| 260 | </plugin>
|
| 261 |
|
sg481n | b0012ae | 2017-09-24 05:39:19 +0000 | [diff] [blame^] | 262 | <plugin>
|
sg481n | 1e538f7 | 2017-09-24 02:12:15 +0000 | [diff] [blame] | 263 | <artifactId>maven-resources-plugin</artifactId>
|
| 264 | <version>2.7</version>
|
| 265 | <executions>
|
sg481n | b0012ae | 2017-09-24 05:39:19 +0000 | [diff] [blame^] | 266 | <execution>
|
sg481n | a9d2108 | 2017-09-23 14:26:06 +0000 | [diff] [blame] | 267 | <id>copy-docker-file</id>
|
| 268 | <phase>package</phase>
|
| 269 | <goals>
|
| 270 | <goal>copy-resources</goal>
|
| 271 | </goals>
|
| 272 | <configuration>
|
| 273 | <outputDirectory>${dockerLocation}</outputDirectory>
|
| 274 | <overwrite>true</overwrite>
|
| 275 | <resources>
|
| 276 | <resource>
|
| 277 | <directory>${basedir}/src/main/resources/docker</directory>
|
| 278 | <filtering>true</filtering>
|
| 279 | <includes>
|
| 280 | <include>**/*</include>
|
| 281 | </includes>
|
| 282 | </resource>
|
| 283 | </resources>
|
| 284 | </configuration>
|
sg481n | b0012ae | 2017-09-24 05:39:19 +0000 | [diff] [blame^] | 285 | </execution>
|
sg481n | dc5fcf1 | 2017-09-15 13:06:30 -0400 | [diff] [blame] | 286 | <execution>
|
| 287 | <id>copy-resources-1</id>
|
| 288 | <phase>validate</phase>
|
| 289 | <goals>
|
| 290 | <goal>copy-resources</goal>
|
| 291 | </goals>
|
| 292 | <configuration>
|
| 293 | <outputDirectory>${project.build.directory}/opt/dme2reg/</outputDirectory>
|
| 294 | <resources>
|
| 295 | <resource>
|
| 296 | <directory>${project.basedir}/src/main/resources/dme2reg/</directory>
|
| 297 | <includes>
|
| 298 | <include>**/*.txt</include>
|
| 299 | </includes>
|
| 300 | </resource>
|
| 301 | </resources>
|
| 302 | </configuration>
|
| 303 | </execution>
|
| 304 | <execution>
|
| 305 | <id>copy-resources-2</id>
|
| 306 | <phase>validate</phase>
|
| 307 | <goals>
|
| 308 | <goal>copy-resources</goal>
|
| 309 | </goals>
|
| 310 | <configuration>
|
sg481n | a2ac678 | 2017-09-18 16:35:50 -0400 | [diff] [blame] | 311 | <outputDirectory>${project.build.directory}/opt/app/aaf/authz-service/etc</outputDirectory>
|
sg481n | dc5fcf1 | 2017-09-15 13:06:30 -0400 | [diff] [blame] | 312 | <resources>
|
| 313 | <resource>
|
| 314 | <directory>${project.basedir}/src/main/resources/etc</directory>
|
| 315 | <includes>
|
| 316 | <include>**/**</include>
|
| 317 | </includes>
|
| 318 | </resource>
|
| 319 | </resources>
|
| 320 | </configuration>
|
| 321 | </execution>
|
| 322 |
|
| 323 | <execution>
|
| 324 | <id>copy-resources-3</id>
|
| 325 | <phase>validate</phase>
|
| 326 | <goals>
|
| 327 | <goal>copy-resources</goal>
|
| 328 | </goals>
|
| 329 | <configuration>
|
sg481n | a2ac678 | 2017-09-18 16:35:50 -0400 | [diff] [blame] | 330 | <outputDirectory>${project.build.directory}/opt/app/aaf/authz-service/lib</outputDirectory>
|
sg481n | dc5fcf1 | 2017-09-15 13:06:30 -0400 | [diff] [blame] | 331 | <resources>
|
| 332 | <resource>
|
| 333 | <directory>${project.basedir}/../authz-cmd/target</directory>
|
| 334 | <includes>
|
sg481n | a2ac678 | 2017-09-18 16:35:50 -0400 | [diff] [blame] | 335 | <include>**/*.jar</include>
|
sg481n | dc5fcf1 | 2017-09-15 13:06:30 -0400 | [diff] [blame] | 336 | </includes>
|
| 337 | </resource>
|
| 338 | </resources>
|
| 339 | </configuration>
|
| 340 | </execution>
|
| 341 | <execution>
|
| 342 | <id>copy-resources-4</id>
|
| 343 | <phase>validate</phase>
|
| 344 | <goals>
|
| 345 | <goal>copy-resources</goal>
|
| 346 | </goals>
|
| 347 | <configuration>
|
sg481n | a2ac678 | 2017-09-18 16:35:50 -0400 | [diff] [blame] | 348 | <outputDirectory>${project.build.directory}/opt/app/aaf/authz-service/</outputDirectory>
|
sg481n | dc5fcf1 | 2017-09-15 13:06:30 -0400 | [diff] [blame] | 349 | <resources>
|
| 350 | <resource>
|
| 351 | <directory>${project.basedir}/../authz-cmd</directory>
|
| 352 | <includes>
|
| 353 | <include>**/aafcli.sh</include>
|
| 354 | </includes>
|
| 355 | </resource>
|
| 356 | </resources>
|
| 357 | </configuration>
|
| 358 | </execution>
|
sg481n | a2ac678 | 2017-09-18 16:35:50 -0400 | [diff] [blame] | 359 | <execution>
|
sg481n | dc5fcf1 | 2017-09-15 13:06:30 -0400 | [diff] [blame] | 360 | <id>copy-resources-5</id>
|
| 361 | <phase>validate</phase>
|
| 362 | <goals>
|
| 363 | <goal>copy-resources</goal>
|
| 364 | </goals>
|
| 365 | <configuration>
|
sg481n | a2ac678 | 2017-09-18 16:35:50 -0400 | [diff] [blame] | 366 | <outputDirectory>${project.build.directory}/opt/app/aaf/authz-service/etc/</outputDirectory>
|
sg481n | dc5fcf1 | 2017-09-15 13:06:30 -0400 | [diff] [blame] | 367 | <resources>
|
| 368 | <resource>
|
sg481n | a2ac678 | 2017-09-18 16:35:50 -0400 | [diff] [blame] | 369 | <directory>${project.basedir}/src/main/config</directory>
|
sg481n | dc5fcf1 | 2017-09-15 13:06:30 -0400 | [diff] [blame] | 370 | <includes>
|
| 371 | <include>**/**</include>
|
| 372 | </includes>
|
| 373 | </resource>
|
| 374 | </resources>
|
| 375 | </configuration>
|
| 376 | </execution>
|
sg481n | a2ac678 | 2017-09-18 16:35:50 -0400 | [diff] [blame] | 377 | <execution>
|
| 378 | <id>copy-resources-6</id>
|
| 379 | <phase>validate</phase>
|
| 380 | <goals>
|
| 381 | <goal>copy-resources</goal>
|
| 382 | </goals>
|
| 383 | <configuration>
|
| 384 | <outputDirectory>${project.build.directory}/opt/app/aaf/authz-service/etc/data</outputDirectory>
|
| 385 | <resources>
|
| 386 | <resource>
|
| 387 | <directory>${project.basedir}/../opt/app/aaf/data</directory>
|
| 388 | <includes>
|
| 389 | <include>**/**</include>
|
| 390 | </includes>
|
| 391 | </resource>
|
| 392 | </resources>
|
| 393 | </configuration>
|
| 394 | </execution>
|
sg481n | dc5fcf1 | 2017-09-15 13:06:30 -0400 | [diff] [blame] | 395 | </executions>
|
| 396 | </plugin>
|
| 397 | <plugin>
|
| 398 | <groupId>org.apache.maven.plugins</groupId>
|
| 399 | <artifactId>maven-dependency-plugin</artifactId>
|
| 400 | <version>2.10</version>
|
| 401 | <executions>
|
| 402 | <execution>
|
| 403 | <id>copy-dependencies</id>
|
| 404 | <phase>package</phase>
|
| 405 | <goals>
|
| 406 | <goal>copy-dependencies</goal>
|
| 407 | </goals>
|
| 408 | <configuration>
|
sg481n | a2ac678 | 2017-09-18 16:35:50 -0400 | [diff] [blame] | 409 | <outputDirectory>${project.build.directory}/opt/app/aaf/authz-service/lib</outputDirectory>
|
sg481n | dc5fcf1 | 2017-09-15 13:06:30 -0400 | [diff] [blame] | 410 | <overWriteReleases>false</overWriteReleases>
|
| 411 | <overWriteSnapshots>false</overWriteSnapshots>
|
| 412 | <overWriteIfNewer>true</overWriteIfNewer>
|
| 413 | </configuration>
|
| 414 | </execution>
|
| 415 | </executions>
|
| 416 | </plugin>
|
| 417 |
|
sg481n | bd890c5 | 2017-08-28 12:11:35 -0400 | [diff] [blame] | 418 | <plugin>
|
| 419 | <groupId>org.codehaus.mojo</groupId>
|
| 420 | <artifactId>exec-maven-plugin</artifactId>
|
| 421 | <version>1.5.0</version>
|
| 422 | <configuration>
|
| 423 | <executable>java</executable>
|
| 424 | <arguments>
|
| 425 | <argument>-DAFT_LATITUDE=33</argument>
|
| 426 | <argument>-DAFT_LONGITUDE=-84</argument>
|
| 427 | <argument>-DAFT_ENVIRONMENT=AFTUAT</argument>
|
| 428 |
|
| 429 | <argument>-XX:NewRatio=3</argument>
|
| 430 | <argument>-XX:+PrintGCTimeStamps</argument>
|
| 431 | <argument>-XX:+PrintGCDetails</argument>
|
| 432 | <argument>-Xloggc:gc.log</argument>
|
| 433 | <argument>-classpath</argument>
|
| 434 |
|
| 435 | <classpath>
|
| 436 |
|
| 437 | </classpath>
|
| 438 | <argument>org.onap.aaf.authz.service.AuthAPI</argument>
|
| 439 |
|
| 440 | <argument>service=org.onap.aaf.authz.AuthorizationService/version=2.0/envContext=DEV/routeOffer=Dev</argument>
|
| 441 | </arguments>
|
| 442 | </configuration>
|
| 443 | </plugin>
|
| 444 |
|
| 445 | <plugin>
|
| 446 | <groupId>org.apache.maven.plugins</groupId>
|
| 447 | <artifactId>maven-jar-plugin</artifactId>
|
| 448 | <configuration>
|
| 449 | <excludes>
|
| 450 | <exclude>*.properties</exclude>
|
| 451 | </excludes>
|
| 452 | </configuration>
|
| 453 | <version>2.3.1</version>
|
| 454 | </plugin>
|
sg481n | a2ac678 | 2017-09-18 16:35:50 -0400 | [diff] [blame] | 455 |
|
sg481n | bd890c5 | 2017-08-28 12:11:35 -0400 | [diff] [blame] | 456 |
|
| 457 | <plugin>
|
| 458 | <groupId>org.apache.maven.plugins</groupId>
|
| 459 | <artifactId>maven-javadoc-plugin</artifactId>
|
sg481n | a9d2108 | 2017-09-23 14:26:06 +0000 | [diff] [blame] | 460 | <version>2.10.4</version>
|
sg481n | bd890c5 | 2017-08-28 12:11:35 -0400 | [diff] [blame] | 461 | <configuration>
|
| 462 | <failOnError>false</failOnError>
|
| 463 | </configuration>
|
| 464 | <executions>
|
| 465 | <execution>
|
| 466 | <id>attach-javadocs</id>
|
| 467 | <goals>
|
| 468 | <goal>jar</goal>
|
| 469 | </goals>
|
| 470 | </execution>
|
| 471 | </executions>
|
| 472 | </plugin>
|
| 473 |
|
| 474 |
|
| 475 | <plugin>
|
| 476 | <groupId>org.apache.maven.plugins</groupId>
|
| 477 | <artifactId>maven-source-plugin</artifactId>
|
| 478 | <version>2.2.1</version>
|
| 479 | <executions>
|
| 480 | <execution>
|
| 481 | <id>attach-sources</id>
|
| 482 | <goals>
|
| 483 | <goal>jar-no-fork</goal>
|
| 484 | </goals>
|
| 485 | </execution>
|
| 486 | </executions>
|
| 487 | </plugin>
|
| 488 |
|
| 489 | <plugin>
|
| 490 | <groupId>org.sonatype.plugins</groupId>
|
| 491 | <artifactId>nexus-staging-maven-plugin</artifactId>
|
| 492 | <version>1.6.7</version>
|
| 493 | <extensions>true</extensions>
|
| 494 | <configuration>
|
| 495 | <nexusUrl>${nexusproxy}</nexusUrl>
|
| 496 | <stagingProfileId>176c31dfe190a</stagingProfileId>
|
| 497 | <serverId>ecomp-staging</serverId>
|
| 498 | </configuration>
|
sg481n | 40cd356 | 2017-09-01 13:12:31 -0400 | [diff] [blame] | 499 | </plugin>
|
| 500 | <plugin>
|
| 501 | <groupId>org.jacoco</groupId>
|
| 502 | <artifactId>jacoco-maven-plugin</artifactId>
|
| 503 | <version>0.7.7.201606060606</version>
|
| 504 | <configuration>
|
| 505 | <dumpOnExit>true</dumpOnExit>
|
| 506 | <includes>
|
| 507 | <include>org.onap.aaf.*</include>
|
| 508 | </includes>
|
| 509 | </configuration>
|
| 510 | <executions>
|
| 511 | <execution>
|
| 512 | <id>pre-unit-test</id>
|
| 513 | <goals>
|
| 514 | <goal>prepare-agent</goal>
|
| 515 | </goals>
|
| 516 | <configuration>
|
| 517 | <destFile>${project.build.directory}/coverage-reports/jacoco.exec</destFile>
|
| 518 | <!-- <append>true</append> -->
|
| 519 | </configuration>
|
| 520 | </execution>
|
| 521 | <execution>
|
| 522 | <id>pre-integration-test</id>
|
| 523 | <phase>pre-integration-test</phase>
|
| 524 | <goals>
|
| 525 | <goal>prepare-agent</goal>
|
| 526 | </goals>
|
| 527 | <configuration>
|
| 528 | <destFile>${project.build.directory}/coverage-reports/jacoco-it.exec</destFile>
|
| 529 | <!-- <append>true</append> -->
|
| 530 | </configuration>
|
| 531 | </execution>
|
| 532 | <execution>
|
| 533 | <goals>
|
| 534 | <goal>merge</goal>
|
| 535 | </goals>
|
| 536 | <phase>post-integration-test</phase>
|
| 537 | <configuration>
|
| 538 | <fileSets>
|
| 539 | <fileSet implementation="org.apache.maven.shared.model.fileset.FileSet">
|
| 540 | <directory>${project.build.directory}/coverage-reports</directory>
|
| 541 | <includes>
|
| 542 | <include>*.exec</include>
|
| 543 | </includes>
|
| 544 | </fileSet>
|
| 545 | </fileSets>
|
| 546 | <destFile>${project.build.directory}/jacoco-dev.exec</destFile>
|
| 547 | </configuration>
|
| 548 | </execution>
|
| 549 | </executions>
|
| 550 | </plugin>
|
sg481n | bd890c5 | 2017-08-28 12:11:35 -0400 | [diff] [blame] | 551 |
|
| 552 | </plugins>
|
| 553 |
|
| 554 | </build>
|
sg481n | c7499ee | 2017-09-24 04:05:00 +0000 | [diff] [blame] | 555 |
|
sg481n | 2bc3538 | 2017-09-23 15:50:15 +0000 | [diff] [blame] | 556 |
|
sg481n | bd890c5 | 2017-08-28 12:11:35 -0400 | [diff] [blame] | 557 | <distributionManagement>
|
| 558 | <repository>
|
| 559 | <id>ecomp-releases</id>
|
| 560 | <name>AAF Release Repository</name>
|
| 561 | <url>${nexusproxy}${releaseNexusPath}</url>
|
| 562 | </repository>
|
| 563 | <snapshotRepository>
|
| 564 | <id>ecomp-snapshots</id>
|
| 565 | <name>AAF Snapshot Repository</name>
|
| 566 | <url>${nexusproxy}${snapshotNexusPath}</url>
|
| 567 | </snapshotRepository>
|
| 568 | <site>
|
| 569 | <id>ecomp-site</id>
|
| 570 | <url>dav:${nexusproxy}${sitePath}</url>
|
| 571 | </site>
|
| 572 | </distributionManagement>
|
sg481n | c7499ee | 2017-09-24 04:05:00 +0000 | [diff] [blame] | 573 | <profiles>
|
| 574 | <profile>
|
| 575 | <id>docker</id>
|
| 576 | <properties>
|
| 577 | <skip.staging.artifacts>true</skip.staging.artifacts>
|
| 578 | <skip.docker.build>false</skip.docker.build>
|
| 579 | <skip.docker.tag>false</skip.docker.tag>
|
| 580 | <skip.docker.push>false</skip.docker.push>
|
| 581 | </properties>
|
| 582 | </profile>
|
| 583 | </profiles>
|
sg481n | bd890c5 | 2017-08-28 12:11:35 -0400 | [diff] [blame] | 584 | </project>
|