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 | cd57764 | 2017-09-24 21:23:40 +0000 | [diff] [blame] | 158 | <!-- <dockerDirectory>${dockerLocation}</dockerDirectory> -->
|
| 159 | <dockerDirectory>${basedir}/src/main/resources/docker</dockerDirectory>
|
sg481n | c7499ee | 2017-09-24 04:05:00 +0000 | [diff] [blame] | 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>
|
sg481n | cd57764 | 2017-09-24 21:23:40 +0000 | [diff] [blame] | 166 | <!-- <resources>
|
sg481n | c7499ee | 2017-09-24 04:05:00 +0000 | [diff] [blame] | 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>
|
sg481n | cd57764 | 2017-09-24 21:23:40 +0000 | [diff] [blame] | 172 | <include>**/**</include>
|
sg481n | c7499ee | 2017-09-24 04:05:00 +0000 | [diff] [blame] | 173 | </includes>
|
| 174 | </resource>
|
sg481n | cd57764 | 2017-09-24 21:23:40 +0000 | [diff] [blame] | 175 | </resources> -->
|
| 176 | <resources>
|
| 177 | <resource>
|
| 178 | <targetPath>/</targetPath>
|
| 179 | <directory>${project.build.directory}/opt</directory>
|
| 180 | <include>${project.build.finalName}.jar</include>
|
| 181 | </resource>
|
| 182 | <resource>
|
| 183 | <targetPath>/</targetPath>
|
| 184 | <directory>${project.build.directory}</directory>
|
| 185 | <include>**/**</include>
|
| 186 | </resource>
|
| 187 | </resources>
|
sg481n | b0012ae | 2017-09-24 05:39:19 +0000 | [diff] [blame] | 188 | </configuration>
|
sg481n | c7499ee | 2017-09-24 04:05:00 +0000 | [diff] [blame] | 189 | <executions>
|
sg481n | cd57764 | 2017-09-24 21:23:40 +0000 | [diff] [blame] | 190 | <execution>
|
sg481n | 1e538f7 | 2017-09-24 02:12:15 +0000 | [diff] [blame] | 191 | <id>build-image</id>
|
| 192 | <phase>package</phase>
|
| 193 | <goals>
|
| 194 | <goal>build</goal>
|
| 195 | </goals>
|
| 196 | <configuration>
|
| 197 | <skipDockerBuild>${skip.docker.build}</skipDockerBuild>
|
sg481n | 1e538f7 | 2017-09-24 02:12:15 +0000 | [diff] [blame] | 198 | </configuration>
|
sg481n | cd57764 | 2017-09-24 21:23:40 +0000 | [diff] [blame] | 199 | </execution>
|
sg481n | c7499ee | 2017-09-24 04:05:00 +0000 | [diff] [blame] | 200 |
|
| 201 | <execution>
|
sg481n | 0492cd0 | 2017-09-24 23:08:44 +0000 | [diff] [blame^] | 202 | <id>tag-image-project-version</id>
|
sg481n | c7499ee | 2017-09-24 04:05:00 +0000 | [diff] [blame] | 203 | <phase>package</phase>
|
| 204 | <goals>
|
| 205 | <goal>tag</goal>
|
| 206 | </goals>
|
| 207 | <configuration>
|
| 208 | <image>onap/aaf/authz-service</image>
|
sg481n | 0492cd0 | 2017-09-24 23:08:44 +0000 | [diff] [blame^] | 209 | <newName>onap/aaf/authz-service:${project.version}</newName>
|
sg481n | c7499ee | 2017-09-24 04:05:00 +0000 | [diff] [blame] | 210 | <skipDockerTag>${skip.docker.push}</skipDockerTag>
|
| 211 | </configuration>
|
| 212 | </execution>
|
sg481n | 0492cd0 | 2017-09-24 23:08:44 +0000 | [diff] [blame^] | 213 |
|
| 214 | <execution>
|
sg481n | c7499ee | 2017-09-24 04:05:00 +0000 | [diff] [blame] | 215 | <id>tag-image-latest</id>
|
| 216 | <phase>package</phase>
|
| 217 | <goals>
|
| 218 | <goal>tag</goal>
|
| 219 | </goals>
|
| 220 | <configuration>
|
| 221 | <image>onap/aaf/authz-service</image>
|
sg481n | b0012ae | 2017-09-24 05:39:19 +0000 | [diff] [blame] | 222 | <newName>onap/aaf/authz-service:latest</newName>
|
sg481n | c7499ee | 2017-09-24 04:05:00 +0000 | [diff] [blame] | 223 | <skipDockerTag>${skip.docker.push}</skipDockerTag>
|
| 224 | </configuration>
|
| 225 | </execution>
|
sg481n | 0492cd0 | 2017-09-24 23:08:44 +0000 | [diff] [blame^] | 226 |
|
| 227 | <execution>
|
| 228 | <id>push-image-latest</id>
|
| 229 | <phase>deploy</phase>
|
| 230 | <goals>
|
| 231 | <goal>push</goal>
|
| 232 | </goals>
|
| 233 | <configuration>
|
| 234 | <imageName>onap/aaf/authz-service:${project.version}</imageName>
|
| 235 | <skipDockerPush>${skip.docker.push}</skipDockerPush>
|
| 236 | </configuration>
|
| 237 | </execution>
|
| 238 |
|
sg481n | c7499ee | 2017-09-24 04:05:00 +0000 | [diff] [blame] | 239 | <execution>
|
| 240 | <id>push-image</id>
|
| 241 | <phase>deploy</phase>
|
| 242 | <goals>
|
| 243 | <goal>push</goal>
|
| 244 | </goals>
|
| 245 | <configuration>
|
sg481n | b0012ae | 2017-09-24 05:39:19 +0000 | [diff] [blame] | 246 | <imageName>onap/aaf/authz-service:latest</imageName>
|
sg481n | c7499ee | 2017-09-24 04:05:00 +0000 | [diff] [blame] | 247 | <skipDockerPush>${skip.docker.push}</skipDockerPush>
|
| 248 | </configuration>
|
| 249 | </execution>
|
| 250 | </executions>
|
| 251 | </plugin>
|
| 252 |
|
sg481n | b0012ae | 2017-09-24 05:39:19 +0000 | [diff] [blame] | 253 | <plugin>
|
sg481n | 1e538f7 | 2017-09-24 02:12:15 +0000 | [diff] [blame] | 254 | <artifactId>maven-resources-plugin</artifactId>
|
| 255 | <version>2.7</version>
|
| 256 | <executions>
|
sg481n | b0012ae | 2017-09-24 05:39:19 +0000 | [diff] [blame] | 257 | <execution>
|
sg481n | a9d2108 | 2017-09-23 14:26:06 +0000 | [diff] [blame] | 258 | <id>copy-docker-file</id>
|
| 259 | <phase>package</phase>
|
| 260 | <goals>
|
| 261 | <goal>copy-resources</goal>
|
| 262 | </goals>
|
| 263 | <configuration>
|
| 264 | <outputDirectory>${dockerLocation}</outputDirectory>
|
| 265 | <overwrite>true</overwrite>
|
| 266 | <resources>
|
| 267 | <resource>
|
| 268 | <directory>${basedir}/src/main/resources/docker</directory>
|
| 269 | <filtering>true</filtering>
|
| 270 | <includes>
|
| 271 | <include>**/*</include>
|
| 272 | </includes>
|
| 273 | </resource>
|
| 274 | </resources>
|
| 275 | </configuration>
|
sg481n | b0012ae | 2017-09-24 05:39:19 +0000 | [diff] [blame] | 276 | </execution>
|
sg481n | dc5fcf1 | 2017-09-15 13:06:30 -0400 | [diff] [blame] | 277 | <execution>
|
| 278 | <id>copy-resources-1</id>
|
| 279 | <phase>validate</phase>
|
| 280 | <goals>
|
| 281 | <goal>copy-resources</goal>
|
| 282 | </goals>
|
| 283 | <configuration>
|
| 284 | <outputDirectory>${project.build.directory}/opt/dme2reg/</outputDirectory>
|
| 285 | <resources>
|
| 286 | <resource>
|
| 287 | <directory>${project.basedir}/src/main/resources/dme2reg/</directory>
|
| 288 | <includes>
|
| 289 | <include>**/*.txt</include>
|
| 290 | </includes>
|
| 291 | </resource>
|
| 292 | </resources>
|
| 293 | </configuration>
|
| 294 | </execution>
|
| 295 | <execution>
|
| 296 | <id>copy-resources-2</id>
|
| 297 | <phase>validate</phase>
|
| 298 | <goals>
|
| 299 | <goal>copy-resources</goal>
|
| 300 | </goals>
|
| 301 | <configuration>
|
sg481n | a2ac678 | 2017-09-18 16:35:50 -0400 | [diff] [blame] | 302 | <outputDirectory>${project.build.directory}/opt/app/aaf/authz-service/etc</outputDirectory>
|
sg481n | dc5fcf1 | 2017-09-15 13:06:30 -0400 | [diff] [blame] | 303 | <resources>
|
| 304 | <resource>
|
| 305 | <directory>${project.basedir}/src/main/resources/etc</directory>
|
| 306 | <includes>
|
| 307 | <include>**/**</include>
|
| 308 | </includes>
|
| 309 | </resource>
|
| 310 | </resources>
|
| 311 | </configuration>
|
| 312 | </execution>
|
| 313 |
|
| 314 | <execution>
|
| 315 | <id>copy-resources-3</id>
|
| 316 | <phase>validate</phase>
|
| 317 | <goals>
|
| 318 | <goal>copy-resources</goal>
|
| 319 | </goals>
|
| 320 | <configuration>
|
sg481n | a2ac678 | 2017-09-18 16:35:50 -0400 | [diff] [blame] | 321 | <outputDirectory>${project.build.directory}/opt/app/aaf/authz-service/lib</outputDirectory>
|
sg481n | dc5fcf1 | 2017-09-15 13:06:30 -0400 | [diff] [blame] | 322 | <resources>
|
| 323 | <resource>
|
| 324 | <directory>${project.basedir}/../authz-cmd/target</directory>
|
| 325 | <includes>
|
sg481n | a2ac678 | 2017-09-18 16:35:50 -0400 | [diff] [blame] | 326 | <include>**/*.jar</include>
|
sg481n | dc5fcf1 | 2017-09-15 13:06:30 -0400 | [diff] [blame] | 327 | </includes>
|
| 328 | </resource>
|
| 329 | </resources>
|
| 330 | </configuration>
|
| 331 | </execution>
|
| 332 | <execution>
|
| 333 | <id>copy-resources-4</id>
|
| 334 | <phase>validate</phase>
|
| 335 | <goals>
|
| 336 | <goal>copy-resources</goal>
|
| 337 | </goals>
|
| 338 | <configuration>
|
sg481n | a2ac678 | 2017-09-18 16:35:50 -0400 | [diff] [blame] | 339 | <outputDirectory>${project.build.directory}/opt/app/aaf/authz-service/</outputDirectory>
|
sg481n | dc5fcf1 | 2017-09-15 13:06:30 -0400 | [diff] [blame] | 340 | <resources>
|
| 341 | <resource>
|
| 342 | <directory>${project.basedir}/../authz-cmd</directory>
|
| 343 | <includes>
|
| 344 | <include>**/aafcli.sh</include>
|
| 345 | </includes>
|
| 346 | </resource>
|
| 347 | </resources>
|
| 348 | </configuration>
|
| 349 | </execution>
|
sg481n | a2ac678 | 2017-09-18 16:35:50 -0400 | [diff] [blame] | 350 | <execution>
|
sg481n | dc5fcf1 | 2017-09-15 13:06:30 -0400 | [diff] [blame] | 351 | <id>copy-resources-5</id>
|
| 352 | <phase>validate</phase>
|
| 353 | <goals>
|
| 354 | <goal>copy-resources</goal>
|
| 355 | </goals>
|
| 356 | <configuration>
|
sg481n | a2ac678 | 2017-09-18 16:35:50 -0400 | [diff] [blame] | 357 | <outputDirectory>${project.build.directory}/opt/app/aaf/authz-service/etc/</outputDirectory>
|
sg481n | dc5fcf1 | 2017-09-15 13:06:30 -0400 | [diff] [blame] | 358 | <resources>
|
| 359 | <resource>
|
sg481n | a2ac678 | 2017-09-18 16:35:50 -0400 | [diff] [blame] | 360 | <directory>${project.basedir}/src/main/config</directory>
|
sg481n | dc5fcf1 | 2017-09-15 13:06:30 -0400 | [diff] [blame] | 361 | <includes>
|
| 362 | <include>**/**</include>
|
| 363 | </includes>
|
| 364 | </resource>
|
| 365 | </resources>
|
| 366 | </configuration>
|
| 367 | </execution>
|
sg481n | a2ac678 | 2017-09-18 16:35:50 -0400 | [diff] [blame] | 368 | <execution>
|
| 369 | <id>copy-resources-6</id>
|
| 370 | <phase>validate</phase>
|
| 371 | <goals>
|
| 372 | <goal>copy-resources</goal>
|
| 373 | </goals>
|
| 374 | <configuration>
|
| 375 | <outputDirectory>${project.build.directory}/opt/app/aaf/authz-service/etc/data</outputDirectory>
|
| 376 | <resources>
|
| 377 | <resource>
|
| 378 | <directory>${project.basedir}/../opt/app/aaf/data</directory>
|
| 379 | <includes>
|
| 380 | <include>**/**</include>
|
| 381 | </includes>
|
| 382 | </resource>
|
| 383 | </resources>
|
| 384 | </configuration>
|
| 385 | </execution>
|
sg481n | dc5fcf1 | 2017-09-15 13:06:30 -0400 | [diff] [blame] | 386 | </executions>
|
| 387 | </plugin>
|
| 388 | <plugin>
|
| 389 | <groupId>org.apache.maven.plugins</groupId>
|
| 390 | <artifactId>maven-dependency-plugin</artifactId>
|
| 391 | <version>2.10</version>
|
| 392 | <executions>
|
| 393 | <execution>
|
| 394 | <id>copy-dependencies</id>
|
| 395 | <phase>package</phase>
|
| 396 | <goals>
|
| 397 | <goal>copy-dependencies</goal>
|
| 398 | </goals>
|
| 399 | <configuration>
|
sg481n | a2ac678 | 2017-09-18 16:35:50 -0400 | [diff] [blame] | 400 | <outputDirectory>${project.build.directory}/opt/app/aaf/authz-service/lib</outputDirectory>
|
sg481n | dc5fcf1 | 2017-09-15 13:06:30 -0400 | [diff] [blame] | 401 | <overWriteReleases>false</overWriteReleases>
|
| 402 | <overWriteSnapshots>false</overWriteSnapshots>
|
| 403 | <overWriteIfNewer>true</overWriteIfNewer>
|
| 404 | </configuration>
|
| 405 | </execution>
|
| 406 | </executions>
|
| 407 | </plugin>
|
| 408 |
|
sg481n | bd890c5 | 2017-08-28 12:11:35 -0400 | [diff] [blame] | 409 | <plugin>
|
| 410 | <groupId>org.codehaus.mojo</groupId>
|
| 411 | <artifactId>exec-maven-plugin</artifactId>
|
| 412 | <version>1.5.0</version>
|
| 413 | <configuration>
|
| 414 | <executable>java</executable>
|
| 415 | <arguments>
|
| 416 | <argument>-DAFT_LATITUDE=33</argument>
|
| 417 | <argument>-DAFT_LONGITUDE=-84</argument>
|
| 418 | <argument>-DAFT_ENVIRONMENT=AFTUAT</argument>
|
| 419 |
|
| 420 | <argument>-XX:NewRatio=3</argument>
|
| 421 | <argument>-XX:+PrintGCTimeStamps</argument>
|
| 422 | <argument>-XX:+PrintGCDetails</argument>
|
| 423 | <argument>-Xloggc:gc.log</argument>
|
| 424 | <argument>-classpath</argument>
|
| 425 |
|
| 426 | <classpath>
|
| 427 |
|
| 428 | </classpath>
|
| 429 | <argument>org.onap.aaf.authz.service.AuthAPI</argument>
|
| 430 |
|
| 431 | <argument>service=org.onap.aaf.authz.AuthorizationService/version=2.0/envContext=DEV/routeOffer=Dev</argument>
|
| 432 | </arguments>
|
| 433 | </configuration>
|
| 434 | </plugin>
|
| 435 |
|
| 436 | <plugin>
|
| 437 | <groupId>org.apache.maven.plugins</groupId>
|
| 438 | <artifactId>maven-jar-plugin</artifactId>
|
| 439 | <configuration>
|
| 440 | <excludes>
|
| 441 | <exclude>*.properties</exclude>
|
| 442 | </excludes>
|
| 443 | </configuration>
|
| 444 | <version>2.3.1</version>
|
| 445 | </plugin>
|
sg481n | a2ac678 | 2017-09-18 16:35:50 -0400 | [diff] [blame] | 446 |
|
sg481n | bd890c5 | 2017-08-28 12:11:35 -0400 | [diff] [blame] | 447 |
|
| 448 | <plugin>
|
| 449 | <groupId>org.apache.maven.plugins</groupId>
|
| 450 | <artifactId>maven-javadoc-plugin</artifactId>
|
sg481n | a9d2108 | 2017-09-23 14:26:06 +0000 | [diff] [blame] | 451 | <version>2.10.4</version>
|
sg481n | bd890c5 | 2017-08-28 12:11:35 -0400 | [diff] [blame] | 452 | <configuration>
|
| 453 | <failOnError>false</failOnError>
|
| 454 | </configuration>
|
| 455 | <executions>
|
| 456 | <execution>
|
| 457 | <id>attach-javadocs</id>
|
| 458 | <goals>
|
| 459 | <goal>jar</goal>
|
| 460 | </goals>
|
| 461 | </execution>
|
| 462 | </executions>
|
| 463 | </plugin>
|
| 464 |
|
| 465 |
|
| 466 | <plugin>
|
| 467 | <groupId>org.apache.maven.plugins</groupId>
|
| 468 | <artifactId>maven-source-plugin</artifactId>
|
| 469 | <version>2.2.1</version>
|
| 470 | <executions>
|
| 471 | <execution>
|
| 472 | <id>attach-sources</id>
|
| 473 | <goals>
|
| 474 | <goal>jar-no-fork</goal>
|
| 475 | </goals>
|
| 476 | </execution>
|
| 477 | </executions>
|
| 478 | </plugin>
|
| 479 |
|
| 480 | <plugin>
|
| 481 | <groupId>org.sonatype.plugins</groupId>
|
| 482 | <artifactId>nexus-staging-maven-plugin</artifactId>
|
| 483 | <version>1.6.7</version>
|
| 484 | <extensions>true</extensions>
|
| 485 | <configuration>
|
| 486 | <nexusUrl>${nexusproxy}</nexusUrl>
|
| 487 | <stagingProfileId>176c31dfe190a</stagingProfileId>
|
| 488 | <serverId>ecomp-staging</serverId>
|
| 489 | </configuration>
|
sg481n | 40cd356 | 2017-09-01 13:12:31 -0400 | [diff] [blame] | 490 | </plugin>
|
| 491 | <plugin>
|
| 492 | <groupId>org.jacoco</groupId>
|
| 493 | <artifactId>jacoco-maven-plugin</artifactId>
|
| 494 | <version>0.7.7.201606060606</version>
|
| 495 | <configuration>
|
| 496 | <dumpOnExit>true</dumpOnExit>
|
| 497 | <includes>
|
| 498 | <include>org.onap.aaf.*</include>
|
| 499 | </includes>
|
| 500 | </configuration>
|
| 501 | <executions>
|
| 502 | <execution>
|
| 503 | <id>pre-unit-test</id>
|
| 504 | <goals>
|
| 505 | <goal>prepare-agent</goal>
|
| 506 | </goals>
|
| 507 | <configuration>
|
| 508 | <destFile>${project.build.directory}/coverage-reports/jacoco.exec</destFile>
|
| 509 | <!-- <append>true</append> -->
|
| 510 | </configuration>
|
| 511 | </execution>
|
| 512 | <execution>
|
| 513 | <id>pre-integration-test</id>
|
| 514 | <phase>pre-integration-test</phase>
|
| 515 | <goals>
|
| 516 | <goal>prepare-agent</goal>
|
| 517 | </goals>
|
| 518 | <configuration>
|
| 519 | <destFile>${project.build.directory}/coverage-reports/jacoco-it.exec</destFile>
|
| 520 | <!-- <append>true</append> -->
|
| 521 | </configuration>
|
| 522 | </execution>
|
| 523 | <execution>
|
| 524 | <goals>
|
| 525 | <goal>merge</goal>
|
| 526 | </goals>
|
| 527 | <phase>post-integration-test</phase>
|
| 528 | <configuration>
|
| 529 | <fileSets>
|
| 530 | <fileSet implementation="org.apache.maven.shared.model.fileset.FileSet">
|
| 531 | <directory>${project.build.directory}/coverage-reports</directory>
|
| 532 | <includes>
|
| 533 | <include>*.exec</include>
|
| 534 | </includes>
|
| 535 | </fileSet>
|
| 536 | </fileSets>
|
| 537 | <destFile>${project.build.directory}/jacoco-dev.exec</destFile>
|
| 538 | </configuration>
|
| 539 | </execution>
|
| 540 | </executions>
|
| 541 | </plugin>
|
sg481n | bd890c5 | 2017-08-28 12:11:35 -0400 | [diff] [blame] | 542 |
|
| 543 | </plugins>
|
| 544 |
|
| 545 | </build>
|
sg481n | c7499ee | 2017-09-24 04:05:00 +0000 | [diff] [blame] | 546 |
|
sg481n | 2bc3538 | 2017-09-23 15:50:15 +0000 | [diff] [blame] | 547 |
|
sg481n | bd890c5 | 2017-08-28 12:11:35 -0400 | [diff] [blame] | 548 | <distributionManagement>
|
| 549 | <repository>
|
| 550 | <id>ecomp-releases</id>
|
| 551 | <name>AAF Release Repository</name>
|
| 552 | <url>${nexusproxy}${releaseNexusPath}</url>
|
| 553 | </repository>
|
| 554 | <snapshotRepository>
|
| 555 | <id>ecomp-snapshots</id>
|
| 556 | <name>AAF Snapshot Repository</name>
|
| 557 | <url>${nexusproxy}${snapshotNexusPath}</url>
|
| 558 | </snapshotRepository>
|
| 559 | <site>
|
| 560 | <id>ecomp-site</id>
|
| 561 | <url>dav:${nexusproxy}${sitePath}</url>
|
| 562 | </site>
|
| 563 | </distributionManagement>
|
sg481n | c7499ee | 2017-09-24 04:05:00 +0000 | [diff] [blame] | 564 | <profiles>
|
| 565 | <profile>
|
| 566 | <id>docker</id>
|
| 567 | <properties>
|
| 568 | <skip.staging.artifacts>true</skip.staging.artifacts>
|
| 569 | <skip.docker.build>false</skip.docker.build>
|
| 570 | <skip.docker.tag>false</skip.docker.tag>
|
| 571 | <skip.docker.push>false</skip.docker.push>
|
| 572 | </properties>
|
| 573 | </profile>
|
| 574 | </profiles>
|
sg481n | bd890c5 | 2017-08-28 12:11:35 -0400 | [diff] [blame] | 575 | </project>
|