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