Upgrade to latest oparent
[aaf/authz.git] / authz-batch / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3     Copyright (c) 2016 AT&T Intellectual Property. All rights reserved.
4  -->
5
6 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
7         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
8         <modelVersion>4.0.0</modelVersion>
9         <parent>
10                 <groupId>com.att.authz</groupId>
11                 <artifactId>parent</artifactId>
12                 <version>1.0.1-SNAPSHOT</version>
13                 <relativePath>../pom.xml</relativePath>
14         </parent>
15                 
16         <artifactId>authz-batch</artifactId>
17         <name>Authz Batch</name>
18         <description>Batch Processing for Authz</description>
19         <packaging>jar</packaging>
20                 <url>https://github.com/att/AAF</url>
21
22         <developers>
23                 <developer>
24                 <name>Jonathan Gathman</name>
25                 <email></email>
26         <organization>ATT</organization>
27         <organizationUrl></organizationUrl>
28                 </developer>
29         </developers>
30
31         <properties>
32                 <maven.test.failure.ignore>false</maven.test.failure.ignore>
33                 <project.swmVersion>1</project.swmVersion>
34                 <project.interfaceVersion>1.0.0-SNAPSHOT</project.interfaceVersion>
35                 <project.innoVersion>1.0.0-SNAPSHOT</project.innoVersion>
36                 <project.cadiVersion>1.0.0-SNAPSHOT</project.cadiVersion>
37                 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
38                 <skipTests>false</skipTests>
39                 <project.dme2Version>3.1.200</project.dme2Version>
40                 
41                 <!--  SONAR  -->
42                  <jacoco.version>0.7.7.201606060606</jacoco.version>
43                  <sonar.skip>true</sonar.skip>
44             <sonar-jacoco-listeners.version>3.2</sonar-jacoco-listeners.version>
45             <sonar.core.codeCoveragePlugin>jacoco</sonar.core.codeCoveragePlugin>
46             <!-- Default Sonar configuration -->
47             <sonar.jacoco.reportPath>target/code-coverage/jacoco-ut.exec</sonar.jacoco.reportPath>
48             <sonar.jacoco.itReportPath>target/code-coverage/jacoco-it.exec</sonar.jacoco.itReportPath>
49             <!-- Note: This list should match jacoco-maven-plugin's exclusion list below -->
50             <sonar.exclusions>**/gen/**,**/generated-sources/**,**/yang-gen**,**/pax/**</sonar.exclusions>
51                 <nexusproxy>https://nexus.onap.org</nexusproxy>
52                 <snapshotNexusPath>/content/repositories/snapshots/</snapshotNexusPath>
53                 <releaseNexusPath>/content/repositories/releases/</releaseNexusPath>
54                 <stagingNexusPath>/content/repositories/staging/</stagingNexusPath>
55                 <sitePath>/content/sites/site/org/onap/aaf/authz/${project.artifactId}/${project.version}</sitePath>
56         </properties>
57         
58         <dependencies>
59
60                 <dependency>
61                         <groupId>org.onap.aaf.inno</groupId>
62                         <artifactId>env</artifactId>
63                         <version>${project.innoVersion}</version>
64                 </dependency>
65
66                 <dependency>
67                         <groupId>org.onap.aaf.inno</groupId>
68                         <artifactId>rosetta</artifactId>
69                         <version>${project.innoVersion}</version>
70                 </dependency>
71                 
72                 <dependency>
73                 <groupId>org.onap.aaf.cadi</groupId>
74                 <artifactId>cadi-core</artifactId>
75                         <version>${project.cadiVersion}</version>
76             </dependency>
77
78                 <dependency>
79                 <groupId>org.onap.aaf.cadi</groupId>
80                 <artifactId>cadi-aaf</artifactId>
81                         <version>${project.cadiVersion}</version>
82             </dependency>
83
84                 
85                 <dependency>
86                         <groupId>prg.onap.aaf.authz</groupId>
87                         <artifactId>authz-cass</artifactId>
88                         <version>${project.version}</version>
89                         <exclusions>
90                                 <exclusion> 
91                                         <groupId>javax.servlet</groupId>
92                                 <artifactId>servlet-api</artifactId>
93                         </exclusion>
94                         <exclusion>
95                                 <groupId>org.onap.aaf.cadi</groupId>
96                                 <artifactId>cadi-aaf</artifactId>
97                         </exclusion>
98                         <exclusion>
99                                 <groupId>org.onap.aaf.cadi</groupId>
100                                 <artifactId>cadi-core</artifactId>
101                             </exclusion>
102                             <exclusion>
103                                 <groupId>org.onap.aaf.cadi</groupId>
104                                 <artifactId>cadi-client</artifactId>
105                         </exclusion>
106                         
107                         </exclusions> 
108                 </dependency>
109
110                 <dependency>
111                         <groupId>org.joda</groupId>
112                         <artifactId>joda-time</artifactId>
113                         <version>2.5</version>
114                 </dependency>
115
116                 <dependency>
117                         <groupId>org.slf4j</groupId>
118                         <artifactId>slf4j-log4j12</artifactId>
119                 </dependency>
120
121         </dependencies>
122
123         <build>
124                 <plugins>
125                          
126                             
127                                 <plugin>
128                                         <artifactId>maven-assembly-plugin</artifactId>
129                                         <version>2.4</version>
130                                         
131                                         <configuration>
132                                                 <classifier>tests</classifier>
133                                                 <archive>
134                                                         <manifestEntries>
135                                                                 <Sealed>true</Sealed>
136                                                         </manifestEntries>
137                                                 </archive>
138                                         </configuration>
139                                         <executions>
140                                                 <execution>
141                                                         <id>depends</id>
142                                                         <phase>package</phase>
143                                                         <goals>
144                                                                 <goal>single</goal>
145                                                         </goals>
146                                                         <configuration>
147                                                         <descriptorRefs>
148                                                           <descriptorRef>jar-with-dependencies</descriptorRef>
149                                                         </descriptorRefs>
150                                                         <archive>
151                                                           <manifest>
152                                                             <mainClass>org.onap.aaf.authz.Batch</mainClass>
153                                                           </manifest>
154                                                         </archive>
155                                                         </configuration>
156                                                 </execution>
157                                                 <execution>
158                                                         <id>swm</id>
159                                                         <phase>package</phase>
160                                                         <goals>
161                                                                 <goal>single</goal>
162                                                         </goals>
163                                                 <configuration>
164                                                         <finalName>authz-batch-${project.version}.${project.swmVersion}</finalName>
165                                                          <descriptors>
166                                                                 <descriptor>../authz-service/src/main/assemble/swm.xml</descriptor>
167                                                         </descriptors>
168                                                         <archive>
169                                                         </archive>
170                                                 </configuration>
171                                                 </execution>
172                                         </executions>
173                                 </plugin>
174                 <plugin>
175                         <groupId>org.apache.maven.plugins</groupId>
176                         <artifactId>maven-javadoc-plugin</artifactId>
177                         <configuration>
178                         <failOnError>false</failOnError>
179                         </configuration>
180                         <executions>
181                                 <execution>
182                                         <id>attach-javadocs</id>
183                                         <goals>
184                                                 <goal>jar</goal>
185                                         </goals>
186                                 </execution>
187                         </executions>
188                 </plugin> 
189            
190            
191                <plugin>
192                       <groupId>org.apache.maven.plugins</groupId>
193                       <artifactId>maven-source-plugin</artifactId>
194                       <version>2.2.1</version>
195                       <executions>
196                         <execution>
197                           <id>attach-sources</id>
198                           <goals>
199                             <goal>jar-no-fork</goal>
200                           </goals>
201                         </execution>
202                       </executions>
203                     </plugin>
204         
205 <plugin>
206                                 <groupId>org.sonatype.plugins</groupId>
207                                 <artifactId>nexus-staging-maven-plugin</artifactId>
208                                 <version>1.6.7</version>
209                                 <extensions>true</extensions>
210                                 <configuration>
211                                         <nexusUrl>${nexusproxy}</nexusUrl>
212                                         <stagingProfileId>176c31dfe190a</stagingProfileId>
213                                         <serverId>ecomp-staging</serverId>
214                                 </configuration>
215                         </plugin>
216                         
217                         <plugin>
218           <groupId>org.jacoco</groupId>
219           <artifactId>jacoco-maven-plugin</artifactId>
220           <version>${jacoco.version}</version>
221           <configuration>
222             <excludes>
223               <exclude>**/gen/**</exclude>
224               <exclude>**/generated-sources/**</exclude>
225               <exclude>**/yang-gen/**</exclude>
226               <exclude>**/pax/**</exclude>
227             </excludes>
228           </configuration>
229           <executions>
230
231             <execution>
232               <id>pre-unit-test</id>
233               <goals>
234                 <goal>prepare-agent</goal>
235               </goals>
236               <configuration>
237                 <destFile>${project.build.directory}/code-coverage/jacoco-ut.exec</destFile>
238                 <propertyName>surefireArgLine</propertyName>
239               </configuration>
240             </execution>
241             
242        
243             <execution>
244               <id>post-unit-test</id>
245               <phase>test</phase>
246               <goals>
247                 <goal>report</goal>
248               </goals>
249               <configuration>
250                 <dataFile>${project.build.directory}/code-coverage/jacoco-ut.exec</dataFile>
251                 <outputDirectory>${project.reporting.outputDirectory}/jacoco-ut</outputDirectory>
252               </configuration>
253             </execution>
254             <execution>
255               <id>pre-integration-test</id>
256               <phase>pre-integration-test</phase>
257               <goals>
258                 <goal>prepare-agent</goal>
259               </goals>
260               <configuration>
261                 <destFile>${project.build.directory}/code-coverage/jacoco-it.exec</destFile>
262
263                 <propertyName>failsafeArgLine</propertyName>
264               </configuration>
265             </execution>
266
267        
268             <execution>
269               <id>post-integration-test</id>
270               <phase>post-integration-test</phase>
271               <goals>
272                 <goal>report</goal>
273               </goals>
274               <configuration>
275                 <dataFile>${project.build.directory}/code-coverage/jacoco-it.exec</dataFile>
276                 <outputDirectory>${project.reporting.outputDirectory}/jacoco-it</outputDirectory>
277               </configuration>
278             </execution>
279           </executions>
280         </plugin>       
281
282                                 
283                 
284                         </plugins>
285         </build>
286 </project>