Modify distribution management for authz
[aaf/authz.git] / auth / auth-deforg / 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                 <artifactId>parent</artifactId>
27                 <relativePath>../pom.xml</relativePath>
28                 <groupId>org.onap.aaf.auth</groupId>
29                 <version>2.1.0-SNAPSHOT</version>
30         </parent>
31
32         <artifactId>aaf-auth-deforg</artifactId>
33         <name>AAF Auth Default Organization</name>
34         <description>Example Organization Module</description>
35         <packaging>jar</packaging>
36
37         <developers>
38                 <developer>
39                         <name>Jonathan Gathman</name>
40                         <email>jonathan.gathman@att.com</email>
41                         <organization>ATT</organization>
42                         <roles>
43                                 <role>Architect</role>
44                                 <role>Lead Developer</role>
45                         </roles>
46                 </developer>
47                 <developer>
48                         <name>Gabe Maurer</name>
49                         <email>gabe.maurer@att.com</email>
50                         <organization>ATT</organization>
51                         <roles>
52                                 <role>Developer</role>
53                         </roles>
54                 </developer>
55                 <developer>
56                         <name>Ian Howell</name>
57                         <email>ian.howell@att.com</email>
58                         <organization>ATT</organization>
59                         <roles>
60                                 <role>Developer</role>
61                         </roles>
62                 </developer>
63                 <developer>
64                         <name>Sai Gandham</name>
65                         <email>sai.gandham@att.com</email>
66                         <organization>ATT</organization>
67                         <roles>
68                                 <role>Developer</role>
69                         </roles>
70                 </developer>
71         </developers>
72
73
74         <properties>
75                 <maven.test.failure.ignore>false</maven.test.failure.ignore>
76                 <!--  SONAR  -->
77                  <jacoco.version>0.7.7.201606060606</jacoco.version>
78             <sonar-jacoco-listeners.version>3.2</sonar-jacoco-listeners.version>
79             <sonar.core.codeCoveragePlugin>jacoco</sonar.core.codeCoveragePlugin>
80             <!-- Default Sonar configuration -->
81             <sonar.jacoco.reportPath>target/code-coverage/jacoco-ut.exec</sonar.jacoco.reportPath>
82             <sonar.jacoco.itReportPath>target/code-coverage/jacoco-it.exec</sonar.jacoco.itReportPath>
83             <!-- Note: This list should match jacoco-maven-plugin's exclusion list below -->
84             <sonar.exclusions>**/gen/**,**/generated-sources/**,**/yang-gen**,**/pax/**</sonar.exclusions>
85                 <nexusproxy>https://nexus.onap.org</nexusproxy>
86                 <snapshotNexusPath>/content/repositories/snapshots/</snapshotNexusPath>
87                 <releaseNexusPath>/content/repositories/releases/</releaseNexusPath>
88                 <stagingNexusPath>/content/repositories/staging/</stagingNexusPath>
89                 <sitePath>/content/sites/site/org/onap/aaf/authz/${project.artifactId}/${project.version}</sitePath>
90         </properties>
91
92
93         <dependencies>
94                 <dependency>
95                         <groupId>org.onap.aaf.cadi</groupId>
96                         <artifactId>aaf-cadi-core</artifactId>
97                 </dependency>
98
99                 <dependency>
100                         <groupId>org.onap.aaf.auth</groupId>
101                         <artifactId>aaf-auth-core</artifactId>
102                 </dependency>
103
104                 <dependency>
105                         <groupId>javax.mail</groupId>
106                         <artifactId>mail</artifactId>
107                 </dependency>
108         </dependencies>
109
110         <build>
111                 <pluginManagement>
112                         <plugins>
113                                 <plugin>
114                                         <groupId>org.apache.maven.plugins</groupId>
115                                         <artifactId>maven-javadoc-plugin</artifactId>
116                                         <version>2.10.4</version>
117                                         <configuration>
118                                                 <failOnError>false</failOnError>
119                                         </configuration>
120                                         <executions>
121                                                 <execution>
122                                                         <id>attach-javadocs</id>
123                                                         <goals>
124                                                                 <goal>jar</goal>
125                                                         </goals>
126                                                 </execution>
127                                         </executions>
128                                 </plugin>
129                                 <plugin>
130                                         <groupId>org.sonatype.plugins</groupId>
131                                         <artifactId>nexus-staging-maven-plugin</artifactId>
132                                         <version>1.6.7</version>
133                                         <extensions>true</extensions>
134                                         <configuration>
135                                                 <nexusUrl>${nexusproxy}</nexusUrl>
136                                                 <stagingProfileId>176c31dfe190a</stagingProfileId>
137                                                 <serverId>ecomp-staging</serverId>
138                                         </configuration>
139                                 </plugin>
140                                 <plugin>
141                                         <groupId>org.jacoco</groupId>
142                                         <artifactId>jacoco-maven-plugin</artifactId>
143                                         <version>${jacoco.version}</version>
144                                         <configuration>
145                                                 <excludes>
146                                                         <exclude>**/gen/**</exclude>
147                                                         <exclude>**/generated-sources/**</exclude>
148                                                         <exclude>**/yang-gen/**</exclude>
149                                                         <exclude>**/pax/**</exclude>
150                                                 </excludes>
151                                         </configuration>
152                                         <executions>
153
154                                                 <execution>
155                                                         <id>pre-unit-test</id>
156                                                         <goals>
157                                                                 <goal>prepare-agent</goal>
158                                                         </goals>
159                                                         <configuration>
160                                                                 <destFile>${project.build.directory}/code-coverage/jacoco-ut.exec</destFile>
161                                                                 <propertyName>surefireArgLine</propertyName>
162                                                         </configuration>
163                                                 </execution>
164
165
166                                                 <execution>
167                                                         <id>post-unit-test</id>
168                                                         <phase>test</phase>
169                                                         <goals>
170                                                                 <goal>report</goal>
171                                                         </goals>
172                                                         <configuration>
173                                                                 <dataFile>${project.build.directory}/code-coverage/jacoco-ut.exec</dataFile>
174                                                                 <outputDirectory>${project.reporting.outputDirectory}/jacoco-ut</outputDirectory>
175                                                         </configuration>
176                                                 </execution>
177                                                 <execution>
178                                                         <id>pre-integration-test</id>
179                                                         <phase>pre-integration-test</phase>
180                                                         <goals>
181                                                                 <goal>prepare-agent</goal>
182                                                         </goals>
183                                                         <configuration>
184                                                                 <destFile>${project.build.directory}/code-coverage/jacoco-it.exec</destFile>
185                                                                 <propertyName>failsafeArgLine</propertyName>
186                                                         </configuration>
187                                                 </execution>
188
189                                                 <execution>
190                                                         <id>post-integration-test</id>
191                                                         <phase>post-integration-test</phase>
192                                                         <goals>
193                                                                 <goal>report</goal>
194                                                         </goals>
195                                                         <configuration>
196                                                                 <dataFile>${project.build.directory}/code-coverage/jacoco-it.exec</dataFile>
197                                                                 <outputDirectory>${project.reporting.outputDirectory}/jacoco-it</outputDirectory>
198                                                         </configuration>
199                                                 </execution>
200                                         </executions>
201                                 </plugin>
202                                 <plugin>
203                                 <groupId>org.sonatype.plugins</groupId>
204                                 <artifactId>nexus-staging-maven-plugin</artifactId>
205                                 <version>1.6.7</version>
206                                 <extensions>true</extensions>
207                                 <configuration>
208                                         <nexusUrl>${nexusproxy}</nexusUrl>
209                                         <stagingProfileId>176c31dfe190a</stagingProfileId>
210                                         <serverId>ecomp-staging</serverId>
211                                 </configuration>
212                         </plugin>               
213                         <plugin>
214                                 <groupId>org.jacoco</groupId>
215                                 <artifactId>jacoco-maven-plugin</artifactId>
216                                 <version>0.7.7.201606060606</version>
217                                 <configuration>
218                                         <dumpOnExit>true</dumpOnExit>
219                                         <includes>
220                                                 <include>org.onap.aaf.*</include>
221                                         </includes>
222                                 </configuration>
223                                 <executions>
224                                         <execution>
225                                                 <id>pre-unit-test</id>
226                                                 <goals>
227                                                         <goal>prepare-agent</goal>
228                                                 </goals>
229                                                 <configuration>
230                                                         <destFile>${project.build.directory}/coverage-reports/jacoco.exec</destFile>
231                                                         <!-- <append>true</append> -->
232                                                 </configuration>
233                                         </execution>
234                                         <execution>
235                                                 <id>pre-integration-test</id>
236                                                 <phase>pre-integration-test</phase>
237                                                 <goals>
238                                                         <goal>prepare-agent</goal>
239                                                 </goals>
240                                                 <configuration>
241                                                         <destFile>${project.build.directory}/coverage-reports/jacoco-it.exec</destFile>
242                                                         <!-- <append>true</append> -->
243                                                 </configuration>
244                                         </execution>
245                                         <execution>
246                         <goals>
247                             <goal>merge</goal>
248                         </goals>
249                         <phase>post-integration-test</phase>
250                         <configuration>
251                             <fileSets>
252                                 <fileSet implementation="org.apache.maven.shared.model.fileset.FileSet">
253                                     <directory>${project.build.directory}/coverage-reports</directory>
254                                     <includes>
255                                         <include>*.exec</include>
256                                     </includes>
257                                 </fileSet>
258                             </fileSets>
259                             <destFile>${project.build.directory}/jacoco-dev.exec</destFile>
260                         </configuration>
261                     </execution>
262                                 </executions>
263                         </plugin>
264                         </plugins>
265                 </pluginManagement>
266         </build>
267
268         <distributionManagement>
269                 <repository>
270                         <id>ecomp-releases</id>
271                         <name>AAF Release Repository</name>
272                         <url>${nexusproxy}${releaseNexusPath}</url>
273                 </repository>
274                 <snapshotRepository>
275                         <id>ecomp-snapshots</id>
276                         <name>AAF Snapshot Repository</name>
277                         <url>${nexusproxy}${snapshotNexusPath}</url>
278                 </snapshotRepository>
279                 <site>
280                         <id>ecomp-site</id>
281                         <url>dav:${nexusproxy}${sitePath}</url>
282                 </site>
283         </distributionManagement>
284 </project>