dd3415f427177e0e213671be881f8b7337c898b3
[aaf/cadi.git] / core / 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                 <relativePath>..</relativePath>\r
28                 <version>1.0.0-SNAPSHOT</version>\r
29         </parent>\r
30         \r
31         <modelVersion>4.0.0</modelVersion>\r
32         <name>CADI Core Framework (Code, Access, Data, Identity)</name>\r
33         <artifactId>cadi-core</artifactId>\r
34         <packaging>jar</packaging>\r
35         <url>https://github.com/att/AAF</url>\r
36         <description>CADI</description>\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         <dependencies>\r
54 \r
55                 <dependency>\r
56                         <groupId>javax.servlet</groupId>\r
57                         <artifactId>servlet-api</artifactId>\r
58                         <scope>provided</scope>\r
59                 </dependency>\r
60                 \r
61                 <dependency>\r
62                         <groupId>org.slf4j</groupId>\r
63                         <artifactId>slf4j-api</artifactId>\r
64                         <scope>provided</scope>\r
65                 </dependency>\r
66                 \r
67         </dependencies>\r
68         <build>\r
69                 <plugins>\r
70                         <plugin>\r
71                                 <!-- Must put this in to turn on Signing, but Configuration itself is \r
72                                         in Parent -->\r
73                                 <groupId>org.apache.maven.plugins</groupId>\r
74                                 <artifactId>maven-jarsigner-plugin</artifactId>\r
75                         </plugin>\r
76                         <plugin>\r
77                         <groupId>org.apache.maven.plugins</groupId>\r
78                         <artifactId>maven-jar-plugin</artifactId>\r
79                         <configuration>\r
80                                 <archive>\r
81                                         <manifest>\r
82                                                 <mainClass>com.att.cadi.CmdLine</mainClass>\r
83                                         </manifest>\r
84                                         <manifestEntries>\r
85                                                 <Sealed>true</Sealed>\r
86                                         </manifestEntries>\r
87                                 </archive>\r
88                         </configuration>\r
89                         <executions>\r
90                                 <execution>\r
91                                         <id>test-jar</id>\r
92                                         <phase>package</phase>\r
93                                         <goals>\r
94                                                 <goal>test-jar</goal>\r
95                                         </goals>\r
96                                 </execution>\r
97                         </executions>\r
98                 </plugin>\r
99                 \r
100                 <plugin>\r
101                         <groupId>org.apache.maven.plugins</groupId>\r
102                         <artifactId>maven-javadoc-plugin</artifactId>\r
103                         <version>2.10.4</version>\r
104                         <configuration>\r
105                         <failOnError>false</failOnError>\r
106                         </configuration>\r
107                         <executions>\r
108                                 <execution>\r
109                                         <id>attach-javadocs</id>\r
110                                         <goals>\r
111                                                 <goal>jar</goal>\r
112                                         </goals>\r
113                                 </execution>\r
114                         </executions>\r
115                 </plugin> \r
116            \r
117            \r
118                <plugin>\r
119                       <groupId>org.apache.maven.plugins</groupId>\r
120                       <artifactId>maven-source-plugin</artifactId>\r
121                       <version>2.2.1</version>\r
122                       <executions>\r
123                         <execution>\r
124                           <id>attach-sources</id>\r
125                           <goals>\r
126                             <goal>jar-no-fork</goal>\r
127                           </goals>\r
128                         </execution>\r
129                       </executions>\r
130                     </plugin>\r
131   <plugin>\r
132                                 <groupId>org.sonatype.plugins</groupId>\r
133                                 <artifactId>nexus-staging-maven-plugin</artifactId>\r
134                                 <version>1.6.7</version>\r
135                                 <extensions>true</extensions>\r
136                                 <configuration>\r
137                                         <nexusUrl>${nexusproxy}</nexusUrl>\r
138                                         <stagingProfileId>176c31dfe190a</stagingProfileId>\r
139                                         <serverId>ecomp-staging</serverId>\r
140                                 </configuration>\r
141                         </plugin> \r
142                         \r
143                         <plugin>\r
144                                 <groupId>org.jacoco</groupId>\r
145                                 <artifactId>jacoco-maven-plugin</artifactId>\r
146                                 <version>0.7.7.201606060606</version>\r
147                                 <configuration>\r
148                                         <dumpOnExit>true</dumpOnExit>\r
149                                         <includes>\r
150                                                 <include>org.onap.aaf.*</include>\r
151                                         </includes>\r
152                                 </configuration>\r
153                                 <executions>\r
154                                         <execution>\r
155                                                 <id>pre-unit-test</id>\r
156                                                 <goals>\r
157                                                         <goal>prepare-agent</goal>\r
158                                                 </goals>\r
159                                                 <configuration>\r
160                                                         <destFile>${project.build.directory}/coverage-reports/jacoco.exec</destFile>\r
161                                                         <!-- <append>true</append> -->\r
162                                                 </configuration>\r
163                                         </execution>\r
164                                         <execution>\r
165                                                 <id>pre-integration-test</id>\r
166                                                 <phase>pre-integration-test</phase>\r
167                                                 <goals>\r
168                                                         <goal>prepare-agent</goal>\r
169                                                 </goals>\r
170                                                 <configuration>\r
171                                                         <destFile>${project.build.directory}/coverage-reports/jacoco-it.exec</destFile>\r
172                                                         <!-- <append>true</append> -->\r
173                                                 </configuration>\r
174                                         </execution>\r
175                                         <execution>\r
176                         <goals>\r
177                             <goal>merge</goal>\r
178                         </goals>\r
179                         <phase>post-integration-test</phase>\r
180                         <configuration>\r
181                             <fileSets>\r
182                                 <fileSet implementation="org.apache.maven.shared.model.fileset.FileSet">\r
183                                     <directory>${project.build.directory}/coverage-reports</directory>\r
184                                     <includes>\r
185                                         <include>*.exec</include>\r
186                                     </includes>\r
187                                 </fileSet>\r
188                             </fileSets>\r
189                             <destFile>${project.build.directory}/jacoco-dev.exec</destFile>\r
190                         </configuration>\r
191                     </execution>\r
192                                 </executions>\r
193                         </plugin>\r
194                 </plugins>\r
195         </build>\r
196         <distributionManagement>\r
197                 <repository>\r
198                         <id>ecomp-releases</id>\r
199                         <name>AAF Release Repository</name>\r
200                         <url>${nexusproxy}${releaseNexusPath}</url>\r
201                 </repository>\r
202                 <snapshotRepository>\r
203                         <id>ecomp-snapshots</id>\r
204                         <name>AAF Snapshot Repository</name>\r
205                         <url>${nexusproxy}${snapshotNexusPath}</url>\r
206                 </snapshotRepository>\r
207                 <site>\r
208                         <id>ecomp-site</id>\r
209                         <url>dav:${nexusproxy}${sitePath}</url>\r
210                 </site>\r
211         </distributionManagement>\r
212 \r
213 </project>\r