[AAI-ONAP] Update the pom for pushing to staging
[aai/aai-common.git] / aai-annotations / pom.xml
1 <?xml version="1.0"?>
2 <project
3         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
4         xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
5         <modelVersion>4.0.0</modelVersion>
6         <parent>
7           <groupId>org.onap.aai.aai-common</groupId>
8           <artifactId>aai-common</artifactId>
9           <version>1.1.0-SNAPSHOT</version>
10         </parent>
11         <artifactId>aai-annotations</artifactId>
12         <name>aai-annotations</name>
13         <packaging>jar</packaging>
14         <properties>
15                 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
16                 <nexusproxy>https://nexus.onap.org</nexusproxy>
17                 <sitePath>/content/sites/site/${project.groupId}/${project.artifactId}/${project.version}</sitePath>
18                 <maven.compiler.target>1.8</maven.compiler.target>
19                 <maven.compiler.source>1.8</maven.compiler.source>
20         </properties>
21         <dependencies>
22                 <dependency>
23                         <groupId>junit</groupId>
24                         <artifactId>junit</artifactId>
25                         <version>3.8.1</version>
26                         <scope>test</scope>
27                 </dependency>
28         </dependencies>
29
30         <build>
31                 <pluginManagement>
32                         <plugins>
33                                 <plugin>
34                                   <groupId>org.apache.maven.plugins</groupId>
35                                   <artifactId>maven-site-plugin</artifactId>
36                                   <version>3.6</version>
37                                   <dependencies>
38                                     <dependency>
39                                       <groupId>org.apache.maven.wagon</groupId>
40                                       <artifactId>wagon-webdav-jackrabbit</artifactId>
41                                       <version>2.10</version>
42                                     </dependency>
43                                   </dependencies>
44                                 </plugin>
45                                 <!-- Checkstyle plugin - used to report on compliance with -->
46                                 <!-- the Google style guide. -->
47                                 <plugin>
48                                         <groupId>org.apache.maven.plugins</groupId>
49                                         <artifactId>maven-site-plugin</artifactId>
50                                         <version>3.3</version>
51                                         <configuration>
52                                                 <reportPlugins>
53                                                         <plugin>
54                                                                 <groupId>org.apache.maven.plugins</groupId>
55                                                                 <artifactId>maven-checkstyle-plugin</artifactId>
56                                                                 <version>2.17</version>
57                                                                 <reportSets>
58                                                                         <reportSet>
59                                                                                 <reports>
60                                                                                         <report>checkstyle</report>
61                                                                                 </reports>
62                                                                         </reportSet>
63                                                                 </reportSets>
64                                                         </plugin>
65                                                 </reportPlugins>
66                                         </configuration>
67                                 </plugin>
68
69                                 <plugin>
70                                         <groupId>org.codehaus.mojo</groupId>
71                                         <artifactId>license-maven-plugin</artifactId>
72                                         <version>1.12</version>
73                                         <configuration>
74                                                 <addJavaLicenseAfterPackage>false</addJavaLicenseAfterPackage>
75                                                 <licenseName>apache_v2</licenseName>
76                                                 <inceptionYear>2017</inceptionYear>
77                                                 <organizationName>AT&amp;T Intellectual Property. All rights reserved.</organizationName>
78                                                 <projectName>org.openecomp.aai</projectName>
79                                                 <canUpdateCopyright>true</canUpdateCopyright>
80                                                 <canUpdateDescription>true</canUpdateDescription>
81                                                 <canUpdateLicense>true</canUpdateLicense>
82                                                 <emptyLineAfterHeader>true</emptyLineAfterHeader>
83                                                 <processStartTag>============LICENSE_START=======================================================</processStartTag>
84                                                 <processEndTag>============LICENSE_END=========================================================</processEndTag>
85                                                 <sectionDelimiter>================================================================================</sectionDelimiter>
86                                                 <includes>
87                                                         <include>**/*.java</include>
88                                                         <include>**/*.ksh</include>
89                                                         <include>**/*.sh</include>
90                                                         <include>**/*.ftl</include>
91                                                         <include>**/*.xsd</include>
92                                                         <include>**/*.xjb</include>
93                                                         <include>**/aai*.xml</include>
94                                                         <include>**/*logback*.xml</include>
95                                                         <include>**/*aaiconfig*.properties</include>
96                                                         <include>**/*titan*.properties</include>
97                                                 </includes>
98                                         </configuration>
99                                         <executions>
100                                                 <execution>
101                                                         <id>first</id>
102                                                         <goals>
103                                                                 <goal>update-file-header</goal>
104                                                         </goals>
105                                                         <phase>process-sources</phase>
106                                                 </execution>
107                                         </executions>
108                                 </plugin>
109                                 <plugin>
110                                         <groupId>org.apache.maven.plugins</groupId>
111                                         <artifactId>maven-compiler-plugin</artifactId>
112                                         <configuration>
113                                                 <source>1.8</source>
114                                                 <target>1.8</target>
115                                         </configuration>
116                                 </plugin>
117                                 <plugin>
118                                         <artifactId>maven-release-plugin</artifactId>
119                                         <version>2.4.2</version>
120                                         <dependencies>
121                                                 <dependency>
122                                                         <groupId>org.apache.maven.scm</groupId>
123                                                         <artifactId>maven-scm-provider-gitexe</artifactId>
124                                                         <version>1.8.1</version>
125                                                 </dependency>
126                                         </dependencies>
127                                 </plugin>
128                         </plugins>
129                 </pluginManagement>
130                 <plugins>
131         <plugin>
132                 <groupId>org.apache.maven.plugins</groupId>
133                 <artifactId>maven-deploy-plugin</artifactId>
134                 <executions>
135                         <execution>
136                         <id>default-deploy</id>
137                         <phase>none</phase>
138                         </execution>
139                         </executions>
140                 </plugin>        
141                 <plugin>
142                     <groupId>org.sonatype.plugins</groupId>
143                     <artifactId>nexus-staging-maven-plugin</artifactId>
144                     <version>1.6.7</version>
145                     <extensions>true</extensions>
146                     <configuration>
147                         <nexusUrl>${nexusproxy}</nexusUrl>
148                         <stagingProfileId>176c31dfe190a</stagingProfileId>
149                         <serverId>ecomp-staging</serverId>
150                     </configuration>
151                 </plugin>
152                 </plugins>
153         </build>
154         
155         <distributionManagement>
156                 <repository>
157                         <id>ecomp-releases</id>
158                         <name>ECOMP Release Repository</name>
159                         <url>${nexusproxy}/content/repositories/releases/</url>
160                 </repository>
161                 <snapshotRepository>
162                         <id>ecomp-snapshots</id>
163                         <name>ECOMP Snapshot Repository</name>
164                         <url>${nexusproxy}/content/repositories/snapshots/</url>
165                 </snapshotRepository>
166                 <site>
167                         <id>ecomp-site</id>
168                         <url>dav:${nexusproxy}${sitePath}</url>
169                 </site>
170         </distributionManagement>
171
172         <!-- Plugins and repositories -->
173         <pluginRepositories>
174                 <pluginRepository>
175                         <id>central</id>
176                         <url>http://repo1.maven.org/maven2</url>
177                 </pluginRepository>
178                 <pluginRepository>
179                         <id>EvoSuite</id>
180                         <name>EvoSuite Repository</name>
181                         <url>http://www.evosuite.org/m2</url>
182                 </pluginRepository>
183         </pluginRepositories>
184         
185         <repositories>
186                 <repository>
187                         <id>AJSC</id>
188                         <name>AJSC repository</name>
189                         <url>https://mvnrepository.com/artifact/com.att.ajsc</url>
190                 </repository>
191                 <repository>
192                         <id>restlet</id>
193                         <name>maven reslet</name>
194                         <url>https://maven.restlet.com/</url>
195                 </repository>
196                 
197                 <repository>
198                         <id>central</id>
199                         <name>Maven 2 repository 2</name>
200                         <url>http://repo2.maven.org/maven2/</url>
201                 </repository>
202                 <repository>
203                         <id>ecomp-releases</id>
204                         <name>ECOMP Release Repository</name>
205                         <url>${nexusproxy}/content/repositories/releases/</url>
206                 </repository>
207                 <repository>
208                         <id>ecomp-staging</id>
209                         <name>ECOMP Staging Repository</name>
210                         <url>${nexusproxy}/content/repositories/staging/</url>
211                 </repository>
212                 <repository>
213                         <id>ecomp-snapshots</id>
214                         <name>ECOMP Snapshot Repository</name>
215                         <url>${nexusproxy}/content/repositories/snapshots/</url>
216                 </repository>
217         </repositories>
218         
219         <reporting>
220           <plugins>
221             <plugin>
222               <groupId>org.apache.maven.plugins</groupId>
223               <artifactId>maven-javadoc-plugin</artifactId>
224               <version>2.10.4</version>
225               <configuration>
226                 <failOnError>false</failOnError>
227                 <doclet>org.umlgraph.doclet.UmlGraphDoc</doclet>
228                 <docletArtifact>
229                   <groupId>org.umlgraph</groupId>
230                   <artifactId>umlgraph</artifactId>
231                   <version>5.6</version>
232                 </docletArtifact>
233                 <additionalparam>-views</additionalparam>
234                 <useStandardDocletOptions>true</useStandardDocletOptions>
235               </configuration>
236             </plugin>
237           </plugins>
238         </reporting>
239 </project>