Merge "Add StandAlone Unix Configurations Include scripts, podman starts, minor code...
[aaf/authz.git] / pom.xml
1 <!--* ============LICENSE_START==================================================== 
2     * =========================================================================== 
3     * org.onap.aaf 
4     * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. 
5     * =========================================================================== 
6     * Licensed under the Apache License, Version 2.0 (the "License"); 
7     * you may not use this file except in compliance with the License. 
8     * You may obtain a copy of the License at 
9     * 
10     * http://www.apache.org/licenses/LICENSE-2.0 
11     * 
12     * Unless required by applicable law or agreed to in writing, software 
13     * distributed under the License is distributed on an "AS IS" BASIS, 
14     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 
15     * See the License for the specific language governing permissions and 
16     * limitations under the License. 
17     * ============LICENSE_END==================================================== 
18     * -->
19 <project xmlns="http://maven.apache.org/POM/4.0.0"
20     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
21     xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
22     <modelVersion>4.0.0</modelVersion>
23     <groupId>org.onap.aaf.authz</groupId>
24     <artifactId>parent</artifactId>
25     <version>2.1.21-SNAPSHOT</version>
26     <name>aaf-authz</name>
27     <packaging>pom</packaging>
28
29     <parent>
30         <groupId>org.onap.oparent</groupId>
31         <artifactId>oparent</artifactId>
32         <!-- Official Released Version
33         <version>2.1.0</version>
34
35         Frankfurt working Version
36     -->
37         <version>3.0.1</version>
38     </parent>
39
40     <properties>
41         <nexusproxy>https://nexus.onap.org</nexusproxy>
42         <onap.nexus.url>https://nexus.onap.org</onap.nexus.url>
43         <snapshotNexusPath>/content/repositories/snapshots/</snapshotNexusPath>
44         <releaseNexusPath>/content/repositories/releases/</releaseNexusPath>
45         <stagingNexusPath>/content/repositories/staging/</stagingNexusPath>
46         <sitePath>/content/sites/site/org/onap/aaf/authz/${project.artifactId}/${project.version}</sitePath>
47
48         <maven.test.failure.ignore>false</maven.test.failure.ignore>
49         <!-- Note: This list should match jacoco-maven-plugin's exclusion list 
50             below -->
51         <sonar.exclusions>**/gen/**,**/generated-sources/**,**/yang-gen**,**/pax/**</sonar.exclusions>
52         <nexusproxy>https://nexus.onap.org</nexusproxy>
53         <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
54         <powermock.version>1.5.1</powermock.version>
55         <mockito.version>1.9.5</mockito.version>
56         <project.interfaceVersion>${project.version}</project.interfaceVersion>
57         <project.jettyVersion>9.4.12.v20180830</project.jettyVersion>
58         <!--
59             This version needs work.
60                 <project.jettyVersion>9.4.17.v20190418</project.jettyVersion>
61             This version requires changes in how to start Jetty  
62                 <project.jettyVersion>9.4.26.v20200117</project.jettyVersion>
63         -->
64         
65         <project.cassVersion>3.6.0</project.cassVersion>
66         <project.jaxbVersion>2.3.1</project.jaxbVersion>
67         <project.glassfishJaxbVersion>3.0-b71</project.glassfishJaxbVersion>
68     </properties>
69     <build>
70         <plugins>
71             <plugin>
72                 <groupId>org.sonarsource.scanner.maven</groupId>
73                 <artifactId>sonar-maven-plugin</artifactId>
74             </plugin>
75             <plugin>
76                 <groupId>org.jacoco</groupId>
77                 <artifactId>jacoco-maven-plugin</artifactId>
78                 <configuration>
79                     <excludes>
80                         <exclude>**/gen/**</exclude>
81                         <exclude>**/generated-sources/**</exclude>
82                         <exclude>**/yang-gen/**</exclude>
83                         <exclude>**/pax/**</exclude>
84                     </excludes>
85                 </configuration>
86                 <executions>
87                     <execution>
88                         <id>pre-unit-test</id>
89                         <goals>
90                             <goal>prepare-agent</goal>
91                         </goals>
92                         <configuration>
93                             <destFile>${project.build.directory}/code-coverage/jacoco-ut.exec</destFile>
94                             <propertyName>surefireArgLine</propertyName>
95                         </configuration>
96                     </execution>
97                     <execution>
98                         <id>post-unit-test</id>
99                         <phase>test</phase>
100                         <goals>
101                             <goal>report</goal>
102                         </goals>
103                         <configuration>
104                             <dataFile>${project.build.directory}/code-coverage/jacoco-ut.exec</dataFile>
105                             <outputDirectory>${project.reporting.outputDirectory}/jacoco-ut</outputDirectory>
106                         </configuration>
107                     </execution>
108                     <execution>
109                         <id>pre-integration-test</id>
110                         <phase>pre-integration-test</phase>
111                         <goals>
112                             <goal>prepare-agent</goal>
113                         </goals>
114                         <configuration>
115                             <destFile>${project.build.directory}/code-coverage/jacoco-it.exec</destFile>
116                             <propertyName>failsafeArgLine</propertyName>
117                         </configuration>
118                     </execution>
119                     <execution>
120                         <id>post-integration-test</id>
121                         <phase>post-integration-test</phase>
122                         <goals>
123                             <goal>report</goal>
124                         </goals>
125                         <configuration>
126                             <dataFile>${project.build.directory}/code-coverage/jacoco-it.exec</dataFile>
127                             <outputDirectory>${project.reporting.outputDirectory}/jacoco-it</outputDirectory>
128                         </configuration>
129                     </execution>
130                 </executions>
131             </plugin>
132
133
134         </plugins>
135     </build>
136     <modules>
137         <module>auth-client</module>
138         <module>misc</module>
139         <module>cadi</module>
140         <module>auth</module>
141     </modules>
142
143     <dependencyManagement>
144         <dependencies>
145             <dependency>
146                 <groupId>org.onap.aaf.authz</groupId>
147                 <artifactId>aaf-misc-env</artifactId>
148                 <version>${project.version}</version>
149             </dependency>
150
151             <dependency>
152                 <groupId>org.onap.aaf.authz</groupId>
153                 <artifactId>aaf-misc-log4j</artifactId>
154                 <version>${project.version}</version>
155             </dependency>
156
157             <dependency>
158                 <groupId>org.onap.aaf.authz</groupId>
159                 <artifactId>aaf-misc-rosetta</artifactId>
160                 <version>${project.version}</version>
161             </dependency>
162
163             <dependency>
164                 <groupId>org.onap.aaf.authz</groupId>
165                 <artifactId>aaf-misc-xgen</artifactId>
166                 <version>${project.version}</version>
167             </dependency>
168
169             <dependency>
170                 <groupId>org.onap.aaf.authz</groupId>
171                 <artifactId>aaf-auth-client</artifactId>
172                 <version>${project.version}</version>
173             </dependency>
174
175             <dependency>
176                 <groupId>org.onap.aaf.authz</groupId>
177                 <artifactId>aaf-auth-core</artifactId>
178                 <version>${project.version}</version>
179             </dependency>
180
181             <dependency>
182                 <groupId>org.onap.aaf.authz</groupId>
183                 <artifactId>aaf-auth-cass</artifactId>
184                 <version>${project.version}</version>
185             </dependency>
186
187             <dependency>
188                 <groupId>org.onap.aaf.authz</groupId>
189                 <artifactId>aaf-auth-cmd</artifactId>
190                 <version>${project.version}</version>
191             </dependency>
192
193             <dependency>
194                 <groupId>org.onap.aaf.authz</groupId>
195                 <artifactId>aaf-auth-oauth</artifactId>
196                 <version>${project.version}</version>
197             </dependency>
198
199             <dependency>
200                 <groupId>org.onap.aaf.authz</groupId>
201                 <artifactId>aaf-auth-deforg</artifactId>
202                 <version>${project.version}</version>
203             </dependency>
204
205             <dependency>
206                 <groupId>org.onap.aaf.authz</groupId>
207                 <artifactId>aaf-cadi-core</artifactId>
208                 <version>${project.version}</version>
209             </dependency>
210
211             <dependency>
212                 <groupId>org.onap.aaf.authz</groupId>
213                 <artifactId>aaf-cadi-client</artifactId>
214                 <version>${project.version}</version>
215             </dependency>
216
217             <dependency>
218                 <groupId>org.onap.aaf.authz</groupId>
219                 <artifactId>aaf-cadi-aaf</artifactId>
220                 <version>${project.version}</version>
221                 <exclusions>
222                     <exclusion>
223                         <groupId>org.apache.cassandra</groupId>
224                         <artifactId>cassandra-all</artifactId>
225                     </exclusion>
226                 </exclusions>
227             </dependency>
228
229             <dependency>
230                 <groupId>org.onap.aaf.authz</groupId>
231                 <artifactId>aaf-cadi-jetty</artifactId>
232                 <version>${project.version}</version>
233             </dependency>
234
235             <dependency>
236                 <groupId>org.onap.aaf.authz</groupId>
237                 <artifactId>aaf-cadi-cass</artifactId>
238                 <version>${project.version}</version>
239             </dependency>
240             <dependency>
241                 <groupId>javax.servlet</groupId>
242                 <artifactId>javax.servlet-api</artifactId>
243                 <version>3.0.1</version>
244             </dependency>
245
246                                     <!-- JettyVersion is partly covered in "OParent" dependency> -->
247                         <dependency>
248                                 <groupId>org.eclipse.jetty</groupId>
249                                 <artifactId>jetty-servlet</artifactId>
250                                 <version>${project.jettyVersion}</version>
251                         </dependency>
252                         <dependency>
253                                 <groupId>org.eclipse.jetty</groupId>
254                                 <artifactId>jetty-server</artifactId>
255                                 <version>${project.jettyVersion}</version>
256                         </dependency>
257                         <dependency>
258                                 <groupId>org.eclipse.jetty</groupId>
259                                 <artifactId>jetty-http</artifactId>
260                                 <version>${project.jettyVersion}</version>
261                         </dependency>
262                         <dependency>
263                                 <groupId>org.eclipse.jetty</groupId>
264                                 <artifactId>jetty-io</artifactId>
265                                 <version>${project.jettyVersion}</version>
266                         </dependency>
267                         <dependency>
268                                 <groupId>org.eclipse.jetty</groupId>
269                                 <artifactId>jetty-security</artifactId>
270                                 <version>${project.jettyVersion}</version>
271                         </dependency>
272                         <dependency>
273                                 <groupId>org.eclipse.jetty</groupId>
274                                 <artifactId>jetty-util</artifactId>
275                                 <version>${project.jettyVersion}</version>
276                         </dependency> 
277
278             <dependency>
279                 <groupId>org.slf4j</groupId>
280                 <artifactId>slf4j-api</artifactId>
281                 <version>1.7.5</version>
282             </dependency>
283
284             <dependency>
285                 <groupId>com.datastax.cassandra</groupId>
286                 <artifactId>cassandra-all</artifactId>
287                 <version>${project.cassVersion}</version>
288                 <exclusions>
289                     <exclusion>
290                         <groupId>org.slf4j</groupId>
291                         <artifactId>slf4j-log4j12</artifactId>
292                     </exclusion>
293                     <exclusion>
294                         <groupId>log4j</groupId>
295                         <artifactId>log4j</artifactId>
296                     </exclusion>
297                 </exclusions>
298             </dependency>
299
300             <dependency>
301                 <groupId>com.datastax.cassandra</groupId>
302                 <artifactId>cassandra-driver-core</artifactId>
303                 <version>${project.cassVersion}</version>
304                 <exclusions>
305                     <exclusion>
306                         <groupId>org.slf4j</groupId>
307                         <artifactId>slf4j-log4j12</artifactId>
308                     </exclusion>
309                     <exclusion>
310                         <groupId>log4j</groupId>
311                         <artifactId>log4j</artifactId>
312                     </exclusion>
313                     <exclusion>
314                         <groupId>com.google.guava</groupId>
315                         <artifactId>guava</artifactId>
316                     </exclusion>
317                 </exclusions>
318             </dependency>
319             <!-- Note: Ensure DataStax uses more up-to-date netty handler -->
320             <dependency>
321                 <groupId>io.netty</groupId>
322                 <artifactId>netty-handler</artifactId>
323                 <version>${project.nettyVersion}</version>
324             </dependency>
325
326             <dependency>
327                 <groupId>org.slf4j</groupId>
328                 <artifactId>slf4j-log4j12</artifactId>
329                 <version>1.7.5</version>
330             </dependency>
331
332             <dependency>
333                 <groupId>javax.mail</groupId>
334                 <artifactId>mail</artifactId>
335                 <version>1.4.7</version>
336             </dependency>
337
338             <dependency>
339                 <groupId>org.mockito</groupId>
340                 <artifactId>mockito-all</artifactId>
341                 <version>${mockito.version}</version>
342                 <scope>test</scope>
343             </dependency>
344
345             <dependency>
346                 <groupId>org.powermock</groupId>
347                 <artifactId>powermock-module-junit4</artifactId>
348                 <version>${powermock.version}</version>
349                 <scope>test</scope>
350             </dependency>
351
352             <dependency>
353                 <groupId>org.powermock</groupId>
354                 <artifactId>powermock-api-mockito</artifactId>
355                 <version>${powermock.version}</version>
356                 <scope>test</scope>
357             </dependency>
358
359             <dependency>
360                 <groupId>log4j</groupId>
361                 <artifactId>log4j</artifactId>
362                 <version>1.2.17</version>
363             </dependency>
364
365             <dependency>
366                 <groupId>junit</groupId>
367                 <artifactId>junit</artifactId>
368                 <version>4.10</version>
369                 <scope>test</scope>
370             </dependency>
371
372           <!-- Javax removed as of JDK 9 -->
373           <!--  Annotation MAY not be needed -->
374           <dependency>
375             <groupId>javax.annotation</groupId>
376             <artifactId>javax.annotation-api</artifactId>
377             <version>1.3.2</version>
378           </dependency>
379           <dependency>
380             <groupId>javax.xml.bind</groupId>
381             <artifactId>jaxb-api</artifactId>
382             <version>${project.jaxbVersion}</version>
383           </dependency>
384           <dependency>
385             <groupId>org.glassfish.jaxb</groupId>
386             <artifactId>jaxb-xjc</artifactId>
387             <version>${project.jaxbVersion}</version>
388           </dependency>
389           <dependency>
390             <groupId>org.glassfish.jaxb</groupId>
391             <artifactId>jaxb-runtime</artifactId>
392             <version>${project.jaxbVersion}</version>
393           </dependency>
394           <!-- 
395           <dependency>
396                     <groupId>com.sun.xml.bind</groupId>
397                     <artifactId>jaxb-impl</artifactId>
398                     <version>2.2.11</version>
399                   </dependency>
400                   <dependency>
401                         <groupId>com.sun.xml.bind</groupId>
402                         <artifactId>jaxb-core</artifactId>
403                         <version>2.2.11</version>
404                    </dependency>
405                     -->
406         </dependencies>
407     </dependencyManagement>
408
409     <distributionManagement>
410         <repository>
411             <id>ecomp-releases</id>
412             <name>AAF Release Repository</name>
413             <url>${nexusproxy}${releaseNexusPath}</url>
414         </repository>
415         <snapshotRepository>
416             <id>ecomp-snapshots</id>
417             <name>AAF Snapshot Repository</name>
418             <url>${nexusproxy}${snapshotNexusPath}</url>
419         </snapshotRepository>
420         <site>
421             <id>ecomp-site</id>
422             <url>dav:${nexusproxy}${sitePath}</url>
423         </site>
424     </distributionManagement>
425
426     <profiles>
427         <profile>
428             <id>build-docker</id>
429             <build>
430                 <plugins>
431                     <plugin>
432                         <groupId>org.codehaus.mojo</groupId>
433                         <artifactId>exec-maven-plugin</artifactId>
434                         <version>1.6.0</version>
435                         <executions>
436                             <execution>
437                                 <id>Docker Build</id>
438                                 <goals>
439                                     <goal>exec</goal>
440                                 </goals>
441                             </execution>
442                         </executions>
443                         <configuration>
444                             <skip>true</skip>
445                             <executable>bash</executable>
446                             <commandlineArgs>echo "No Docker Here"</commandlineArgs>
447                         </configuration>
448                     </plugin>
449                     <plugin>
450                             <groupId>org.sonarsource.scanner.maven</groupId>
451                             <artifactId>sonar-maven-plugin</artifactId>
452                             <configuration>
453                                 <skip>true</skip>
454                             </configuration>
455                     </plugin>
456                 </plugins>
457             </build>
458
459             <modules>
460                 <module>auth-client</module>
461                 <module>misc</module>
462                 <module>cadi</module>
463                 <module>auth</module>
464                 <module>auth/docker</module>
465             </modules>
466         </profile>
467     </profiles>
468 </project>