Create and prepare non-deploy release 2.7.1
[aaf/authz.git] / auth / auth-cmd / 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
15 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
16     xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
17     <modelVersion>4.0.0</modelVersion>
18     <parent>
19         <groupId>org.onap.aaf.authz</groupId>
20         <artifactId>authparent</artifactId>
21         <version>2.7.1-SNAPSHOT</version>
22         <relativePath>../pom.xml</relativePath>
23     </parent>
24
25     <artifactId>aaf-auth-cmd</artifactId>
26     <name>AAF Auth Command</name>
27     <description>Command Line Processor for AAF Auth</description>
28     <packaging>jar</packaging>
29
30     <properties>
31         <maven.test.failure.ignore>false</maven.test.failure.ignore>
32         <!-- SONAR -->
33         <!-- <sonar.skip>true</sonar.skip> -->
34         <jacoco.version>0.7.7.201606060606</jacoco.version>
35         <sonar-jacoco-listeners.version>3.2</sonar-jacoco-listeners.version>
36         <sonar.core.codeCoveragePlugin>jacoco</sonar.core.codeCoveragePlugin>
37         <!-- Default Sonar configuration -->
38         <sonar.jacoco.reportPaths>target/code-coverage/jacoco-ut.exec</sonar.jacoco.reportPaths>
39         <sonar.jacoco.itReportPaths>target/code-coverage/jacoco-it.exec</sonar.jacoco.itReportPaths>
40         <!-- Note: This list should match jacoco-maven-plugin's exclusion list 
41             below -->
42         <sonar.exclusions>**/gen/**,**/generated-sources/**,**/yang-gen**,**/pax/**</sonar.exclusions>
43         <nexusproxy>https://nexus.onap.org</nexusproxy>
44         <snapshotNexusPath>/content/repositories/snapshots/</snapshotNexusPath>
45         <releaseNexusPath>/content/repositories/releases/</releaseNexusPath>
46         <stagingNexusPath>/content/repositories/staging/</stagingNexusPath>
47         <sitePath>/content/sites/site/org/onap/aaf/authz/${project.artifactId}/${project.version}</sitePath>
48     </properties>
49
50     <developers>
51         <developer>
52             <name>Jonathan Gathman</name>
53             <email>jonathan.gathman@att.com</email>
54             <organization>ATT</organization>
55             <roles>
56                 <role>Architect</role>
57                 <role>Lead Developer</role>
58             </roles>
59         </developer>
60         <developer>
61             <name>Sai Gandham</name>
62             <email>sai.gandham@att.com</email>
63             <organization>ATT</organization>
64             <roles>
65                 <role>Developer</role>
66             </roles>
67         </developer>
68     </developers>
69
70     <build>
71         <plugins>
72             <plugin>
73                 <groupId>org.jacoco</groupId>
74                 <artifactId>jacoco-maven-plugin</artifactId>
75                 <configuration>
76                     <excludes>
77                         <exclude>**/gen/**</exclude>
78                         <exclude>**/generated-sources/**</exclude>
79                         <exclude>**/yang-gen/**</exclude>
80                         <exclude>**/pax/**</exclude>
81                     </excludes>
82                 </configuration>
83                 <executions>
84
85                     <execution>
86                         <id>pre-unit-test</id>
87                         <goals>
88                             <goal>prepare-agent</goal>
89                         </goals>
90                         <configuration>
91                             <destFile>${project.build.directory}/code-coverage/jacoco-ut.exec</destFile>
92                             <propertyName>surefireArgLine</propertyName>
93                         </configuration>
94                     </execution>
95
96
97                     <execution>
98                         <id>post-unit-test</id>
99                         <phase>test</phase>
100                         <goals>
101                             <goal>report</goal>
102                         </goals>
103                         <configuration>
104                             <dataFile>${project.build.directory}/code-coverage/jacoco-ut.exec</dataFile>
105                             <outputDirectory>${project.reporting.outputDirectory}/jacoco-ut</outputDirectory>
106                         </configuration>
107                     </execution>
108                     <execution>
109                         <id>pre-integration-test</id>
110                         <phase>pre-integration-test</phase>
111                         <goals>
112                             <goal>prepare-agent</goal>
113                         </goals>
114                         <configuration>
115                             <destFile>${project.build.directory}/code-coverage/jacoco-it.exec</destFile>
116                             <propertyName>failsafeArgLine</propertyName>
117                         </configuration>
118                     </execution>
119
120                     <execution>
121                         <id>post-integration-test</id>
122                         <phase>post-integration-test</phase>
123                         <goals>
124                             <goal>report</goal>
125                         </goals>
126                         <configuration>
127                             <dataFile>${project.build.directory}/code-coverage/jacoco-it.exec</dataFile>
128                             <outputDirectory>${project.reporting.outputDirectory}/jacoco-it</outputDirectory>
129                         </configuration>
130                     </execution>
131                 </executions>
132             </plugin>
133             <plugin>
134                 <artifactId>maven-assembly-plugin</artifactId>
135                 <configuration>
136                     <classifier>tests</classifier>
137                     <archive>
138                         <manifest>
139                             <mainClass>org.onap.aaf.auth.cmd.AAFcli</mainClass>
140                         </manifest>
141                         <manifestEntries>
142                             <Sealed>true</Sealed>
143                         </manifestEntries>
144                     </archive>
145                 </configuration>
146                 <executions>
147                     <execution>
148                         <id>full</id>
149                         <phase>package</phase>
150                         <goals>
151                             <goal>single</goal>
152                         </goals>
153                         <configuration>
154                             <descriptors>
155                                 <descriptor>src/assemble/auth-cmd.xml</descriptor>
156                             </descriptors>
157                         </configuration>
158                     </execution>
159                 </executions>
160             </plugin>
161             
162         </plugins>
163     </build>
164
165     <dependencies>
166         <dependency>
167             <groupId>org.onap.aaf.authz</groupId>
168             <artifactId>aaf-cadi-aaf</artifactId>
169         </dependency>
170
171         <dependency>
172             <groupId>org.onap.aaf.authz</groupId>
173             <artifactId>aaf-auth-core</artifactId>
174         </dependency>
175
176         <dependency>
177             <groupId>jline</groupId>
178             <artifactId>jline</artifactId>
179             <version>2.14.2</version>
180         </dependency>        
181     </dependencies>
182
183     <distributionManagement>
184         <repository>
185             <id>ecomp-releases</id>
186             <name>AAF Release Repository</name>
187             <url>${nexusproxy}${releaseNexusPath}</url>
188         </repository>
189         <snapshotRepository>
190             <id>ecomp-snapshots</id>
191             <name>AAF Snapshot Repository</name>
192             <url>${nexusproxy}${snapshotNexusPath}</url>
193         </snapshotRepository>
194         <site>
195             <id>ecomp-site</id>
196             <url>dav:${nexusproxy}${sitePath}</url>
197         </site>
198     </distributionManagement>
199 </project>