Merge "Examples.java-Extract the assignment out of the expression"
[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.16-SNAPSHOT</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-surefire-plugin</artifactId>
109                     <version>2.17</version>
110                     <configuration>
111                         <skipTests>false</skipTests>
112
113                         <includes>
114                             <include>**/JU*.java</include>
115                         </includes>
116                         <excludes>
117                         </excludes>
118                         <useSystemClassLoader>false</useSystemClassLoader>
119                     </configuration>
120                 </plugin>
121
122                 <plugin>
123                     <groupId>org.apache.maven.plugins</groupId>
124                     <artifactId>maven-failsafe-plugin</artifactId>
125                     <version>2.17</version>
126                     <configuration>
127                         <skipTests>false</skipTests>
128                     </configuration>
129                     <executions>
130                         <execution>
131                             <id>integration-test</id>
132                             <goals>
133                                 <goal>integration-test</goal>
134                                 <goal>verify</goal>
135                             </goals>
136                         </execution>
137                     </executions>
138                 </plugin>
139                 
140                 <!--  Builds O/S Command line ready jars and scripts, ready to run/zip -->
141                 <plugin>
142                     <groupId>org.codehaus.mojo</groupId>
143                     <artifactId>appassembler-maven-plugin</artifactId>
144                     <version>1.10</version>
145                     <executions>
146                         <execution>
147                             <goals>
148                                 <goal>assemble</goal>
149                             </goals>
150                             <phase>install</phase>
151                         </execution>
152                     </executions>
153                     <configuration>
154                         <programs/> <!-- this set in projects that have programs -->
155                         <assembleDirectory>../aaf_${project.version}</assembleDirectory>
156                         <copyConfigurationDirectory>true</copyConfigurationDirectory>
157                         <configurationDirectory>etc</configurationDirectory>
158                         <repositoryName>lib</repositoryName>
159                         <includeConfigurationDirectoryInClasspath>false</includeConfigurationDirectoryInClasspath>
160                         <repositoryLayout>flat</repositoryLayout>
161                     </configuration>
162                 </plugin>
163                 
164                 <!-- Build Docker Image -->
165                 <plugin>
166                     <groupId>com.spotify</groupId>
167                     <artifactId>docker-maven-plugin</artifactId>
168                     <version>1.0.0</version>
169                     <configuration>
170                         <imageName>onap/osaaf/${project.artifactId}</imageName>
171                         <!-- <dockerDirectory>${dockerLocation}</dockerDirectory> -->
172                         <dockerDirectory>${basedir}/src/main/resources/docker</dockerDirectory>
173                         <imageTags>
174                             <imageTag>latest</imageTag>
175                             <imageTag>${project.docker.latesttagtimestamp.version}</imageTag>
176                             <imageTag>${project.docker.latesttag.version}</imageTag>
177                         </imageTags>
178                         <forceTags>true</forceTags>
179                         <!-- <resources> <resource> <targetPath>/</targetPath> <directory>${project.build.directory}/opt</directory> 
180                             <filtering>true</filtering> <includes> <include>**/**</include> </includes> 
181                             </resource> </resources> -->
182                         <resources>
183                             <resource>
184                                 <targetPath>/</targetPath>
185                                 <directory>${project.build.directory}/opt</directory>
186                                 <include>${project.build.finalName}.jar</include>
187                             </resource>
188                             <resource>
189                                 <targetPath>/</targetPath>
190                                 <directory>${project.build.directory}</directory>
191                                 <include>**/**</include>
192                             </resource>
193                         </resources>
194                     </configuration>
195                     <executions>
196                         <execution>
197                             <id>build-image</id>
198                             <phase>package</phase>
199                             <goals>
200                                 <goal>build</goal>
201                             </goals>
202                             <configuration>
203                                 <skipDockerBuild>${skip.docker.build}</skipDockerBuild>
204                             </configuration>
205                         </execution>
206                 
207                         <execution>
208                             <id>tag-image-project-version</id>
209                             <phase>package</phase>
210                             <goals>
211                                 <goal>tag</goal>
212                             </goals>
213                             <configuration>
214                                 <image>onap/osaaf/${project.artifactId}</image>
215                                 <newName>${docker.push.registry}/onap/osaaf/${project.artifactId}:${project.version}</newName>
216                                 <skipDockerTag>${skip.docker.push}</skipDockerTag>
217                             </configuration>
218                         </execution>
219                 
220                         <execution>
221                             <id>tag-image-latest</id>
222                             <phase>package</phase>
223                             <goals>
224                                 <goal>tag</goal>
225                             </goals>
226                             <configuration>
227                                 <image>onap/aaf/authz-service</image>
228                                 <newName>${docker.push.registry}/onap/osaaf/${project.artifactId}:latest</newName>
229                                 <skipDockerTag>${skip.docker.push}</skipDockerTag>
230                             </configuration>
231                         </execution>
232                 
233                         <execution>
234                             <id>push-image-latest</id>
235                             <phase>deploy</phase>
236                             <goals>
237                                 <goal>push</goal>
238                             </goals>
239                             <configuration>
240                                 <imageName>${docker.push.registry}/onap/osaaf/${project.artifactId}:${project.version}</imageName>
241                                 <skipDockerPush>${skip.docker.push}</skipDockerPush>
242                             </configuration>
243                         </execution>
244                 
245                         <execution>
246                             <id>push-image</id>
247                             <phase>deploy</phase>
248                             <goals>
249                                 <goal>push</goal>
250                             </goals>
251                             <configuration>
252                                 <imageName>${docker.push.registry}/onap/osaaf/${project.artifactId}:latest</imageName>
253                                 <skipDockerPush>${skip.docker.push}</skipDockerPush>
254                             </configuration>
255                         </execution>
256                     </executions>
257                 </plugin>
258             <plugin>
259                 <groupId>org.jacoco</groupId>
260                 <artifactId>jacoco-maven-plugin</artifactId>
261                 <version>0.7.7.201606060606</version>
262                 <configuration>
263                     <dumpOnExit>true</dumpOnExit>
264                     <includes>
265                         <include>org.onap.aaf.*</include>
266                     </includes>
267                 </configuration>
268                 <executions>
269                     <execution>
270                         <id>pre-unit-test</id>
271                         <goals>
272                             <goal>prepare-agent</goal>
273                         </goals>
274                         <configuration>
275                             <destFile>${project.build.directory}/coverage-reports/jacoco.exec</destFile>
276                             <!-- <append>true</append> -->
277                         </configuration>
278                     </execution>
279                     <execution>
280                         <id>pre-integration-test</id>
281                         <phase>pre-integration-test</phase>
282                         <goals>
283                             <goal>prepare-agent</goal>
284                         </goals>
285                         <configuration>
286                             <destFile>${project.build.directory}/coverage-reports/jacoco-it.exec</destFile>
287                             <!-- <append>true</append> -->
288                         </configuration>
289                     </execution>
290                     <execution>
291                         <goals>
292                             <goal>merge</goal>
293                         </goals>
294                         <phase>post-integration-test</phase>
295                         <configuration>
296                             <fileSets>
297                                 <fileSet implementation="org.apache.maven.shared.model.fileset.FileSet">
298                                     <directory>${project.build.directory}/coverage-reports</directory>
299                                     <includes>
300                                         <include>*.exec</include>
301                                     </includes>
302                                 </fileSet>
303                             </fileSets>
304                             <destFile>${project.build.directory}/jacoco-dev.exec</destFile>
305                         </configuration>
306                     </execution>
307                 </executions>
308             </plugin>
309             </plugins>
310         </pluginManagement>
311     </build>
312
313     <dependencies>
314         <dependency>
315             <groupId>org.mockito</groupId>
316             <artifactId>mockito-all</artifactId>
317             <scope>test</scope>
318         </dependency>
319         <dependency>
320             <groupId>org.powermock</groupId>
321             <artifactId>powermock-module-junit4</artifactId>
322             <scope>test</scope>
323         </dependency>
324         <dependency>
325             <groupId>org.powermock</groupId>
326             <artifactId>powermock-api-mockito</artifactId>
327             <scope>test</scope>
328         </dependency>
329         <dependency>
330             <groupId>junit</groupId>
331             <artifactId>junit</artifactId>
332             <scope>test</scope>
333         </dependency>
334
335     </dependencies>
336
337     <modules>
338         <!-- <module>auth-client</module> complile manually with mvn -N independently -->
339         <module>auth-core</module>
340         <module>auth-cass</module>
341         <module>auth-deforg</module>
342
343         <module>auth-service</module>
344         <module>auth-cmd</module>
345         <module>auth-batch</module>
346
347         <module>auth-gui</module>
348         <module>auth-locate</module>
349         <module>auth-oauth</module>
350         <module>auth-certman</module>
351         <module>auth-fs</module>
352         <module>auth-hello</module>
353     </modules>
354
355
356 </project>