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