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