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