64b26eab4483105aba688172d200e5103e210e69
[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         <licenses>
22                 <license>
23                 <name>BSD License</name>
24                 <url> </url>
25                 </license>
26         </licenses>
27         <developers>
28                 <developer>
29                 <name>Jonathan Gathman</name>
30                 <email></email>
31         <organization>ATT</organization>
32         <organizationUrl></organizationUrl>
33                 </developer>
34         </developers>
35
36         <properties>
37                 <maven.test.failure.ignore>false</maven.test.failure.ignore>
38                 <project.swmVersion>1</project.swmVersion>
39                 <project.interfaceVersion>1.0.0-SNAPSHOT</project.interfaceVersion>
40                 <project.innoVersion>1.0.0-SNAPSHOT</project.innoVersion>
41                 <project.cadiVersion>1.0.0-SNAPSHOT</project.cadiVersion>
42                 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
43                 <skipTests>false</skipTests>
44                 <project.dme2Version>3.1.200</project.dme2Version>
45                 <sonar.language>java</sonar.language>
46                 <sonar.java.coveragePlugin>jacoco</sonar.java.coveragePlugin>
47                 <sonar.skip>true</sonar.skip>
48                 <sonar.surefire.reportsPath>${project.build.directory}/surefire-reports</sonar.surefire.reportsPath>
49                 <sonar.jacoco.reportPath>${project.build.directory}/coverage-reports/jacoco.exec</sonar.jacoco.reportPath>
50                 <sonar.jacoco.itReportPath>${project.build.directory}/coverage-reports/jacoco-it.exec</sonar.jacoco.itReportPath>
51                 <sonar.jacoco.reportMissing.force.zero>true</sonar.jacoco.reportMissing.force.zero>
52                 <sonar.projectVersion>${project.version}</sonar.projectVersion>
53                 <nexusproxy>https://nexus.onap.org</nexusproxy>
54                 <snapshotNexusPath>/content/repositories/snapshots/</snapshotNexusPath>
55                 <releaseNexusPath>/content/repositories/releases/</releaseNexusPath>
56                 <stagingNexusPath>/content/repositories/staging/</stagingNexusPath>
57                 <sitePath>/content/sites/site/org/onap/aaf/authz/${project.artifactId}/${project.version}</sitePath>
58         </properties>
59         
60         <dependencies>
61
62                 <dependency>
63                         <groupId>org.onap.aaf.inno</groupId>
64                         <artifactId>env</artifactId>
65                         <version>${project.innoVersion}</version>
66                 </dependency>
67
68                 <dependency>
69                         <groupId>org.onap.aaf.inno</groupId>
70                         <artifactId>rosetta</artifactId>
71                         <version>${project.innoVersion}</version>
72                 </dependency>
73                 
74                 <dependency>
75                 <groupId>org.onap.aaf.cadi</groupId>
76                 <artifactId>cadi-core</artifactId>
77                         <version>${project.cadiVersion}</version>
78             </dependency>
79
80                 <dependency>
81                 <groupId>org.onap.aaf.cadi</groupId>
82                 <artifactId>cadi-aaf</artifactId>
83                         <version>${project.cadiVersion}</version>
84             </dependency>
85
86                 
87                 <dependency>
88                         <groupId>prg.onap.aaf.authz</groupId>
89                         <artifactId>authz-cass</artifactId>
90                         <version>${project.version}</version>
91                         <exclusions>
92                                 <exclusion> 
93                                         <groupId>javax.servlet</groupId>
94                                 <artifactId>servlet-api</artifactId>
95                         </exclusion>
96                         <exclusion>
97                                 <groupId>org.onap.aaf.cadi</groupId>
98                                 <artifactId>cadi-aaf</artifactId>
99                         </exclusion>
100                         <exclusion>
101                                 <groupId>org.onap.aaf.cadi</groupId>
102                                 <artifactId>cadi-core</artifactId>
103                             </exclusion>
104                             <exclusion>
105                                 <groupId>org.onap.aaf.cadi</groupId>
106                                 <artifactId>cadi-client</artifactId>
107                         </exclusion>
108                         
109                         </exclusions> 
110                 </dependency>
111
112                 <dependency>
113                         <groupId>org.joda</groupId>
114                         <artifactId>joda-time</artifactId>
115                         <version>2.5</version>
116                 </dependency>
117
118                 <dependency>
119                         <groupId>org.slf4j</groupId>
120                         <artifactId>slf4j-log4j12</artifactId>
121                 </dependency>
122
123         </dependencies>
124
125         <build>
126                 <plugins>
127                          
128                             
129                                 <plugin>
130                                         <artifactId>maven-assembly-plugin</artifactId>
131                                         <version>2.4</version>
132                                         
133                                         <configuration>
134                                                 <classifier>tests</classifier>
135                                                 <archive>
136                                                         <manifestEntries>
137                                                                 <Sealed>true</Sealed>
138                                                         </manifestEntries>
139                                                 </archive>
140                                         </configuration>
141                                         <executions>
142                                                 <execution>
143                                                         <id>depends</id>
144                                                         <phase>package</phase>
145                                                         <goals>
146                                                                 <goal>single</goal>
147                                                         </goals>
148                                                         <configuration>
149                                                         <descriptorRefs>
150                                                           <descriptorRef>jar-with-dependencies</descriptorRef>
151                                                         </descriptorRefs>
152                                                         <archive>
153                                                           <manifest>
154                                                             <mainClass>org.onap.aaf.authz.Batch</mainClass>
155                                                           </manifest>
156                                                         </archive>
157                                                         </configuration>
158                                                 </execution>
159                                                 <execution>
160                                                         <id>swm</id>
161                                                         <phase>package</phase>
162                                                         <goals>
163                                                                 <goal>single</goal>
164                                                         </goals>
165                                                 <configuration>
166                                                         <finalName>authz-batch-${project.version}.${project.swmVersion}</finalName>
167                                                          <descriptors>
168                                                                 <descriptor>../authz-service/src/main/assemble/swm.xml</descriptor>
169                                                         </descriptors>
170                                                         <archive>
171                                                         </archive>
172                                                 </configuration>
173                                                 </execution>
174                                         </executions>
175                                 </plugin>
176                 <plugin>
177                         <groupId>org.apache.maven.plugins</groupId>
178                         <artifactId>maven-javadoc-plugin</artifactId>
179                         <configuration>
180                         <failOnError>false</failOnError>
181                         </configuration>
182                         <executions>
183                                 <execution>
184                                         <id>attach-javadocs</id>
185                                         <goals>
186                                                 <goal>jar</goal>
187                                         </goals>
188                                 </execution>
189                         </executions>
190                 </plugin> 
191            
192            
193                <plugin>
194                       <groupId>org.apache.maven.plugins</groupId>
195                       <artifactId>maven-source-plugin</artifactId>
196                       <version>2.2.1</version>
197                       <executions>
198                         <execution>
199                           <id>attach-sources</id>
200                           <goals>
201                             <goal>jar-no-fork</goal>
202                           </goals>
203                         </execution>
204                       </executions>
205                     </plugin>
206         
207 <plugin>
208                                 <groupId>org.sonatype.plugins</groupId>
209                                 <artifactId>nexus-staging-maven-plugin</artifactId>
210                                 <version>1.6.7</version>
211                                 <extensions>true</extensions>
212                                 <configuration>
213                                         <nexusUrl>${nexusproxy}</nexusUrl>
214                                         <stagingProfileId>176c31dfe190a</stagingProfileId>
215                                         <serverId>ecomp-staging</serverId>
216                                 </configuration>
217                         </plugin>               
218                         <plugin>
219                                 <groupId>org.jacoco</groupId>
220                                 <artifactId>jacoco-maven-plugin</artifactId>
221                                 <version>0.7.7.201606060606</version>
222                                 <configuration>
223                                         <dumpOnExit>true</dumpOnExit>
224                                         <includes>
225                                                 <include>org.onap.aaf.*</include>
226                                         </includes>
227                                 </configuration>
228                                 <executions>
229                                         <execution>
230                                                 <id>pre-unit-test</id>
231                                                 <goals>
232                                                         <goal>prepare-agent</goal>
233                                                 </goals>
234                                                 <configuration>
235                                                         <destFile>${project.build.directory}/coverage-reports/jacoco.exec</destFile>
236                                                         <!-- <append>true</append> -->
237                                                 </configuration>
238                                         </execution>
239                                         <execution>
240                                                 <id>pre-integration-test</id>
241                                                 <phase>pre-integration-test</phase>
242                                                 <goals>
243                                                         <goal>prepare-agent</goal>
244                                                 </goals>
245                                                 <configuration>
246                                                         <destFile>${project.build.directory}/coverage-reports/jacoco-it.exec</destFile>
247                                                         <!-- <append>true</append> -->
248                                                 </configuration>
249                                         </execution>
250                                         <execution>
251                         <goals>
252                             <goal>merge</goal>
253                         </goals>
254                         <phase>post-integration-test</phase>
255                         <configuration>
256                             <fileSets>
257                                 <fileSet implementation="org.apache.maven.shared.model.fileset.FileSet">
258                                     <directory>${project.build.directory}/coverage-reports</directory>
259                                     <includes>
260                                         <include>*.exec</include>
261                                     </includes>
262                                 </fileSet>
263                             </fileSets>
264                             <destFile>${project.build.directory}/jacoco-dev.exec</destFile>
265                         </configuration>
266                     </execution>
267                                 </executions>
268                         </plugin>
269
270                                 
271                 
272                         </plugins>
273         </build>
274 </project>