1 <?xml version="1.0" encoding="UTF-8"?>
3 * ============LICENSE_START====================================================
5 * ===========================================================================
6 * Copyright (c) 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
12 * http://www.apache.org/licenses/LICENSE-2.0
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====================================================
22 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
23 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
25 <modelVersion>4.0.0</modelVersion>
27 <groupId>org.onap.aaf.authz</groupId>
28 <artifactId>parent</artifactId>
29 <version>2.1.2-SNAPSHOT</version>
31 <artifactId>authparent</artifactId>
32 <name>AAF Auth Parent</name>
33 <packaging>pom</packaging>
37 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
38 <project.interfaceVersion>2.1.1-SNAPSHOT</project.interfaceVersion>
39 <!-- >project.jettyVersion>9.3.22.v20171030</project.jettyVersion -->
40 <!-- project.jettyVersion>9.4.11.v20180605</project.jettyVersion -->
41 <project.jettyVersion>9.4.12.RC2</project.jettyVersion>
42 <powermock.version>1.5.1</powermock.version>
43 <project.ext_root_dir>/opt/app/osaaf</project.ext_root_dir>
45 <jacoco.version>0.7.7.201606060606</jacoco.version>
46 <sonar-jacoco-listeners.version>3.2</sonar-jacoco-listeners.version>
47 <sonar.core.codeCoveragePlugin>jacoco</sonar.core.codeCoveragePlugin>
48 <!-- Default Sonar configuration -->
49 <sonar.jacoco.reportPaths>target/code-coverage/jacoco-ut.exec</sonar.jacoco.reportPaths>
50 <sonar.jacoco.itReportPaths>target/code-coverage/jacoco-it.exec</sonar.jacoco.itReportPaths>
51 <!-- Note: This list should match jacoco-maven-plugin's exclusion list below -->
52 <sonar.exclusions>**/gen/**,**/generated-sources/**,**/yang-gen**,**/pax/**</sonar.exclusions>
53 <nexusproxy>https://nexus.onap.org</nexusproxy>
54 <snapshotNexusPath>/content/repositories/snapshots/</snapshotNexusPath>
55 <releaseNexusPath>/content/repositories/releases/</releaseNexusPath>
56 <stagingNexusPath>/content/repositories/staging/</stagingNexusPath>
57 <sitePath>/content/sites/site/org/onap/aaf/authz/${project.artifactId}/${project.version}</sitePath>
58 <!-- We have to up these versions from the original to avoid Security Errors -->
59 <project.cassVersion>3.4.0</project.cassVersion>
60 <project.nettyVersion>4.1.22.Final</project.nettyVersion>
61 <project.project.ext_root_dir>/opt/app/osaaf</project.project.ext_root_dir>
66 <name>Jonathan Gathman</name>
67 <email>jonathan.gathman@att.com</email>
68 <organization>ATT</organization>
70 <role>Architect</role>
71 <role>Lead Developer</role>
75 <name>Gabe Maurer</name>
76 <email>gabe.maurer@att.com</email>
77 <organization>ATT</organization>
79 <role>Developer</role>
83 <name>Ian Howell</name>
84 <email>ian.howell@att.com</email>
85 <organization>ATT</organization>
87 <role>Developer</role>
91 <name>Sai Gandham</name>
92 <email>sai.gandham@att.com</email>
93 <organization>ATT</organization>
95 <role>Developer</role>
104 <groupId>org.apache.maven.plugins</groupId>
105 <artifactId>maven-compiler-plugin</artifactId>
106 <version>2.3.2</version>
113 <groupId>org.apache.maven.plugins</groupId>
114 <artifactId>maven-deploy-plugin</artifactId>
115 <version>2.6</version>
122 <groupId>org.apache.maven.plugins</groupId>
123 <artifactId>maven-surefire-plugin</artifactId>
124 <version>2.17</version>
126 <skipTests>false</skipTests>
129 <include>**/JU*.java</include>
138 <groupId>org.apache.maven.plugins</groupId>
139 <artifactId>maven-failsafe-plugin</artifactId>
140 <version>2.17</version>
142 <skipTests>false</skipTests>
146 <id>integration-test</id>
148 <goal>integration-test</goal>
155 <!-- Builds O/S Command line ready jars and scripts, ready to run/zip -->
157 <groupId>org.codehaus.mojo</groupId>
158 <artifactId>appassembler-maven-plugin</artifactId>
159 <version>1.10</version>
163 <goal>assemble</goal>
165 <phase>install</phase>
169 <programs/> <!-- this set in projects that have programs -->
170 <assembleDirectory>../aaf_${project.version}</assembleDirectory>
171 <copyConfigurationDirectory>true</copyConfigurationDirectory>
172 <configurationDirectory>etc</configurationDirectory>
173 <repositoryName>lib</repositoryName>
174 <includeConfigurationDirectoryInClasspath>false</includeConfigurationDirectoryInClasspath>
175 <repositoryLayout>flat</repositoryLayout>
179 <!-- Build Docker Image -->
181 <groupId>com.spotify</groupId>
182 <artifactId>docker-maven-plugin</artifactId>
183 <version>1.0.0</version>
185 <imageName>onap/osaaf/${project.artifactId}</imageName>
186 <!-- <dockerDirectory>${dockerLocation}</dockerDirectory> -->
187 <dockerDirectory>${basedir}/src/main/resources/docker</dockerDirectory>
189 <imageTag>latest</imageTag>
190 <imageTag>${project.docker.latesttagtimestamp.version}</imageTag>
191 <imageTag>${project.docker.latesttag.version}</imageTag>
193 <forceTags>true</forceTags>
194 <!-- <resources> <resource> <targetPath>/</targetPath> <directory>${project.build.directory}/opt</directory>
195 <filtering>true</filtering> <includes> <include>**/**</include> </includes>
196 </resource> </resources> -->
199 <targetPath>/</targetPath>
200 <directory>${project.build.directory}/opt</directory>
201 <include>${project.build.finalName}.jar</include>
204 <targetPath>/</targetPath>
205 <directory>${project.build.directory}</directory>
206 <include>**/**</include>
213 <phase>package</phase>
218 <skipDockerBuild>${skip.docker.build}</skipDockerBuild>
223 <id>tag-image-project-version</id>
224 <phase>package</phase>
229 <image>onap/osaaf/${project.artifactId}</image>
230 <newName>${docker.push.registry}/onap/osaaf/${project.artifactId}:${project.version}</newName>
231 <skipDockerTag>${skip.docker.push}</skipDockerTag>
236 <id>tag-image-latest</id>
237 <phase>package</phase>
242 <image>onap/aaf/authz-service</image>
243 <newName>${docker.push.registry}/onap/osaaf/${project.artifactId}:latest</newName>
244 <skipDockerTag>${skip.docker.push}</skipDockerTag>
249 <id>push-image-latest</id>
250 <phase>deploy</phase>
255 <imageName>${docker.push.registry}/onap/osaaf/${project.artifactId}:${project.version}</imageName>
256 <skipDockerPush>${skip.docker.push}</skipDockerPush>
262 <phase>deploy</phase>
267 <imageName>${docker.push.registry}/onap/osaaf/${project.artifactId}:latest</imageName>
268 <skipDockerPush>${skip.docker.push}</skipDockerPush>
274 <groupId>org.sonatype.plugins</groupId>
275 <artifactId>nexus-staging-maven-plugin</artifactId>
276 <version>1.6.7</version>
277 <extensions>true</extensions>
279 <nexusUrl>${nexusproxy}</nexusUrl>
280 <stagingProfileId>176c31dfe190a</stagingProfileId>
281 <serverId>ecomp-staging</serverId>
285 <groupId>org.jacoco</groupId>
286 <artifactId>jacoco-maven-plugin</artifactId>
287 <version>0.7.7.201606060606</version>
289 <dumpOnExit>true</dumpOnExit>
291 <include>org.onap.aaf.*</include>
296 <id>pre-unit-test</id>
298 <goal>prepare-agent</goal>
301 <destFile>${project.build.directory}/coverage-reports/jacoco.exec</destFile>
302 <!-- <append>true</append> -->
306 <id>pre-integration-test</id>
307 <phase>pre-integration-test</phase>
309 <goal>prepare-agent</goal>
312 <destFile>${project.build.directory}/coverage-reports/jacoco-it.exec</destFile>
313 <!-- <append>true</append> -->
320 <phase>post-integration-test</phase>
323 <fileSet implementation="org.apache.maven.shared.model.fileset.FileSet">
324 <directory>${project.build.directory}/coverage-reports</directory>
326 <include>*.exec</include>
330 <destFile>${project.build.directory}/jacoco-dev.exec</destFile>
341 <groupId>org.mockito</groupId>
342 <artifactId>mockito-all</artifactId>
343 <version>1.9.5</version>
347 <groupId>org.powermock</groupId>
348 <artifactId>powermock-module-junit4</artifactId>
349 <version>${powermock.version}</version>
353 <groupId>org.powermock</groupId>
354 <artifactId>powermock-api-mockito</artifactId>
355 <version>${powermock.version}</version>
359 <groupId>junit</groupId>
360 <artifactId>junit</artifactId>
361 <version>4.10</version>
368 <!-- <module>auth-client</module> complile manually with mvn -N independently -->
369 <module>auth-core</module>
370 <module>auth-cass</module>
371 <module>auth-deforg</module>
373 <module>auth-service</module>
374 <module>auth-cmd</module>
375 <module>auth-batch</module>
377 <module>auth-gui</module>
378 <module>auth-locate</module>
379 <module>auth-oauth</module>
380 <module>auth-certman</module>
381 <module>auth-fs</module>
382 <module>auth-hello</module>
385 <dependencyManagement>
388 <groupId>org.onap.aaf.authz</groupId>
389 <artifactId>aaf-misc-env</artifactId>
390 <version>${project.version}</version>
394 <groupId>org.onap.aaf.authz</groupId>
395 <artifactId>aaf-misc-log4j</artifactId>
396 <version>${project.version}</version>
400 <groupId>org.onap.aaf.authz</groupId>
401 <artifactId>aaf-misc-rosetta</artifactId>
402 <version>${project.version}</version>
406 <groupId>org.onap.aaf.authz</groupId>
407 <artifactId>aaf-misc-xgen</artifactId>
408 <version>${project.version}</version>
412 <groupId>org.onap.aaf.authz</groupId>
413 <artifactId>aaf-cadi-core</artifactId>
414 <version>${project.version}</version>
418 <groupId>org.onap.aaf.authz</groupId>
419 <artifactId>aaf-cadi-client</artifactId>
420 <version>${project.version}</version>
424 <groupId>org.onap.aaf.authz</groupId>
425 <artifactId>aaf-cadi-aaf</artifactId>
426 <version>${project.version}</version>
429 <groupId>org.apache.cassandra</groupId>
430 <artifactId>cassandra-all</artifactId>
436 <groupId>org.onap.aaf.authz</groupId>
437 <artifactId>aaf-auth-client</artifactId>
438 <version>${project.version}</version>
442 <groupId>org.onap.aaf.authz</groupId>
443 <artifactId>aaf-auth-core</artifactId>
444 <version>${project.version}</version>
448 <groupId>org.onap.aaf.authz</groupId>
449 <artifactId>aaf-auth-cass</artifactId>
450 <version>${project.version}</version>
454 <groupId>org.onap.aaf.authz</groupId>
455 <artifactId>aaf-auth-cmd</artifactId>
456 <version>${project.version}</version>
460 <groupId>org.onap.aaf.authz</groupId>
461 <artifactId>aaf-auth-oauth</artifactId>
462 <version>${project.version}</version>
466 <groupId>org.onap.aaf.authz</groupId>
467 <artifactId>aaf-auth-deforg</artifactId>
468 <version>${project.version}</version>
472 <groupId>javax.servlet</groupId>
473 <artifactId>javax.servlet-api</artifactId>
474 <version>3.0.1</version>
478 <groupId>org.eclipse.jetty</groupId>
479 <artifactId>jetty-servlet</artifactId>
480 <version>${project.jettyVersion}</version>
484 <groupId>org.eclipse.jetty</groupId>
485 <artifactId>jetty-server</artifactId>
486 <version>${project.jettyVersion}</version>
490 <groupId>com.datastax.cassandra</groupId>
491 <artifactId>cassandra-all</artifactId>
492 <version>${project.cassVersion}</version>
495 <groupId>org.slf4j</groupId>
496 <artifactId>slf4j-log4j12</artifactId>
499 <groupId>log4j</groupId>
500 <artifactId>log4j</artifactId>
506 <groupId>com.datastax.cassandra</groupId>
507 <artifactId>cassandra-driver-core</artifactId>
508 <version>${project.cassVersion}</version>
511 <groupId>org.slf4j</groupId>
512 <artifactId>slf4j-log4j12</artifactId>
515 <groupId>log4j</groupId>
516 <artifactId>log4j</artifactId>
521 <!-- Note: Ensure DataStax uses more up-to-date netty handler -->
523 <groupId>io.netty</groupId>
524 <artifactId>netty-handler</artifactId>
525 <version>${project.nettyVersion}</version>
531 <groupId>org.slf4j</groupId>
532 <artifactId>slf4j-log4j12</artifactId>
533 <version>1.7.5</version>
537 <groupId>javax.mail</groupId>
538 <artifactId>mail</artifactId>
539 <version>1.4.7</version>
542 </dependencyManagement>