Add test cases for aaf authz modules
[aaf/authz.git] / authz-cmd / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>\r
2 <!--\r
3   ============LICENSE_START====================================================\r
4   * org.onap.aaf\r
5   * ===========================================================================\r
6   * Copyright © 2017 AT&T Intellectual Property. All rights reserved.\r
7   * ===========================================================================\r
8   * Licensed under the Apache License, Version 2.0 (the "License");\r
9   * you may not use this file except in compliance with the License.\r
10   * You may obtain a copy of the License at\r
11   * \r
12    *      http://www.apache.org/licenses/LICENSE-2.0\r
13   * \r
14    * Unless required by applicable law or agreed to in writing, software\r
15   * distributed under the License is distributed on an "AS IS" BASIS,\r
16   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
17   * See the License for the specific language governing permissions and\r
18   * limitations under the License.\r
19   * ============LICENSE_END====================================================\r
20   *\r
21   * ECOMP is a trademark and service mark of AT&T Intellectual Property.\r
22   *\r
23 -->\r
24 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"\r
25          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">\r
26   <modelVersion>4.0.0</modelVersion>\r
27   <parent>\r
28     <groupId>org.onap.aaf.authz</groupId>\r
29     <artifactId>parent</artifactId>\r
30     <version>1.0.1-SNAPSHOT</version>\r
31     <relativePath>../pom.xml</relativePath>\r
32   </parent>\r
33   \r
34   <artifactId>authz-cmd</artifactId>\r
35   <name>Authz Command</name>\r
36   <description>Command Line Processor for Authz</description>\r
37   <packaging>jar</packaging>\r
38         <url>https://github.com/att/AAF</url>\r
39 \r
40         <developers>\r
41                 <developer>\r
42                 <name>Jonathan Gathman</name>\r
43                 <email></email>\r
44         <organization>ATT</organization>\r
45         <organizationUrl></organizationUrl>\r
46                 </developer>\r
47         </developers>\r
48 \r
49   <properties>\r
50     <maven.test.failure.ignore>false</maven.test.failure.ignore>\r
51     <project.swmVersion>21</project.swmVersion>\r
52         <project.cadiVersion>1.0.0-SNAPSHOT</project.cadiVersion>\r
53                 <!--  SONAR  -->\r
54                  <jacoco.version>0.7.7.201606060606</jacoco.version>\r
55             <sonar-jacoco-listeners.version>3.2</sonar-jacoco-listeners.version>\r
56             <sonar.core.codeCoveragePlugin>jacoco</sonar.core.codeCoveragePlugin>\r
57             <!-- Default Sonar configuration -->\r
58             <sonar.jacoco.reportPath>target/code-coverage/jacoco-ut.exec</sonar.jacoco.reportPath>\r
59             <sonar.jacoco.itReportPath>target/code-coverage/jacoco-it.exec</sonar.jacoco.itReportPath>\r
60             <!-- Note: This list should match jacoco-maven-plugin's exclusion list below -->\r
61             <sonar.exclusions>**/gen/**,**/generated-sources/**,**/yang-gen**,**/pax/**</sonar.exclusions>\r
62         <nexusproxy>https://nexus.onap.org</nexusproxy>\r
63                 <snapshotNexusPath>/content/repositories/snapshots/</snapshotNexusPath>\r
64                 <releaseNexusPath>/content/repositories/releases/</releaseNexusPath>\r
65                 <stagingNexusPath>/content/repositories/staging/</stagingNexusPath>\r
66                 <sitePath>/content/sites/site/org/onap/aaf/authz/${project.artifactId}/${project.version}</sitePath>\r
67   </properties>\r
68   \r
69   <dependencies>\r
70     <dependency>\r
71       <groupId>org.onap.aaf.cadi</groupId>\r
72       <artifactId>cadi-aaf</artifactId>\r
73           <version>${project.cadiVersion}</version>\r
74     </dependency>\r
75     \r
76     <dependency>\r
77       <groupId>org.onap.aaf.authz</groupId>\r
78       <artifactId>authz-core</artifactId>\r
79           <version>${project.version}</version>\r
80     </dependency>\r
81     \r
82     <dependency> \r
83       <groupId>jline</groupId> \r
84       <artifactId>jline</artifactId> \r
85       <version>2.14.2</version> \r
86     </dependency>\r
87 \r
88         <dependency>\r
89                 <groupId>org.slf4j</groupId>\r
90                 <artifactId>slf4j-log4j12</artifactId>\r
91         </dependency>\r
92 \r
93   </dependencies>\r
94 \r
95         <build>\r
96                 <plugins>\r
97                         <plugin>\r
98                                 <artifactId>maven-assembly-plugin</artifactId>\r
99                                 <version>2.4</version>\r
100                                 <configuration>\r
101                                         <classifier>tests</classifier>\r
102                                         <archive>\r
103                                                 <manifestEntries>\r
104                                                         <Sealed>true</Sealed>\r
105                                                 </manifestEntries>\r
106                                         </archive>\r
107                                 </configuration>\r
108                                 <executions>\r
109                                         <execution>\r
110                                                 <id>full</id>\r
111                                                 <phase>package</phase>\r
112                                                 <goals>\r
113                                                         <goal>single</goal>\r
114                                                 </goals>\r
115                                                 <configuration>\r
116                                                         <descriptors>\r
117                                                                 <descriptor>src/main/assemble/authz-cmd.xml</descriptor>\r
118                                                         </descriptors>\r
119                                                 </configuration>\r
120                                         </execution>\r
121                                 </executions>\r
122                         </plugin>\r
123                 \r
124                 <plugin>\r
125                         <groupId>org.apache.maven.plugins</groupId>\r
126                         <artifactId>maven-javadoc-plugin</artifactId>\r
127                         <version>2.10.4</version>\r
128                         <configuration>\r
129                         <failOnError>false</failOnError>\r
130                         </configuration>\r
131                         <executions>\r
132                                 <execution>\r
133                                         <id>attach-javadocs</id>\r
134                                         <goals>\r
135                                                 <goal>jar</goal>\r
136                                         </goals>\r
137                                 </execution>\r
138                         </executions>\r
139                 </plugin>  \r
140            \r
141            \r
142                <plugin>\r
143                       <groupId>org.apache.maven.plugins</groupId>\r
144                       <artifactId>maven-source-plugin</artifactId>\r
145                       <version>2.2.1</version>\r
146                       <executions>\r
147                         <execution>\r
148                           <id>attach-sources</id>\r
149                           <goals>\r
150                             <goal>jar-no-fork</goal>\r
151                           </goals>\r
152                         </execution>\r
153                       </executions>\r
154                     </plugin>\r
155                  <plugin>\r
156                                 <groupId>org.sonatype.plugins</groupId>\r
157                                 <artifactId>nexus-staging-maven-plugin</artifactId>\r
158                                 <version>1.6.7</version>\r
159                                 <extensions>true</extensions>\r
160                                 <configuration>\r
161                                         <nexusUrl>${nexusproxy}</nexusUrl>\r
162                                         <stagingProfileId>176c31dfe190a</stagingProfileId>\r
163                                         <serverId>ecomp-staging</serverId>\r
164                                 </configuration>\r
165                         </plugin>               \r
166                         <plugin>\r
167           <groupId>org.jacoco</groupId>\r
168           <artifactId>jacoco-maven-plugin</artifactId>\r
169           <version>${jacoco.version}</version>\r
170           <configuration>\r
171             <excludes>\r
172               <exclude>**/gen/**</exclude>\r
173               <exclude>**/generated-sources/**</exclude>\r
174               <exclude>**/yang-gen/**</exclude>\r
175               <exclude>**/pax/**</exclude>\r
176             </excludes>\r
177           </configuration>\r
178           <executions>\r
179 \r
180             <execution>\r
181               <id>pre-unit-test</id>\r
182               <goals>\r
183                 <goal>prepare-agent</goal>\r
184               </goals>\r
185               <configuration>\r
186                 <destFile>${project.build.directory}/code-coverage/jacoco-ut.exec</destFile>\r
187                 <propertyName>surefireArgLine</propertyName>\r
188               </configuration>\r
189             </execution>\r
190             \r
191        \r
192             <execution>\r
193               <id>post-unit-test</id>\r
194               <phase>test</phase>\r
195               <goals>\r
196                 <goal>report</goal>\r
197               </goals>\r
198               <configuration>\r
199                 <dataFile>${project.build.directory}/code-coverage/jacoco-ut.exec</dataFile>\r
200                 <outputDirectory>${project.reporting.outputDirectory}/jacoco-ut</outputDirectory>\r
201               </configuration>\r
202             </execution>\r
203             <execution>\r
204               <id>pre-integration-test</id>\r
205               <phase>pre-integration-test</phase>\r
206               <goals>\r
207                 <goal>prepare-agent</goal>\r
208               </goals>\r
209               <configuration>\r
210                 <destFile>${project.build.directory}/code-coverage/jacoco-it.exec</destFile>\r
211 \r
212                 <propertyName>failsafeArgLine</propertyName>\r
213               </configuration>\r
214             </execution>\r
215 \r
216        \r
217             <execution>\r
218               <id>post-integration-test</id>\r
219               <phase>post-integration-test</phase>\r
220               <goals>\r
221                 <goal>report</goal>\r
222               </goals>\r
223               <configuration>\r
224                 <dataFile>${project.build.directory}/code-coverage/jacoco-it.exec</dataFile>\r
225                 <outputDirectory>${project.reporting.outputDirectory}/jacoco-it</outputDirectory>\r
226               </configuration>\r
227             </execution>\r
228           </executions>\r
229         </plugin>       \r
230 \r
231                 \r
232                         </plugins>\r
233                 <pluginManagement>\r
234                         <plugins/>\r
235                 </pluginManagement>\r
236         </build>\r
237 <distributionManagement>\r
238                 <repository>\r
239                         <id>ecomp-releases</id>\r
240                         <name>AAF Release Repository</name>\r
241                         <url>${nexusproxy}${releaseNexusPath}</url>\r
242                 </repository>\r
243                 <snapshotRepository>\r
244                         <id>ecomp-snapshots</id>\r
245                         <name>AAF Snapshot Repository</name>\r
246                         <url>${nexusproxy}${snapshotNexusPath}</url>\r
247                 </snapshotRepository>\r
248                 <site>\r
249                         <id>ecomp-site</id>\r
250                         <url>dav:${nexusproxy}${sitePath}</url>\r
251                 </site>\r
252         </distributionManagement>\r
253 \r
254 </project>\r