Release aaf/authz
[aaf/authz.git] / auth / 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/xsd/maven-4.0.0.xsd">
24
25         <modelVersion>4.0.0</modelVersion>
26         <parent>
27         <groupId>org.onap.aaf.authz</groupId>
28         <artifactId>parent</artifactId>
29         <version>2.1.15</version>
30     </parent>
31         <artifactId>authparent</artifactId>
32         <name>AAF Auth Parent</name>
33         <packaging>pom</packaging>
34
35         
36         <properties>
37                 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
38                 <project.ext_root_dir>/opt/app/osaaf</project.ext_root_dir>
39                 <!--  SONAR  -->
40                  <jacoco.version>0.7.7.201606060606</jacoco.version>
41             <sonar-jacoco-listeners.version>3.2</sonar-jacoco-listeners.version>
42             <sonar.core.codeCoveragePlugin>jacoco</sonar.core.codeCoveragePlugin>
43             <!-- Default Sonar configuration -->
44             <sonar.jacoco.reportPaths>target/code-coverage/jacoco-ut.exec</sonar.jacoco.reportPaths>
45             <sonar.jacoco.itReportPaths>target/code-coverage/jacoco-it.exec</sonar.jacoco.itReportPaths>
46             <!-- Note: This list should match jacoco-maven-plugin's exclusion list below -->
47             <sonar.exclusions>**/gen/**,**/generated-sources/**,**/yang-gen**,**/pax/**</sonar.exclusions>
48                 <nexusproxy>https://nexus.onap.org</nexusproxy>
49                 <snapshotNexusPath>/content/repositories/snapshots/</snapshotNexusPath>
50                 <releaseNexusPath>/content/repositories/releases/</releaseNexusPath>
51                 <stagingNexusPath>/content/repositories/staging/</stagingNexusPath>
52                 <sitePath>/content/sites/site/org/onap/aaf/authz/${project.artifactId}/${project.version}</sitePath>
53                 <!-- We have to up these versions from the original to avoid Security Errors -->
54                 <project.nettyVersion>4.1.22.Final</project.nettyVersion>
55                 <project.project.ext_root_dir>/opt/app/osaaf</project.project.ext_root_dir>
56         </properties>
57
58         <developers>
59                 <developer>
60                         <name>Jonathan Gathman</name>
61                         <email>jonathan.gathman@att.com</email>
62                         <organization>ATT</organization>
63                         <roles>
64                                 <role>Architect</role>
65                                 <role>Lead Developer</role>
66                         </roles>
67                 </developer>
68                 <developer>
69                         <name>Gabe Maurer</name>
70                         <email>gabe.maurer@att.com</email>
71                         <organization>ATT</organization>
72                         <roles>
73                                 <role>Developer</role>
74                         </roles>
75                 </developer>
76                 <developer>
77                         <name>Ian Howell</name>
78                         <email>ian.howell@att.com</email>
79                         <organization>ATT</organization>
80                         <roles>
81                                 <role>Developer</role>
82                         </roles>
83                 </developer>
84                 <developer>
85                         <name>Sai Gandham</name>
86                         <email>sai.gandham@att.com</email>
87                         <organization>ATT</organization>
88                         <roles>
89                                 <role>Developer</role>
90                         </roles>
91                 </developer>
92         </developers>
93
94         <build>
95                 <pluginManagement>
96                         <plugins>
97                                 <plugin>
98                                         <groupId>org.apache.maven.plugins</groupId>
99                                         <artifactId>maven-compiler-plugin</artifactId>
100                                         <version>2.3.2</version>
101                                         <configuration>
102                                                 <source>1.8</source>
103                                                 <target>1.8</target>
104                                         </configuration>
105                                 </plugin>
106                                 <plugin>
107                                         <groupId>org.apache.maven.plugins</groupId>
108                                         <artifactId>maven-deploy-plugin</artifactId>
109                                         <version>2.6</version>
110                                         <configuration>
111                                                 <skip>false</skip>
112                                         </configuration>
113                                 </plugin>
114
115                                 <plugin>
116                                         <groupId>org.apache.maven.plugins</groupId>
117                                         <artifactId>maven-surefire-plugin</artifactId>
118                                         <version>2.17</version>
119                                         <configuration>
120                                                 <skipTests>false</skipTests>
121
122                                                 <includes>
123                                                         <include>**/JU*.java</include>
124                                                 </includes>
125                                                 <excludes>
126                                                 </excludes>
127                                                 <useSystemClassLoader>false</useSystemClassLoader>
128                                         </configuration>
129                                 </plugin>
130
131                                 <plugin>
132                                         <groupId>org.apache.maven.plugins</groupId>
133                                         <artifactId>maven-failsafe-plugin</artifactId>
134                                         <version>2.17</version>
135                                         <configuration>
136                                                 <skipTests>false</skipTests>
137                                         </configuration>
138                                         <executions>
139                                                 <execution>
140                                                         <id>integration-test</id>
141                                                         <goals>
142                                                                 <goal>integration-test</goal>
143                                                                 <goal>verify</goal>
144                                                         </goals>
145                                                 </execution>
146                                         </executions>
147                                 </plugin>
148                                 
149                                 <!--  Builds O/S Command line ready jars and scripts, ready to run/zip -->
150                                 <plugin>
151                                         <groupId>org.codehaus.mojo</groupId>
152                                         <artifactId>appassembler-maven-plugin</artifactId>
153                                         <version>1.10</version>
154                                         <executions>
155                                                 <execution>
156                                                         <goals>
157                                                                 <goal>assemble</goal>
158                                                         </goals>
159                                                         <phase>install</phase>
160                                                 </execution>
161                                         </executions>
162                                         <configuration>
163                                                 <programs/> <!-- this set in projects that have programs -->
164                                                 <assembleDirectory>../aaf_${project.version}</assembleDirectory>
165                                                 <copyConfigurationDirectory>true</copyConfigurationDirectory>
166                                                 <configurationDirectory>etc</configurationDirectory>
167                                                 <repositoryName>lib</repositoryName>
168                                                 <includeConfigurationDirectoryInClasspath>false</includeConfigurationDirectoryInClasspath>
169                                                 <repositoryLayout>flat</repositoryLayout>
170                                         </configuration>
171                                 </plugin>
172                                 
173                                 <!-- Build Docker Image -->
174                                 <plugin>
175                                         <groupId>com.spotify</groupId>
176                                         <artifactId>docker-maven-plugin</artifactId>
177                                         <version>1.0.0</version>
178                                         <configuration>
179                                                 <imageName>onap/osaaf/${project.artifactId}</imageName>
180                                                 <!-- <dockerDirectory>${dockerLocation}</dockerDirectory> -->
181                                                 <dockerDirectory>${basedir}/src/main/resources/docker</dockerDirectory>
182                                                 <imageTags>
183                                                         <imageTag>latest</imageTag>
184                                                         <imageTag>${project.docker.latesttagtimestamp.version}</imageTag>
185                                                         <imageTag>${project.docker.latesttag.version}</imageTag>
186                                                 </imageTags>
187                                                 <forceTags>true</forceTags>
188                                                 <!-- <resources> <resource> <targetPath>/</targetPath> <directory>${project.build.directory}/opt</directory> 
189                                                         <filtering>true</filtering> <includes> <include>**/**</include> </includes> 
190                                                         </resource> </resources> -->
191                                                 <resources>
192                                                         <resource>
193                                                                 <targetPath>/</targetPath>
194                                                                 <directory>${project.build.directory}/opt</directory>
195                                                                 <include>${project.build.finalName}.jar</include>
196                                                         </resource>
197                                                         <resource>
198                                                                 <targetPath>/</targetPath>
199                                                                 <directory>${project.build.directory}</directory>
200                                                                 <include>**/**</include>
201                                                         </resource>
202                                                 </resources>
203                                         </configuration>
204                                         <executions>
205                                                 <execution>
206                                                         <id>build-image</id>
207                                                         <phase>package</phase>
208                                                         <goals>
209                                                                 <goal>build</goal>
210                                                         </goals>
211                                                         <configuration>
212                                                                 <skipDockerBuild>${skip.docker.build}</skipDockerBuild>
213                                                         </configuration>
214                                                 </execution>
215                                 
216                                                 <execution>
217                                                         <id>tag-image-project-version</id>
218                                                         <phase>package</phase>
219                                                         <goals>
220                                                                 <goal>tag</goal>
221                                                         </goals>
222                                                         <configuration>
223                                                                 <image>onap/osaaf/${project.artifactId}</image>
224                                                                 <newName>${docker.push.registry}/onap/osaaf/${project.artifactId}:${project.version}</newName>
225                                                                 <skipDockerTag>${skip.docker.push}</skipDockerTag>
226                                                         </configuration>
227                                                 </execution>
228                                 
229                                                 <execution>
230                                                         <id>tag-image-latest</id>
231                                                         <phase>package</phase>
232                                                         <goals>
233                                                                 <goal>tag</goal>
234                                                         </goals>
235                                                         <configuration>
236                                                                 <image>onap/aaf/authz-service</image>
237                                                                 <newName>${docker.push.registry}/onap/osaaf/${project.artifactId}:latest</newName>
238                                                                 <skipDockerTag>${skip.docker.push}</skipDockerTag>
239                                                         </configuration>
240                                                 </execution>
241                                 
242                                                 <execution>
243                                                         <id>push-image-latest</id>
244                                                         <phase>deploy</phase>
245                                                         <goals>
246                                                                 <goal>push</goal>
247                                                         </goals>
248                                                         <configuration>
249                                                                 <imageName>${docker.push.registry}/onap/osaaf/${project.artifactId}:${project.version}</imageName>
250                                                                 <skipDockerPush>${skip.docker.push}</skipDockerPush>
251                                                         </configuration>
252                                                 </execution>
253                                 
254                                                 <execution>
255                                                         <id>push-image</id>
256                                                         <phase>deploy</phase>
257                                                         <goals>
258                                                                 <goal>push</goal>
259                                                         </goals>
260                                                         <configuration>
261                                                                 <imageName>${docker.push.registry}/onap/osaaf/${project.artifactId}:latest</imageName>
262                                                                 <skipDockerPush>${skip.docker.push}</skipDockerPush>
263                                                         </configuration>
264                                                 </execution>
265                                         </executions>
266                                 </plugin>
267                         <plugin>
268                                 <groupId>org.jacoco</groupId>
269                                 <artifactId>jacoco-maven-plugin</artifactId>
270                                 <version>0.7.7.201606060606</version>
271                                 <configuration>
272                                         <dumpOnExit>true</dumpOnExit>
273                                         <includes>
274                                                 <include>org.onap.aaf.*</include>
275                                         </includes>
276                                 </configuration>
277                                 <executions>
278                                         <execution>
279                                                 <id>pre-unit-test</id>
280                                                 <goals>
281                                                         <goal>prepare-agent</goal>
282                                                 </goals>
283                                                 <configuration>
284                                                         <destFile>${project.build.directory}/coverage-reports/jacoco.exec</destFile>
285                                                         <!-- <append>true</append> -->
286                                                 </configuration>
287                                         </execution>
288                                         <execution>
289                                                 <id>pre-integration-test</id>
290                                                 <phase>pre-integration-test</phase>
291                                                 <goals>
292                                                         <goal>prepare-agent</goal>
293                                                 </goals>
294                                                 <configuration>
295                                                         <destFile>${project.build.directory}/coverage-reports/jacoco-it.exec</destFile>
296                                                         <!-- <append>true</append> -->
297                                                 </configuration>
298                                         </execution>
299                                         <execution>
300                         <goals>
301                             <goal>merge</goal>
302                         </goals>
303                         <phase>post-integration-test</phase>
304                         <configuration>
305                             <fileSets>
306                                 <fileSet implementation="org.apache.maven.shared.model.fileset.FileSet">
307                                     <directory>${project.build.directory}/coverage-reports</directory>
308                                     <includes>
309                                         <include>*.exec</include>
310                                     </includes>
311                                 </fileSet>
312                             </fileSets>
313                             <destFile>${project.build.directory}/jacoco-dev.exec</destFile>
314                         </configuration>
315                     </execution>
316                                 </executions>
317                         </plugin>
318                         </plugins>
319                 </pluginManagement>
320         </build>
321
322         <dependencies>
323                 <dependency>
324                         <groupId>org.mockito</groupId>
325                         <artifactId>mockito-all</artifactId>
326                         <scope>test</scope>
327                 </dependency>
328                 <dependency>
329                         <groupId>org.powermock</groupId>
330                         <artifactId>powermock-module-junit4</artifactId>
331                         <scope>test</scope>
332                 </dependency>
333                 <dependency>
334                         <groupId>org.powermock</groupId>
335                         <artifactId>powermock-api-mockito</artifactId>
336                         <scope>test</scope>
337                 </dependency>
338                 <dependency>
339                         <groupId>junit</groupId>
340                         <artifactId>junit</artifactId>
341                         <scope>test</scope>
342                 </dependency>
343
344         </dependencies>
345
346         <modules>
347                 <!-- <module>auth-client</module> complile manually with mvn -N independently -->
348                 <module>auth-core</module>
349                 <module>auth-cass</module>
350                 <module>auth-deforg</module>
351
352                 <module>auth-service</module>
353                 <module>auth-cmd</module>
354                 <module>auth-batch</module>
355
356                 <module>auth-gui</module>
357                 <module>auth-locate</module>
358                 <module>auth-oauth</module>
359                 <module>auth-certman</module>
360                 <module>auth-fs</module>
361                 <module>auth-hello</module>
362         </modules>
363
364
365 </project>