blob: ff5b49e790f885ec949d46934aaf759e4e288693 [file] [log] [blame]
Instrumentalac1e1ec2018-03-26 13:37:04 -07001<?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 <modelVersion>4.0.0</modelVersion>
Instrumental17ca7442018-03-29 16:54:19 -050025 <groupId>org.onap.aaf.authz.misc</groupId>
Instrumentalac1e1ec2018-03-26 13:37:04 -070026 <artifactId>parent</artifactId>
27 <name>AAF Misc Parent</name>
28 <version>1.3.0-SNAPSHOT</version>
29 <packaging>pom</packaging>
Sai Gandham6d8487a2018-03-27 18:05:26 +000030
Sai Gandham372e2512018-04-01 16:42:58 -050031
Instrumentalac1e1ec2018-03-26 13:37:04 -070032
33 <properties>
Sai Gandham372e2512018-04-01 16:42:58 -050034 <jacocoVersion>0.7.6.201602180812</jacocoVersion>
35 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
36 <encoding>UTF-8</encoding>
37 <sonar.exclusions>**/scripts/**/*,**.js</sonar.exclusions>
38 <sonar.test.exclusions>**/test/**/*,**/tests/**/*</sonar.test.exclusions>
39 <enforcer.skip>true</enforcer.skip>
40
Instrumentalac1e1ec2018-03-26 13:37:04 -070041 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
42 <powermock.version>1.5.1</powermock.version>
Sai Gandhame01703c2018-03-26 22:57:09 +000043 <nexusproxy>https://nexus.onap.org</nexusproxy>
44 <snapshotNexusPath>/content/repositories/snapshots/</snapshotNexusPath>
45 <releaseNexusPath>/content/repositories/releases/</releaseNexusPath>
46 <stagingNexusPath>/content/repositories/staging/</stagingNexusPath>
47 <sitePath>/content/sites/site/org/onap/aaf/authz/${project.artifactId}/${project.version}</sitePath>
Instrumentalac1e1ec2018-03-26 13:37:04 -070048 </properties>
49
Sai Gandhame01703c2018-03-26 22:57:09 +000050
51
Instrumentalac1e1ec2018-03-26 13:37:04 -070052 <developers>
53 <developer>
54 <name>Jonathan Gathman</name>
55 <email>jonathan.gathman@att.com</email>
56 <organization>ATT</organization>
57 <roles>
58 <role>Architect</role>
59 <role>Lead Developer</role>
60 </roles>
61 </developer>
62 <developer>
63 <name>Gabe Maurer</name>
64 <email>gabe.maurer@att.com</email>
65 <organization>ATT</organization>
66 <roles>
67 <role>Developer</role>
68 </roles>
69 </developer>
70 <developer>
71 <name>Ian Howell</name>
72 <email>ian.howell@att.com</email>
73 <organization>ATT</organization>
74 <roles>
75 <role>Developer</role>
76 </roles>
77 </developer>
Sai Gandhame01703c2018-03-26 22:57:09 +000078 <developer>
79 <name>Sai Gandham</name>
80 <email>sai.gandham@att.com</email>
81 <organization>ATT</organization>
82 <roles>
83 <role>Developer</role>
84 </roles>
85 </developer>
Instrumentalac1e1ec2018-03-26 13:37:04 -070086 </developers>
87
88 <dependencies>
89 <dependency>
90 <groupId>org.mockito</groupId>
91 <artifactId>mockito-all</artifactId>
92 <version>1.9.5</version>
93 <scope>test</scope>
94 </dependency>
95
96 <dependency>
97 <groupId>org.powermock</groupId>
98 <artifactId>powermock-module-junit4</artifactId>
99 <version>${powermock.version}</version>
100 <scope>test</scope>
101 </dependency>
102 <dependency>
103 <groupId>org.powermock</groupId>
104 <artifactId>powermock-api-mockito</artifactId>
105 <version>${powermock.version}</version>
106 <scope>test</scope>
107 </dependency>
108 <dependency>
109 <groupId>junit</groupId>
110 <artifactId>junit</artifactId>
111 <version>4.10</version>
112 <scope>test</scope>
113 </dependency>
114 </dependencies>
115
116 <build>
117 <testSourceDirectory>src/test/java</testSourceDirectory>
118 <pluginManagement>
119 <plugins>
120 <plugin>
121 <groupId>org.apache.maven.plugins</groupId>
122 <version>2.4</version>
123 <artifactId>maven-jar-plugin</artifactId>
124 <configuration>
125 <outputDirectory>target</outputDirectory>
126 </configuration>
127 </plugin>
128
129 <plugin>
130 <inherited>true</inherited>
131 <groupId>org.apache.maven.plugins</groupId>
132 <artifactId>maven-compiler-plugin</artifactId>
133 <version>2.3.2</version>
134 <configuration>
135 <source>1.7</source>
136 <target>1.7</target>
137 </configuration>
138 </plugin>
Sai Gandhame01703c2018-03-26 22:57:09 +0000139 <plugin>
140 <groupId>org.sonatype.plugins</groupId>
141 <artifactId>nexus-staging-maven-plugin</artifactId>
142 <version>1.6.7</version>
143 <extensions>true</extensions>
144 <configuration>
145 <nexusUrl>${nexusproxy}</nexusUrl>
146 <stagingProfileId>176c31dfe190a</stagingProfileId>
147 <serverId>ecomp-staging</serverId>
148 </configuration>
149 </plugin>
Sai Gandham372e2512018-04-01 16:42:58 -0500150 <plugin>
151 <groupId>org.sonarsource.scanner.maven</groupId>
152 <artifactId>sonar-maven-plugin</artifactId>
153 <version>3.2</version>
154 </plugin>
155 <!-- Jacoco -->
Sai Gandhame01703c2018-03-26 22:57:09 +0000156 <plugin>
157 <groupId>org.jacoco</groupId>
158 <artifactId>jacoco-maven-plugin</artifactId>
Sai Gandham372e2512018-04-01 16:42:58 -0500159 <!-- Override OParent version -->
160 <version>${jacocoVersion}</version>
Sai Gandhame01703c2018-03-26 22:57:09 +0000161 <executions>
Sai Gandham372e2512018-04-01 16:42:58 -0500162 <!-- disable jacoco executions from oparent -->
Sai Gandhame01703c2018-03-26 22:57:09 +0000163 <execution>
164 <id>pre-unit-test</id>
Sai Gandham372e2512018-04-01 16:42:58 -0500165 <phase>none</phase>
166 </execution>
167 <execution>
168 <id>post-unit-test</id>
169 <phase>none</phase>
Sai Gandhame01703c2018-03-26 22:57:09 +0000170 </execution>
171 <execution>
172 <id>pre-integration-test</id>
Sai Gandham372e2512018-04-01 16:42:58 -0500173 <phase>none</phase>
174 </execution>
175 <execution>
176 <id>post-integration-test</id>
177 <phase>none</phase>
178 </execution>
179 <!-- Order matters -->
180 <execution>
181 <id>portal-prepare-agent</id>
Sai Gandhame01703c2018-03-26 22:57:09 +0000182 <goals>
183 <goal>prepare-agent</goal>
184 </goals>
185 <configuration>
Sai Gandham372e2512018-04-01 16:42:58 -0500186 <destFile>${sonar.jacoco.reportPath}</destFile>
Sai Gandhame01703c2018-03-26 22:57:09 +0000187 </configuration>
188 </execution>
Sai Gandham372e2512018-04-01 16:42:58 -0500189 <!-- offline instrumentation for PowerMock -->
Sai Gandhame01703c2018-03-26 22:57:09 +0000190 <execution>
Sai Gandham372e2512018-04-01 16:42:58 -0500191 <id>portal-offline-instrument</id>
192 <goals>
193 <goal>instrument</goal>
194 </goals>
195 </execution>
196 <execution>
197 <id>portal-restore-instrumented-classes</id>
198 <phase>test</phase>
199 <goals>
200 <goal>restore-instrumented-classes</goal>
201 </goals>
202 </execution>
203 <execution>
204 <id>portal-post-unit-test</id>
205 <phase>test</phase>
206 <goals>
207 <goal>report</goal>
208 </goals>
209 <configuration>
210 <dataFile>${sonar.jacoco.reportPath}</dataFile>
211 <outputDirectory>${project.basedir}/target/site/jacoco</outputDirectory>
212 </configuration>
213 </execution>
Sai Gandhame01703c2018-03-26 22:57:09 +0000214 </executions>
215 </plugin>
Sai Gandham372e2512018-04-01 16:42:58 -0500216
217 <plugin>
218 <groupId>org.apache.maven.plugins</groupId>
219 <artifactId>maven-surefire-plugin</artifactId>
220 <configuration>
221 <systemPropertyVariables>
222 <jacoco-agent.destfile>${project.build.directory}/code-coverage/jacoco-ut.exec</jacoco-agent.destfile>
223 </systemPropertyVariables>
224 </configuration>
225 </plugin>
Instrumentalac1e1ec2018-03-26 13:37:04 -0700226 </plugins>
227 </pluginManagement>
228 </build>
229
Instrumentalac1e1ec2018-03-26 13:37:04 -0700230 <modules>
231 <module>env</module>
232 <module>xgen</module>
233 <module>rosetta</module>
234 <module>log4j</module> <!-- note: generates log4j, to avoid Jar conflict -->
235 </modules>
236
237 <dependencyManagement>
238 <dependencies>
239 <dependency>
240 <groupId>log4j</groupId>
241 <artifactId>log4j</artifactId>
242 <version>1.2.17</version>
243 </dependency>
244 <dependency>
245 <groupId>org.slf4j</groupId>
246 <artifactId>slf4j-log4j12</artifactId>
247 <version>1.7.5</version>
248 </dependency>
249 </dependencies>
250 </dependencyManagement>
Sai Gandhame01703c2018-03-26 22:57:09 +0000251
252 <distributionManagement>
253 <repository>
254 <id>ecomp-releases</id>
255 <name>AAF Release Repository</name>
256 <url>${nexusproxy}${releaseNexusPath}</url>
257 </repository>
Sai Gandham6d8487a2018-03-27 18:05:26 +0000258 <snapshotRepository>
259 <id>ecomp-snapshots</id>
260 <name>AAF Snapshot Repository</name>
261 <url>${nexusproxy}${snapshotNexusPath}</url>
262 </snapshotRepository>
Sai Gandhame01703c2018-03-26 22:57:09 +0000263 <site>
264 <id>ecomp-site</id>
265 <url>dav:${nexusproxy}${sitePath}</url>
266 </site>
267 </distributionManagement>
Instrumentalac1e1ec2018-03-26 13:37:04 -0700268</project>