Merge "fix xsd generation when obj crosses oxm files"
[aai/aai-common.git] / pom.xml
1 <!--
2
3     ============LICENSE_START=======================================================
4     org.onap.aai
5     ================================================================================
6     Copyright © 2017-2018 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:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://maven.apache.org/POM/4.0.0"
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>
25     <parent>
26         <groupId>org.onap.oparent</groupId>
27         <artifactId>oparent</artifactId>
28         <version>1.1.0</version>
29     </parent>
30
31     <groupId>org.onap.aai.aai-common</groupId>
32     <artifactId>aai-common</artifactId>
33     <version>1.4.0-SNAPSHOT</version>
34     <packaging>pom</packaging>
35     <name>aai-aai-common</name>
36     <description>Contains all of the common code for resources and traversal repos</description>
37
38     <modules>
39         <module>aai-schema-ingest</module>
40         <module>aai-annotations</module>
41         <module>aai-core</module>
42         <module>aai-schema</module>
43         <module>aai-auth</module>
44         <module>aai-utils</module>
45     </modules>
46
47     <properties>
48         <aai.generate.schema>true</aai.generate.schema>
49         <sitePath>/content/sites/site/org/onap/aai/aai-common/${project.artifactId}/${project.version}</sitePath>
50         <onap.nexus.url>https://nexus.onap.org</onap.nexus.url>
51     </properties>
52
53     <build>
54         <pluginManagement>
55             <plugins>
56                 <plugin>
57                     <groupId>org.apache.maven.plugins</groupId>
58                     <artifactId>maven-compiler-plugin</artifactId>
59                     <configuration>
60                         <source>1.8</source>
61                         <target>1.8</target>
62                     </configuration>
63                 </plugin>
64                 <plugin>
65                     <groupId>org.apache.maven.plugins</groupId>
66                     <artifactId>maven-source-plugin</artifactId>
67                     <version>3.0.1</version>
68                     <executions>
69                         <execution>
70                             <id>attach-sources</id>
71                             <phase>deploy</phase>
72                             <goals>
73                                 <goal>jar-no-fork</goal>
74                             </goals>
75                         </execution>
76                     </executions>
77                 </plugin>
78                 <plugin>
79                     <groupId>org.apache.maven.plugins</groupId>
80                     <artifactId>maven-deploy-plugin</artifactId>
81                     <version>2.8.2</version>
82                     <executions>
83                         <execution>
84                             <id>default-deploy</id>
85                             <phase>none</phase>
86                         </execution>
87                     </executions>
88                 </plugin>
89                 <plugin>
90                     <groupId>org.sonatype.plugins</groupId>
91                     <artifactId>nexus-staging-maven-plugin</artifactId>
92                     <version>1.6.7</version>
93                     <extensions>true</extensions>
94                     <configuration>
95                         <nexusUrl>${onap.nexus.url}</nexusUrl>
96                         <stagingProfileId>176c31dfe190a</stagingProfileId>
97                         <serverId>ecomp-staging</serverId>
98                     </configuration>
99                 </plugin>
100                 <plugin>
101                     <groupId>com.mycila</groupId>
102                     <artifactId>license-maven-plugin</artifactId>
103                     <version>3.0</version>
104                     <configuration>
105                         <header>LICENSE.TXT</header>
106                         <includes>
107                             <include>src/main/java/**</include>
108                             <include>src/test/java/**</include>
109                             <include>pom.xml</include>
110                         </includes>
111                         <skipExistingHeaders>true</skipExistingHeaders>
112                         <skip>false</skip>
113                     </configuration>
114                     <executions>
115                         <execution>
116                             <goals>
117                                 <!-- Set goal to "format" to auto update license headers -->
118                                 <goal>check</goal>
119                             </goals>
120                             <phase>process-sources</phase>
121                         </execution>
122                     </executions>
123                 </plugin>
124             </plugins>
125         </pluginManagement>
126         <plugins>
127             <plugin>
128                 <groupId>org.apache.maven.plugins</groupId>
129                 <artifactId>maven-site-plugin</artifactId>
130                 <version>3.6</version>
131                 <configuration>
132                     <reportPlugins>
133                         <plugin>
134                             <groupId>org.apache.maven.plugins</groupId>
135                             <artifactId>maven-project-info-reports-plugin</artifactId>
136                             <version>2.4</version>
137                             <configuration>
138                                 <dependencyDetailsEnabled>false</dependencyDetailsEnabled>
139                                 <dependencyLocationsEnabled>false</dependencyLocationsEnabled>
140                             </configuration>
141                             <reports>
142                                 <report>dependencies</report>
143                             </reports>
144                         </plugin>
145                         <plugin>
146                             <groupId>org.apache.maven.plugins</groupId>
147                             <artifactId>maven-javadoc-plugin</artifactId>
148                             <version>2.8</version>
149                             <configuration>
150                                 <additionalparam>-Xdoclint:none</additionalparam>
151                             </configuration>
152                         </plugin>
153                     </reportPlugins>
154                 </configuration>
155                 <dependencies>
156                     <dependency>
157                         <groupId>org.apache.maven.wagon</groupId>
158                         <artifactId>wagon-webdav-jackrabbit</artifactId>
159                         <version>2.10</version>
160                     </dependency>
161                 </dependencies>
162             </plugin>
163             <plugin>
164                 <groupId>com.mycila</groupId>
165                 <artifactId>license-maven-plugin</artifactId>
166             </plugin>
167         </plugins>
168     </build>
169
170     <distributionManagement>
171         <snapshotRepository>
172             <id>ecomp-snapshots</id>
173             <name>ECOMP Snapshot Repository</name>
174             <url>${onap.nexus.url}/content/repositories/snapshots/</url>
175         </snapshotRepository>
176         <site>
177             <id>ecomp-site</id>
178             <url>dav:${onap.nexus.url}${sitePath}</url>
179         </site>
180     </distributionManagement>
181     <reporting>
182         <plugins>
183             <plugin>
184                 <groupId>org.apache.maven.plugins</groupId>
185                 <artifactId>maven-javadoc-plugin</artifactId>
186                 <version>2.10.4</version>
187                 <configuration>
188                     <failOnError>false</failOnError>
189                     <doclet>org.umlgraph.doclet.UmlGraphDoc</doclet>
190                     <docletArtifact>
191                         <groupId>org.umlgraph</groupId>
192                         <artifactId>umlgraph</artifactId>
193                         <version>5.6</version>
194                     </docletArtifact>
195                     <additionalparam>-views -Xdoclint:none</additionalparam>
196                     <excludePackageNames>org.onap.aai.domain.yang.*:org.onap.aai.util.*</excludePackageNames>
197                     <useStandardDocletOptions>true</useStandardDocletOptions>
198                 </configuration>
199             </plugin>
200         </plugins>
201     </reporting>
202
203     <!-- Start of ONAP Specific Repositories -->
204     <repositories>
205         <repository>
206             <id>AJSC</id>
207             <name>AJSC repository</name>
208             <url>https://mvnrepository.com/artifact/com.att.ajsc</url>
209         </repository>
210         <repository>
211             <id>restlet</id>
212             <name>maven reslet</name>
213             <url>https://maven.restlet.com/</url>
214         </repository>
215
216         <repository>
217             <id>central</id>
218             <name>Maven 2 repository 2</name>
219             <url>http://repo2.maven.org/maven2/</url>
220         </repository>
221         <repository>
222             <id>ecomp-releases</id>
223             <name>ECOMP Release Repository</name>
224             <url>${onap.nexus.url}/content/repositories/releases/</url>
225         </repository>
226         <repository>
227             <id>ecomp-staging</id>
228             <name>ECOMP Staging Repository</name>
229             <url>${onap.nexus.url}/content/repositories/staging/</url>
230         </repository>
231         <repository>
232             <id>ecomp-snapshots</id>
233             <name>ECOMP Snapshot Repository</name>
234             <url>${onap.nexus.url}/content/repositories/snapshots/</url>
235         </repository>
236     </repositories>
237     <!-- End of ONAP Specific Repositories -->
238 </project>