Modify distribution management for authz
[aaf/authz.git] / auth / auth-certman / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3  * ============LICENSE_START====================================================
4  * org.onap.aaf
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
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 -->
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/maven-v4_0_0.xsd">
24         <modelVersion>4.0.0</modelVersion>
25         <parent>
26                 <groupId>org.onap.aaf.auth</groupId>
27                 <artifactId>parent</artifactId>
28                 <version>2.1.0-SNAPSHOT</version>
29                 <relativePath>../pom.xml</relativePath>
30         </parent>
31
32         <artifactId>aaf-auth-certman</artifactId>
33         <name>AAF Auth Certificate Manager</name>
34         <description>Certificate Manager API</description>
35
36         <properties>
37                 <project.swmVersion>21</project.swmVersion>
38                 <!--  SONAR  -->
39                  <jacoco.version>0.7.7.201606060606</jacoco.version>
40             <sonar-jacoco-listeners.version>3.2</sonar-jacoco-listeners.version>
41             <sonar.core.codeCoveragePlugin>jacoco</sonar.core.codeCoveragePlugin>
42             <!-- Default Sonar configuration -->
43             <sonar.jacoco.reportPath>target/code-coverage/jacoco-ut.exec</sonar.jacoco.reportPath>
44             <sonar.jacoco.itReportPath>target/code-coverage/jacoco-it.exec</sonar.jacoco.itReportPath>
45             <!-- Note: This list should match jacoco-maven-plugin's exclusion list below -->
46             <sonar.exclusions>**/gen/**,**/generated-sources/**,**/yang-gen**,**/pax/**</sonar.exclusions>
47                 <nexusproxy>https://nexus.onap.org</nexusproxy>
48                 <snapshotNexusPath>/content/repositories/snapshots/</snapshotNexusPath>
49                 <releaseNexusPath>/content/repositories/releases/</releaseNexusPath>
50                 <stagingNexusPath>/content/repositories/staging/</stagingNexusPath>
51                 <sitePath>/content/sites/site/org/onap/aaf/authz/${project.artifactId}/${project.version}</sitePath>
52         </properties>
53
54         <dependencies>
55                 <dependency>
56                         <groupId>org.onap.aaf.auth</groupId>
57                         <artifactId>aaf-auth-core</artifactId>
58                 </dependency>
59
60                 <dependency>
61                         <groupId>org.onap.aaf.auth</groupId>
62                         <artifactId>aaf-auth-cass</artifactId>
63                 </dependency>
64
65                 <dependency>
66                         <groupId>org.onap.aaf.cadi</groupId>
67                         <artifactId>aaf-cadi-aaf</artifactId>
68                 </dependency>
69
70                 <dependency>
71                         <groupId>com.google.code.jscep</groupId>
72                         <artifactId>jscep</artifactId>
73                         <version>2.4.0</version>
74                 </dependency>
75
76         </dependencies>
77
78         <build>
79                 <plugins>
80                         <plugin>
81                                 <groupId>org.apache.maven.plugins</groupId>
82                                 <artifactId>maven-jar-plugin</artifactId>
83                                 <configuration>
84                                         <includes>
85                                                 <include>**/*.class</include>
86                                         </includes>
87                                 </configuration>
88                                 <version>2.3.1</version>
89                         </plugin>
90
91                         <!--This plugin's configuration is used to store Eclipse m2e settings 
92                                 only. It has no influence on the Maven build itself. -->
93                         <plugin>
94                                 <groupId>org.apache.maven.plugins</groupId>
95                                 <artifactId>maven-deploy-plugin</artifactId>
96                                 <configuration>
97                                         <skip>true</skip>
98                                 </configuration>
99                         </plugin>
100                         <plugin>
101                                 <groupId>org.codehaus.mojo</groupId>
102                                 <artifactId>appassembler-maven-plugin</artifactId>
103                                 <configuration>
104                                         <programs>
105                                                 <program>
106                                                         <mainClass>org.onap.aaf.auth.cm.AAF_CM</mainClass>
107                                                         <name>cm</name>
108                                                         <commandLineArguments>
109                                                 <commandLineArgument>cadi_prop_files=${project.conf_dir}/org.osaaf.cm.props</commandLineArgument>
110                                              </commandLineArguments>
111                                                 </program>
112                                         </programs>
113                                 </configuration>
114                         </plugin>
115                         <plugin>
116                                 <groupId>org.sonatype.plugins</groupId>
117                                 <artifactId>nexus-staging-maven-plugin</artifactId>
118                                 <version>1.6.7</version>
119                                 <extensions>true</extensions>
120                                 <configuration>
121                                         <nexusUrl>${nexusproxy}</nexusUrl>
122                                         <stagingProfileId>176c31dfe190a</stagingProfileId>
123                                         <serverId>ecomp-staging</serverId>
124                                 </configuration>
125                         </plugin>               
126                         <plugin>
127                                 <groupId>org.jacoco</groupId>
128                                 <artifactId>jacoco-maven-plugin</artifactId>
129                                 <version>0.7.7.201606060606</version>
130                                 <configuration>
131                                         <dumpOnExit>true</dumpOnExit>
132                                         <includes>
133                                                 <include>org.onap.aaf.*</include>
134                                         </includes>
135                                 </configuration>
136                                 <executions>
137                                         <execution>
138                                                 <id>pre-unit-test</id>
139                                                 <goals>
140                                                         <goal>prepare-agent</goal>
141                                                 </goals>
142                                                 <configuration>
143                                                         <destFile>${project.build.directory}/coverage-reports/jacoco.exec</destFile>
144                                                         <!-- <append>true</append> -->
145                                                 </configuration>
146                                         </execution>
147                                         <execution>
148                                                 <id>pre-integration-test</id>
149                                                 <phase>pre-integration-test</phase>
150                                                 <goals>
151                                                         <goal>prepare-agent</goal>
152                                                 </goals>
153                                                 <configuration>
154                                                         <destFile>${project.build.directory}/coverage-reports/jacoco-it.exec</destFile>
155                                                         <!-- <append>true</append> -->
156                                                 </configuration>
157                                         </execution>
158                                         <execution>
159                         <goals>
160                             <goal>merge</goal>
161                         </goals>
162                         <phase>post-integration-test</phase>
163                         <configuration>
164                             <fileSets>
165                                 <fileSet implementation="org.apache.maven.shared.model.fileset.FileSet">
166                                     <directory>${project.build.directory}/coverage-reports</directory>
167                                     <includes>
168                                         <include>*.exec</include>
169                                     </includes>
170                                 </fileSet>
171                             </fileSets>
172                             <destFile>${project.build.directory}/jacoco-dev.exec</destFile>
173                         </configuration>
174                     </execution>
175                                 </executions>
176                         </plugin>
177                 </plugins>
178         </build>
179
180         <distributionManagement>
181                 <repository>
182                         <id>ecomp-releases</id>
183                         <name>AAF Release Repository</name>
184                         <url>${nexusproxy}${releaseNexusPath}</url>
185                 </repository>
186                 <snapshotRepository>
187                         <id>ecomp-snapshots</id>
188                         <name>AAF Snapshot Repository</name>
189                         <url>${nexusproxy}${snapshotNexusPath}</url>
190                 </snapshotRepository>
191                 <site>
192                         <id>ecomp-site</id>
193                         <url>dav:${nexusproxy}${sitePath}</url>
194                 </site>
195         </distributionManagement>
196
197 </project>