0e32c8764594173c22d3085860633379b63d58eb
[aai/schema-service.git] / aai-schema / pom.xml
1 <?xml version="1.0"?>
2 <!--
3
4     ============LICENSE_START=======================================================
5     org.onap.aai
6     ================================================================================
7     Copyright © 2017-2018 AT&T Intellectual Property. All rights reserved.
8     ================================================================================
9     Licensed under the Apache License, Version 2.0 (the "License");
10     you may not use this file except in compliance with the License.
11     You may obtain a copy of the License at
12
13        http://www.apache.org/licenses/LICENSE-2.0
14
15     Unless required by applicable law or agreed to in writing, software
16     distributed under the License is distributed on an "AS IS" BASIS,
17     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18     See the License for the specific language governing permissions and
19     limitations under the License.
20     ============LICENSE_END=========================================================
21
22 -->
23 <project
24         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
25         xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
26     <modelVersion>4.0.0</modelVersion>
27     <parent>
28         <groupId>org.onap.aai.schema-service</groupId>
29         <artifactId>schema-service</artifactId>
30         <version>1.12.1-SNAPSHOT</version>
31     </parent>
32     <artifactId>aai-schema</artifactId>
33     <name>aai-schema</name>
34     <properties>
35         <onap.nexus.url>https://nexus.onap.org</onap.nexus.url>
36         <!-- Start of Default ONAP Schema Properties -->
37         <aai.xsd.source>src/main/resources/onap/aai_schema</aai.xsd.source>
38         <aai.bindings.source>src/main/xjb/bindings-onap.xjb</aai.bindings.source>
39         <commons.io.version>2.8.0</commons.io.version>
40         <!-- End of Default ONAP Schema Properties -->
41     </properties>
42     <dependencies>
43         <dependency>
44             <groupId>javax.xml.bind</groupId>
45             <artifactId>jaxb-api</artifactId>
46             <version>2.3.0</version>
47         </dependency>
48         <dependency>
49             <groupId>org.onap.aai.schema-service</groupId>
50             <artifactId>aai-annotations</artifactId>
51             <version>${project.version}</version>
52         </dependency>
53         <dependency>
54             <groupId>junit</groupId>
55             <artifactId>junit</artifactId>
56             <scope>test</scope>
57         </dependency>
58         <dependency>
59             <groupId>org.jvnet.jaxb2_commons</groupId>
60             <artifactId>jaxb2-basics</artifactId>
61             <version>0.11.1</version>
62             <exclusions>
63                <exclusion>
64                  <groupId>commons-beanutils</groupId>
65                  <artifactId>commons-beanutils</artifactId>
66                </exclusion>
67              </exclusions>
68         </dependency>
69         <dependency>
70             <groupId>com.googlecode.json-simple</groupId>
71             <artifactId>json-simple</artifactId>
72         </dependency>
73         <dependency>
74             <groupId>commons-io</groupId>
75             <artifactId>commons-io</artifactId>
76             <version>${commons.io.version}</version>
77         </dependency>
78     </dependencies>
79     <build>
80         <plugins>
81             <plugin>
82                 <groupId>org.codehaus.mojo</groupId>
83                 <artifactId>jaxb2-maven-plugin</artifactId>
84                 <version>2.5.0</version>
85                 <executions>
86                     <execution>
87                         <id>xjc</id>
88                         <goals>
89                             <goal>xjc</goal>
90                         </goals>
91                         <configuration>
92                             <outputDirectory>${project.build.directory}/generated-sources</outputDirectory>
93                             <sources>
94                                 <source>${aai.xsd.source}</source>
95                             </sources>
96                             <xjbSources>
97                                 <xjbSource>${aai.bindings.source}</xjbSource>
98                             </xjbSources>
99                             <xjcSourceExcludeFilters>
100                                 <filter
101                                         implementation="org.codehaus.mojo.jaxb2.shared.filters.pattern.PatternFileFilter">
102                                     <patterns>
103                                         <pattern>edgetagquery\.xsd</pattern>
104                                     </patterns>
105                                 </filter>
106                             </xjcSourceExcludeFilters>
107                             <extension>true</extension>
108                             <arguments>
109                                 <argument>-Xannotate</argument>
110                                 <argument>-XtoString</argument>
111                             </arguments>
112                         </configuration>
113                     </execution>
114                 </executions>
115                 <dependencies>
116                     <dependency>
117                         <groupId>org.jvnet.jaxb2_commons</groupId>
118                         <artifactId>jaxb2-basics</artifactId>
119                         <version>0.11.1</version>
120                     </dependency>
121                     <dependency>
122                         <groupId>org.jvnet.jaxb2_commons</groupId>
123                         <artifactId>jaxb2-basics-annotate</artifactId>
124                         <version>1.0.2</version>
125                     </dependency>
126                     <dependency>
127                         <groupId>org.onap.aai.schema-service</groupId>
128                         <artifactId>aai-annotations</artifactId>
129                         <version>${project.version}</version>
130                     </dependency>
131                 </dependencies>
132             </plugin>
133             <plugin>
134                 <groupId>org.apache.maven.plugins</groupId>
135                 <artifactId>maven-source-plugin</artifactId>
136             </plugin>
137             <plugin>
138                 <groupId>org.apache.maven.plugins</groupId>
139                 <artifactId>maven-site-plugin</artifactId>
140             </plugin>
141             <plugin>
142                 <groupId>org.apache.maven.plugins</groupId>
143                 <artifactId>maven-deploy-plugin</artifactId>
144             </plugin>
145             <plugin>
146                 <groupId>org.sonatype.plugins</groupId>
147                 <artifactId>nexus-staging-maven-plugin</artifactId>
148             </plugin>
149         </plugins>
150         <resources>
151             <resource>
152                 <directory>src/main/resources</directory>
153                 <filtering>false</filtering>
154                 <includes>
155                     <include>**/*</include>
156                 </includes>
157             </resource>
158         </resources>
159     </build>
160
161     <!-- Start of ONAP Specific Repositories -->
162     <pluginRepositories>
163         <pluginRepository>
164             <id>central</id>
165             <url>https://repo1.maven.org/maven2</url>
166         </pluginRepository>
167         <pluginRepository>
168             <id>EvoSuite</id>
169             <name>EvoSuite Repository</name>
170             <url>https://www.evosuite.org/m2</url>
171         </pluginRepository>
172     </pluginRepositories>
173     <!-- End of ONAP Specific Repositories -->
174 </project>