Update License & modify properties in aaf/cadi
[aaf/cadi.git] / aaf / pom.xml
1 <!--\r
2   ============LICENSE_START====================================================\r
3   * org.onap.aaf\r
4   * ===========================================================================\r
5   * Copyright © 2017 AT&T Intellectual Property. All rights reserved.\r
6   * ===========================================================================\r
7   * Licensed under the Apache License, Version 2.0 (the "License");\r
8   * you may not use this file except in compliance with the License.\r
9   * You may obtain a copy of the License at\r
10   * \r
11    *      http://www.apache.org/licenses/LICENSE-2.0\r
12   * \r
13    * Unless required by applicable law or agreed to in writing, software\r
14   * distributed under the License is distributed on an "AS IS" BASIS,\r
15   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
16   * See the License for the specific language governing permissions and\r
17   * limitations under the License.\r
18   * ============LICENSE_END====================================================\r
19   *\r
20   * ECOMP is a trademark and service mark of AT&T Intellectual Property.\r
21   *\r
22 -->\r
23 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">\r
24         <parent>\r
25                 <groupId>org.onap.aaf.cadi</groupId>\r
26                 <artifactId>parent</artifactId>\r
27                 <version>1.0.0-SNAPSHOT</version>\r
28                 <relativePath>..</relativePath>\r
29         </parent>\r
30 \r
31         <modelVersion>4.0.0</modelVersion>\r
32         <name>CADI AAF (Application Authorization Framework) LUR</name>\r
33         <packaging>jar</packaging>\r
34         <url>https://github.com/att/AAF</url>\r
35         <description>CADI</description>\r
36         <artifactId>cadi-aaf</artifactId>\r
37         <properties>\r
38                 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>\r
39                 <project.cadiVersion>1.0.0-SNAPSHOT</project.cadiVersion>\r
40                 <sonar.language>java</sonar.language>\r
41                 <sonar.java.coveragePlugin>jacoco</sonar.java.coveragePlugin>\r
42                 <sonar.surefire.reportsPath>${project.build.directory}/surefire-reports</sonar.surefire.reportsPath>\r
43                 <sonar.jacoco.reportPath>${project.build.directory}/coverage-reports/jacoco.exec</sonar.jacoco.reportPath>\r
44                 <sonar.jacoco.itReportPath>${project.build.directory}/coverage-reports/jacoco-it.exec</sonar.jacoco.itReportPath>\r
45                 <sonar.jacoco.reportMissing.force.zero>true</sonar.jacoco.reportMissing.force.zero>\r
46                 <sonar.projectVersion>${project.version}</sonar.projectVersion>\r
47         <nexusproxy>https://nexus.onap.org</nexusproxy>\r
48                 <snapshotNexusPath>/content/repositories/snapshots/</snapshotNexusPath>\r
49                 <releaseNexusPath>/content/repositories/releases/</releaseNexusPath>\r
50                 <stagingNexusPath>/content/repositories/staging/</stagingNexusPath>\r
51                 <sitePath>/content/sites/site/org/onap/aaf/cadi/${project.artifactId}/${project.version}</sitePath>\r
52         </properties>\r
53         \r
54         <dependencies>\r
55                 <dependency>\r
56                         <groupId>org.onap.aaf.authz</groupId>\r
57                         <artifactId>authz-client</artifactId>\r
58                 </dependency> \r
59 \r
60                   <dependency>\r
61                         <groupId>org.onap.aaf.cadi</groupId>\r
62                         <artifactId>cadi-client</artifactId>\r
63                 </dependency> \r
64 \r
65                 <dependency>\r
66                         <groupId>org.onap.aaf.cadi</groupId>\r
67                         <artifactId>cadi-client</artifactId>\r
68                 </dependency>\r
69                 \r
70                 <dependency>\r
71                         <groupId>com.att.aft</groupId>\r
72                         <artifactId>dme2</artifactId>\r
73                         <scope>provided</scope>\r
74                 </dependency>\r
75                 \r
76                 <dependency>\r
77                     <groupId>javax.servlet</groupId>\r
78                     <artifactId>javax.servlet-api</artifactId>\r
79                     <version>3.0.1</version>\r
80                         <scope>provided</scope>\r
81                 </dependency>\r
82 \r
83                 <dependency>\r
84                         <groupId>org.slf4j</groupId>\r
85                     <artifactId>slf4j-log4j12</artifactId>\r
86                     <version>1.7.5</version>\r
87                     <scope>test</scope>\r
88                 </dependency>\r
89 \r
90         </dependencies>\r
91         <build>\r
92                 <plugins> \r
93                         <plugin>\r
94                                 <groupId>org.apache.maven.plugins</groupId>\r
95                                 <artifactId>maven-compiler-plugin</artifactId>\r
96                                 <version>2.3.2</version>\r
97                         </plugin>\r
98                 \r
99                                 <!-- We want to create a Jar with Rosetta built in (since I don't want \r
100                                 a separate deployment at this time Use this one as the jar to put in SWM \r
101                                 packages -->\r
102                         <plugin>\r
103                                 <artifactId>maven-assembly-plugin</artifactId>\r
104                                 <configuration>\r
105                                         <classifier>tests</classifier>\r
106                                         <archive>\r
107                                                 <manifest>\r
108                                                         <mainClass>org.onap.aaf.cadi.cm.CmAgent</mainClass>\r
109                                                 </manifest>\r
110 \r
111                                                 <manifestEntries>\r
112                                                         <Sealed>true</Sealed>\r
113                                                 </manifestEntries>\r
114                                         </archive>\r
115                                 </configuration>\r
116                                 <executions>\r
117                                         <execution>\r
118                                                 <id>full</id>\r
119                                                 <phase>package</phase>\r
120                                                 <goals>\r
121                                                         <goal>single</goal>\r
122                                                 </goals>\r
123                                                 <configuration>\r
124                                                         <descriptors>\r
125                                                                 <descriptor>src/assemble/cadi-aaf.xml</descriptor>\r
126                                                         </descriptors>\r
127                                                 </configuration>\r
128                                         </execution>\r
129                                 </executions>\r
130                         </plugin>\r
131                 <plugin>\r
132                         <groupId>org.apache.maven.plugins</groupId>\r
133                         <artifactId>maven-javadoc-plugin</artifactId>\r
134                         <version>2.10.4</version>\r
135                         <configuration>\r
136                         <failOnError>false</failOnError>\r
137                         </configuration>\r
138                         <executions>\r
139                                 <execution>\r
140                                         <id>attach-javadocs</id>\r
141                                         <goals>\r
142                                                 <goal>jar</goal>\r
143                                         </goals>\r
144                                 </execution>\r
145                         </executions>\r
146                 </plugin> \r
147            \r
148            \r
149                <plugin>\r
150                       <groupId>org.apache.maven.plugins</groupId>\r
151                       <artifactId>maven-source-plugin</artifactId>\r
152                       <version>2.2.1</version>\r
153                       <executions>\r
154                         <execution>\r
155                           <id>attach-sources</id>\r
156                           <goals>\r
157                             <goal>jar-no-fork</goal>\r
158                           </goals>\r
159                         </execution>\r
160                       </executions>\r
161                     </plugin>\r
162         \r
163 \r
164 \r
165                         <plugin>\r
166                                 <!-- Also sign "full" -->\r
167                                 <groupId>org.apache.maven.plugins</groupId>\r
168                                 <artifactId>maven-jarsigner-plugin</artifactId>\r
169                                 <configuration>\r
170                                         <skip>true</skip>\r
171                                 </configuration>\r
172                                 <executions>\r
173                                         <execution>\r
174                                                 <id>sign-full</id>\r
175                                                 <goals>\r
176                                                         <goal>sign</goal>\r
177                                                 </goals>\r
178                                                 <configuration>\r
179                                                         <archive>target/${project.artifactId}-${project.version}-full.jar</archive>\r
180                                                 </configuration>\r
181                                         </execution>\r
182                                         <execution>\r
183                                                 <id>verify-full</id>\r
184                                                 <goals>\r
185                                                         <goal>verify</goal>\r
186                                                 </goals>\r
187                                                 <configuration>\r
188                                                         <archive>target/${project.artifactId}-${project.version}-full.jar</archive>\r
189                                                 </configuration>\r
190                                         </execution>\r
191                                 </executions>\r
192                         </plugin>\r
193                   <plugin>\r
194                                 <groupId>org.sonatype.plugins</groupId>\r
195                                 <artifactId>nexus-staging-maven-plugin</artifactId>\r
196                                 <version>1.6.7</version>\r
197                                 <extensions>true</extensions>\r
198                                 <configuration>\r
199                                         <nexusUrl>${nexusproxy}</nexusUrl>\r
200                                         <stagingProfileId>176c31dfe190a</stagingProfileId>\r
201                                         <serverId>ecomp-staging</serverId>\r
202                                 </configuration>\r
203                         </plugin> \r
204                         \r
205                         <plugin>\r
206                                 <groupId>org.jacoco</groupId>\r
207                                 <artifactId>jacoco-maven-plugin</artifactId>\r
208                                 <version>0.7.7.201606060606</version>\r
209                                 <configuration>\r
210                                         <dumpOnExit>true</dumpOnExit>\r
211                                         <includes>\r
212                                                 <include>org.onap.aaf.*</include>\r
213                                         </includes>\r
214                                 </configuration>\r
215                                 <executions>\r
216                                         <execution>\r
217                                                 <id>pre-unit-test</id>\r
218                                                 <goals>\r
219                                                         <goal>prepare-agent</goal>\r
220                                                 </goals>\r
221                                                 <configuration>\r
222                                                         <destFile>${project.build.directory}/coverage-reports/jacoco.exec</destFile>\r
223                                                         <!-- <append>true</append> -->\r
224                                                 </configuration>\r
225                                         </execution>\r
226                                         <execution>\r
227                                                 <id>pre-integration-test</id>\r
228                                                 <phase>pre-integration-test</phase>\r
229                                                 <goals>\r
230                                                         <goal>prepare-agent</goal>\r
231                                                 </goals>\r
232                                                 <configuration>\r
233                                                         <destFile>${project.build.directory}/coverage-reports/jacoco-it.exec</destFile>\r
234                                                         <!-- <append>true</append> -->\r
235                                                 </configuration>\r
236                                         </execution>\r
237                                         <execution>\r
238                         <goals>\r
239                             <goal>merge</goal>\r
240                         </goals>\r
241                         <phase>post-integration-test</phase>\r
242                         <configuration>\r
243                             <fileSets>\r
244                                 <fileSet implementation="org.apache.maven.shared.model.fileset.FileSet">\r
245                                     <directory>${project.build.directory}/coverage-reports</directory>\r
246                                     <includes>\r
247                                         <include>*.exec</include>\r
248                                     </includes>\r
249                                 </fileSet>\r
250                             </fileSets>\r
251                             <destFile>${project.build.directory}/jacoco-dev.exec</destFile>\r
252                         </configuration>\r
253                     </execution>\r
254                                 </executions>\r
255                         </plugin>\r
256                 </plugins>\r
257         </build>\r
258                 <distributionManagement>\r
259                 <repository>\r
260                         <id>ecomp-releases</id>\r
261                         <name>AAF Release Repository</name>\r
262                         <url>${nexusproxy}${releaseNexusPath}</url>\r
263                 </repository>\r
264                 <snapshotRepository>\r
265                         <id>ecomp-snapshots</id>\r
266                         <name>AAF Snapshot Repository</name>\r
267                         <url>${nexusproxy}${snapshotNexusPath}</url>\r
268                 </snapshotRepository>\r
269                 <site>\r
270                         <id>ecomp-site</id>\r
271                         <url>dav:${nexusproxy}${sitePath}</url>\r
272                 </site>\r
273         </distributionManagement>\r
274 \r
275 </project>\r