f398e58ce4cde617eb22b5cbdccd0837ec1ec4ee
[aaf/authz.git] / auth / auth-certman / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!-- * ============LICENSE_START==================================================== 
3         * org.onap.aaf 
4         * =========================================================================== 
5         * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. 
6         * =========================================================================== 
7         * Licensed under the Apache License, Version 2.0 (the "License"); * you may 
8         not use this file except in compliance with the License. * You may obtain 
9         a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * 
10         * Unless required by applicable law or agreed to in writing, software * distributed 
11         under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES 
12         OR CONDITIONS OF ANY KIND, either express or implied. * See the License for 
13         the specific language governing permissions and * limitations under the License. 
14         * ============LICENSE_END==================================================== 
15         * -->
16 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
17         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
18         <modelVersion>4.0.0</modelVersion>
19         <parent>
20                 <groupId>org.onap.aaf.authz</groupId>
21                 <artifactId>authparent</artifactId>
22                 <version>2.1.7-SNAPSHOT</version>
23                 <relativePath>../pom.xml</relativePath>
24         </parent>
25
26         <artifactId>aaf-auth-certman</artifactId>
27         <name>AAF Auth Certificate Manager</name>
28         <description>Certificate Manager API</description>
29
30         <properties>
31                 <!-- SONAR -->
32                 <!-- <sonar.skip>true</sonar.skip> -->
33                 <jacoco.version>0.7.7.201606060606</jacoco.version>
34                 <sonar-jacoco-listeners.version>3.2</sonar-jacoco-listeners.version>
35                 <sonar.core.codeCoveragePlugin>jacoco</sonar.core.codeCoveragePlugin>
36                 <!-- Default Sonar configuration -->
37                 <sonar.jacoco.reportPaths>target/code-coverage/jacoco-ut.exec</sonar.jacoco.reportPaths>
38                 <sonar.jacoco.itReportPaths>target/code-coverage/jacoco-it.exec</sonar.jacoco.itReportPaths>
39                 <!-- Note: This list should match jacoco-maven-plugin's exclusion list 
40                         below -->
41                 <sonar.exclusions>**/gen/**,**/generated-sources/**,**/yang-gen**,**/pax/**</sonar.exclusions>
42                 <nexusproxy>https://nexus.onap.org</nexusproxy>
43                 <snapshotNexusPath>/content/repositories/snapshots/</snapshotNexusPath>
44                 <releaseNexusPath>/content/repositories/releases/</releaseNexusPath>
45                 <stagingNexusPath>/content/repositories/staging/</stagingNexusPath>
46                 <sitePath>/content/sites/site/org/onap/aaf/authz/${project.artifactId}/${project.version}</sitePath>
47                 <project.bouncyCastleVersion>1.60</project.bouncyCastleVersion>
48         </properties>
49
50         <dependencies>
51                 <dependency>
52                         <groupId>org.onap.aaf.authz</groupId>
53                         <artifactId>aaf-auth-core</artifactId>
54                 </dependency>
55
56                 <dependency>
57                         <groupId>org.onap.aaf.authz</groupId>
58                         <artifactId>aaf-auth-cass</artifactId>
59                 </dependency>
60
61                 <dependency>
62                         <groupId>org.onap.aaf.authz</groupId>
63                         <artifactId>aaf-cadi-aaf</artifactId>
64                 </dependency>
65                 
66                                 <!-- Add the Organizations you wish to support. You can delete ONAP if 
67                         you have something else Match with Property Entry: Organization.<root ns>, 
68                         i.e. Organization.onap.org=org.onap.org.DefaultOrg -->
69                 <dependency>
70                         <groupId>org.onap.aaf.authz</groupId>
71                         <artifactId>aaf-auth-deforg</artifactId>
72                 </dependency>
73
74                 <dependency>
75                         <groupId>com.google.code.jscep</groupId>
76                         <artifactId>jscep</artifactId>
77                         <version>2.4.0</version>
78                         <exclusions>
79                                 <exclusion>
80                                         <groupId>org.bouncycastle</groupId>
81                                         <artifactId>bcprov-jdk15on</artifactId>
82                                 </exclusion>
83                                 <exclusion>
84                                         <groupId>org.bouncycastle</groupId>
85                                         <artifactId>bcpkix-jdk15on</artifactId>
86                                 </exclusion>
87                         </exclusions>
88                 </dependency>
89                 <!-- JSCEP does not use latest "Bouncy Castle" -->
90                 <dependency>
91                   <groupId>org.bouncycastle</groupId>
92                   <artifactId>bcprov-jdk15on</artifactId>
93                   <version>${project.bouncyCastleVersion}</version>
94                 </dependency>
95                 <dependency>
96                         <groupId>org.bouncycastle</groupId>
97                         <artifactId>bcpkix-jdk15on</artifactId>
98                         <version>${project.bouncyCastleVersion}</version>
99                 </dependency>
100         </dependencies>
101
102         <build>
103                 <plugins>
104                         <plugin>
105                                 <groupId>org.apache.maven.plugins</groupId>
106                                 <artifactId>maven-jar-plugin</artifactId>
107                                 <configuration>
108                                         <includes>
109                                                 <include>**/*.class</include>
110                                         </includes>
111                                 </configuration>
112                                 <version>2.3.1</version>
113                         </plugin>
114
115                         <!--This plugin's configuration is used to store Eclipse m2e settings 
116                                 only. It has no influence on the Maven build itself. -->
117                         <plugin>
118                                 <groupId>org.apache.maven.plugins</groupId>
119                                 <artifactId>maven-deploy-plugin</artifactId>
120                                 <configuration>
121                                         <skip>false</skip>
122                                 </configuration>
123                         </plugin>
124                         <plugin>
125                                 <groupId>org.codehaus.mojo</groupId>
126                                 <artifactId>appassembler-maven-plugin</artifactId>
127                                 <configuration>
128                                         <programs>
129                                                 <program>
130                                                         <mainClass>org.onap.aaf.auth.cm.AAF_CM</mainClass>
131                                                         <name>cm</name>
132                                                         <commandLineArguments>
133                                                                 <commandLineArgument>cadi_prop_files=${project.ext_root_dir}/etc/org.osaaf.aaf.cm.props</commandLineArgument>
134                                                                 <commandLineArgument>cadi_log_dir=${project.ext_root_dir}/logs/cm</commandLineArgument>
135                                                         </commandLineArguments>
136                                                 </program>
137                                         </programs>
138                                 </configuration>
139                         </plugin>
140                         <plugin>
141                                 <groupId>org.sonatype.plugins</groupId>
142                                 <artifactId>nexus-staging-maven-plugin</artifactId>
143                                 <extensions>true</extensions>
144                                 <configuration>
145                                         <nexusUrl>${nexusproxy}</nexusUrl>
146                                         <stagingProfileId>176c31dfe190a</stagingProfileId>
147                                         <serverId>ecomp-staging</serverId>
148                                 </configuration>
149                         </plugin>
150                         <plugin>
151                                 <groupId>org.jacoco</groupId>
152                                 <artifactId>jacoco-maven-plugin</artifactId>
153                                 <configuration>
154                                         <excludes>
155                                                 <exclude>**/gen/**</exclude>
156                                                 <exclude>**/generated-sources/**</exclude>
157                                                 <exclude>**/yang-gen/**</exclude>
158                                                 <exclude>**/pax/**</exclude>
159                                         </excludes>
160                                 </configuration>
161                                 <executions>
162
163                                         <execution>
164                                                 <id>pre-unit-test</id>
165                                                 <goals>
166                                                         <goal>prepare-agent</goal>
167                                                 </goals>
168                                                 <configuration>
169                                                         <destFile>${project.build.directory}/code-coverage/jacoco-ut.exec</destFile>
170                                                         <propertyName>surefireArgLine</propertyName>
171                                                 </configuration>
172                                         </execution>
173
174
175                                         <execution>
176                                                 <id>post-unit-test</id>
177                                                 <phase>test</phase>
178                                                 <goals>
179                                                         <goal>report</goal>
180                                                 </goals>
181                                                 <configuration>
182                                                         <dataFile>${project.build.directory}/code-coverage/jacoco-ut.exec</dataFile>
183                                                         <outputDirectory>${project.reporting.outputDirectory}/jacoco-ut</outputDirectory>
184                                                 </configuration>
185                                         </execution>
186                                         <execution>
187                                                 <id>pre-integration-test</id>
188                                                 <phase>pre-integration-test</phase>
189                                                 <goals>
190                                                         <goal>prepare-agent</goal>
191                                                 </goals>
192                                                 <configuration>
193                                                         <destFile>${project.build.directory}/code-coverage/jacoco-it.exec</destFile>
194                                                         <propertyName>failsafeArgLine</propertyName>
195                                                 </configuration>
196                                         </execution>
197
198                                         <execution>
199                                                 <id>post-integration-test</id>
200                                                 <phase>post-integration-test</phase>
201                                                 <goals>
202                                                         <goal>report</goal>
203                                                 </goals>
204                                                 <configuration>
205                                                         <dataFile>${project.build.directory}/code-coverage/jacoco-it.exec</dataFile>
206                                                         <outputDirectory>${project.reporting.outputDirectory}/jacoco-it</outputDirectory>
207                                                 </configuration>
208                                         </execution>
209                                 </executions>
210                         </plugin>
211                 </plugins>
212         </build>
213
214         <distributionManagement>
215                 <repository>
216                         <id>ecomp-releases</id>
217                         <name>AAF Release Repository</name>
218                         <url>${nexusproxy}${releaseNexusPath}</url>
219                 </repository>
220                 <snapshotRepository>
221                         <id>ecomp-snapshots</id>
222                         <name>AAF Snapshot Repository</name>
223                         <url>${nexusproxy}${snapshotNexusPath}</url>
224                 </snapshotRepository>
225                 <site>
226                         <id>ecomp-site</id>
227                         <url>dav:${nexusproxy}${sitePath}</url>
228                 </site>
229         </distributionManagement>
230
231 </project>