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