45450828b61c94e16a302c5c249f73d9ac407254
[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         <nexusproxy>https://nexus.onap.org</nexusproxy>\r
41                 <snapshotNexusPath>/content/repositories/snapshots/</snapshotNexusPath>\r
42                 <releaseNexusPath>/content/repositories/releases/</releaseNexusPath>\r
43                 <stagingNexusPath>/content/repositories/staging/</stagingNexusPath>\r
44                 <sitePath>/content/sites/site/${project.groupId}/${project.artifactId}/${project.version}</sitePath>\r
45         </properties>\r
46         \r
47         <dependencies>\r
48                 <dependency>\r
49                         <groupId>org.onap.aaf.authz</groupId>\r
50                         <artifactId>authz-client</artifactId>\r
51                 </dependency> \r
52 \r
53                   <dependency>\r
54                         <groupId>org.onap.aaf.cadi</groupId>\r
55                         <artifactId>cadi-client</artifactId>\r
56                 </dependency> \r
57 \r
58                 <dependency>\r
59                         <groupId>org.onap.aaf.cadi</groupId>\r
60                         <artifactId>cadi-client</artifactId>\r
61                 </dependency>\r
62                 \r
63                 <dependency>\r
64                         <groupId>com.att.aft</groupId>\r
65                         <artifactId>dme2</artifactId>\r
66                         <scope>provided</scope>\r
67                 </dependency>\r
68                 \r
69                 <dependency>\r
70                     <groupId>javax.servlet</groupId>\r
71                     <artifactId>javax.servlet-api</artifactId>\r
72                     <version>3.0.1</version>\r
73                         <scope>provided</scope>\r
74                 </dependency>\r
75 \r
76                 <dependency>\r
77                         <groupId>org.slf4j</groupId>\r
78                     <artifactId>slf4j-log4j12</artifactId>\r
79                     <version>1.7.5</version>\r
80                     <scope>test</scope>\r
81                 </dependency>\r
82 \r
83         </dependencies>\r
84         <build>\r
85                 <plugins> \r
86                         <plugin>\r
87                                 <groupId>org.apache.maven.plugins</groupId>\r
88                                 <artifactId>maven-compiler-plugin</artifactId>\r
89                                 <version>2.3.2</version>\r
90                         </plugin>\r
91                 \r
92                                 <!-- We want to create a Jar with Rosetta built in (since I don't want \r
93                                 a separate deployment at this time Use this one as the jar to put in SWM \r
94                                 packages -->\r
95                         <plugin>\r
96                                 <artifactId>maven-assembly-plugin</artifactId>\r
97                                 <configuration>\r
98                                         <classifier>tests</classifier>\r
99                                         <archive>\r
100                                                 <manifest>\r
101                                                         <mainClass>org.onap.aaf.cadi.cm.CmAgent</mainClass>\r
102                                                 </manifest>\r
103 \r
104                                                 <manifestEntries>\r
105                                                         <Sealed>true</Sealed>\r
106                                                 </manifestEntries>\r
107                                         </archive>\r
108                                 </configuration>\r
109                                 <executions>\r
110                                         <execution>\r
111                                                 <id>full</id>\r
112                                                 <phase>package</phase>\r
113                                                 <goals>\r
114                                                         <goal>single</goal>\r
115                                                 </goals>\r
116                                                 <configuration>\r
117                                                         <descriptors>\r
118                                                                 <descriptor>src/assemble/cadi-aaf.xml</descriptor>\r
119                                                         </descriptors>\r
120                                                 </configuration>\r
121                                         </execution>\r
122                                 </executions>\r
123                         </plugin>\r
124                 <plugin>\r
125                         <groupId>org.apache.maven.plugins</groupId>\r
126                         <artifactId>maven-javadoc-plugin</artifactId>\r
127                                         <configuration>\r
128                         <failOnError>false</failOnError>\r
129                         </configuration>\r
130                         <executions>\r
131                                 <execution>\r
132                                         <id>attach-javadocs</id>\r
133                                         <goals>\r
134                                                 <goal>jar</goal>\r
135                                         </goals>\r
136                                 </execution>\r
137                         </executions>\r
138                 </plugin> \r
139            \r
140            \r
141                <plugin>\r
142                       <groupId>org.apache.maven.plugins</groupId>\r
143                       <artifactId>maven-source-plugin</artifactId>\r
144                       <version>2.2.1</version>\r
145                       <executions>\r
146                         <execution>\r
147                           <id>attach-sources</id>\r
148                           <goals>\r
149                             <goal>jar-no-fork</goal>\r
150                           </goals>\r
151                         </execution>\r
152                       </executions>\r
153                     </plugin>\r
154         \r
155         <plugin>\r
156                         <groupId>org.sonatype.plugins</groupId>\r
157                         <artifactId>nexus-staging-maven-plugin</artifactId>\r
158                         <version>1.6.7</version>\r
159                         <extensions>true</extensions>\r
160                         <configuration>\r
161                         <serverId>ossrhdme</serverId>\r
162                         <nexusUrl>https://oss.sonatype.org/</nexusUrl>\r
163                         <autoReleaseAfterClose>true</autoReleaseAfterClose>\r
164                         </configuration>\r
165                 </plugin>\r
166 \r
167                         <plugin>\r
168                                 <!-- Also sign "full" -->\r
169                                 <groupId>org.apache.maven.plugins</groupId>\r
170                                 <artifactId>maven-jarsigner-plugin</artifactId>\r
171                                 <configuration>\r
172                                         <skip>true</skip>\r
173                                 </configuration>\r
174                                 <executions>\r
175                                         <execution>\r
176                                                 <id>sign-full</id>\r
177                                                 <goals>\r
178                                                         <goal>sign</goal>\r
179                                                 </goals>\r
180                                                 <configuration>\r
181                                                         <archive>target/${project.artifactId}-${project.version}-full.jar</archive>\r
182                                                 </configuration>\r
183                                         </execution>\r
184                                         <execution>\r
185                                                 <id>verify-full</id>\r
186                                                 <goals>\r
187                                                         <goal>verify</goal>\r
188                                                 </goals>\r
189                                                 <configuration>\r
190                                                         <archive>target/${project.artifactId}-${project.version}-full.jar</archive>\r
191                                                 </configuration>\r
192                                         </execution>\r
193                                 </executions>\r
194                         </plugin>\r
195                   <plugin>\r
196                                 <groupId>org.sonatype.plugins</groupId>\r
197                                 <artifactId>nexus-staging-maven-plugin</artifactId>\r
198                                 <version>1.6.7</version>\r
199                                 <extensions>true</extensions>\r
200                                 <configuration>\r
201                                         <nexusUrl>${nexusproxy}</nexusUrl>\r
202                                         <stagingProfileId>176c31dfe190a</stagingProfileId>\r
203                                         <serverId>ecomp-staging</serverId>\r
204                                 </configuration>\r
205                         </plugin> \r
206                 </plugins>\r
207         </build>\r
208                 <distributionManagement>\r
209                 <repository>\r
210                         <id>ecomp-releases</id>\r
211                         <name>AAF Release Repository</name>\r
212                         <url>${nexusproxy}${releaseNexusPath}</url>\r
213                 </repository>\r
214                 <snapshotRepository>\r
215                         <id>ecomp-snapshots</id>\r
216                         <name>AAF Snapshot Repository</name>\r
217                         <url>${nexusproxy}${snapshotNexusPath}</url>\r
218                 </snapshotRepository>\r
219                 <site>\r
220                         <id>ecomp-site</id>\r
221                         <url>dav:${nexusproxy}${sitePath}</url>\r
222                 </site>\r
223         </distributionManagement>\r
224 <pluginRepositories>\r
225         <pluginRepository>\r
226             <id>onap-plugin-snapshots</id>\r
227             <url>https://nexus.onap.org/content/repositories/snapshots/</url>\r
228         </pluginRepository>\r
229     </pluginRepositories>\r
230         \r
231         <repositories>\r
232                 <repository>\r
233                         <id>central</id>\r
234                         <name>Maven 2 repository 2</name>\r
235                         <url>http://repo2.maven.org/maven2/</url>\r
236                 </repository>\r
237                 <repository>\r
238             <id>onap-jar-snapshots</id>\r
239             <url>https://nexus.onap.org/content/repositories/snapshots</url>\r
240         </repository>\r
241                 <repository>\r
242                         <id>spring-repo</id>\r
243                         <name>Spring repo</name>\r
244                         <url>https://artifacts.alfresco.com/nexus/content/repositories/public/</url>\r
245                 </repository>\r
246                 <repository>\r
247                         <id>repository.jboss.org-public</id>\r
248                         <name>JBoss.org Maven repository</name>\r
249                         <url>https://repository.jboss.org/nexus/content/groups/public</url>\r
250                 </repository>\r
251         </repositories>\r
252 </project>\r