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