d12f223a201b891264f8545d3f58d98d79dd42ef
[policy/apex-pdp.git] / model / basic-model / pom.xml
1 <!--
2   ============LICENSE_START=======================================================
3    Copyright (c) 2020 Nordix Foundation.
4   ================================================================================
5   Licensed under the Apache License, Version 2.0 (the "License");
6   you may not use this file except in compliance with the License.
7   You may obtain a copy of the License at
8
9        http://www.apache.org/licenses/LICENSE-2.0
10
11   Unless required by applicable law or agreed to in writing, software
12   distributed under the License is distributed on an "AS IS" BASIS,
13   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14   See the License for the specific language governing permissions and
15   limitations under the License.
16
17   SPDX-License-Identifier: Apache-2.0
18   ============LICENSE_END=========================================================
19 -->
20
21 <project
22     xmlns="http://maven.apache.org/POM/4.0.0"
23     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
24     xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
25     <modelVersion>4.0.0</modelVersion>
26
27     <parent>
28         <groupId>org.onap.policy.apex-pdp.model</groupId>
29         <artifactId>model</artifactId>
30         <version>2.4.1-SNAPSHOT</version>
31     </parent>
32
33     <artifactId>basic-model</artifactId>
34     <name>${project.artifactId}</name>
35     <description>Basic Models used and model handling in Apex</description>
36     <properties>
37         <sonar.exclusions>
38             **/package-info.java,
39             **/TestApexModel.java,
40             **/TestApexModelCreator.java
41         </sonar.exclusions>
42     </properties>
43
44     <dependencies>
45         <dependency>
46             <groupId>org.onap.policy.common</groupId>
47             <artifactId>utils</artifactId>
48         </dependency>
49         <dependency>
50             <groupId>org.onap.policy.apex-pdp.model</groupId>
51             <artifactId>utilities</artifactId>
52             <version>${project.version}</version>
53         </dependency>
54         <dependency>
55             <groupId>org.eclipse.persistence</groupId>
56             <artifactId>eclipselink</artifactId>
57         </dependency>
58         <dependency>
59             <groupId>javax.xml.bind</groupId>
60             <artifactId>jaxb-api</artifactId>
61             <version>${version.javax.bind}</version>
62         </dependency>
63         <dependency>
64             <groupId>org.glassfish.jaxb</groupId>
65             <artifactId>jaxb-runtime</artifactId>
66             <version>${version.javax.bind}</version>
67         </dependency>
68         <dependency>
69             <groupId>org.glassfish</groupId>
70             <artifactId>javax.json</artifactId>
71             <version>${version.javax.json}</version>
72         </dependency>
73         <dependency>
74             <groupId>javax.json</groupId>
75             <artifactId>javax.json-api</artifactId>
76             <version>${version.javax.json}</version>
77         </dependency>
78         <dependency>
79             <groupId>org.mockito</groupId>
80             <artifactId>mockito-all</artifactId>
81             <scope>test</scope>
82         </dependency>
83     </dependencies>
84
85     <build>
86         <plugins>
87             <plugin>
88                 <groupId>org.codehaus.mojo</groupId>
89                 <artifactId>exec-maven-plugin</artifactId>
90                 <executions>
91                     <execution>
92                         <id>generate-xml-schema</id>
93                         <phase>process-classes</phase>
94                         <goals>
95                             <goal>java</goal>
96                         </goals>
97                         <configuration>
98                             <mainClass>org.onap.policy.apex.model.basicmodel.handling.ApexSchemaGenerator</mainClass>
99                             <classpathScope>compile</classpathScope>
100                             <arguments>
101                                 <argument>org.onap.policy.apex.model.basicmodel.concepts.AxModel</argument>
102                                 <argument>${project.build.directory}/model/xml/apex-basic-model.xsd</argument>
103                             </arguments>
104                         </configuration>
105                     </execution>
106                 </executions>
107             </plugin>
108         </plugins>
109     </build>
110
111     <profiles>
112         <profile>
113             <id>apexSite</id>
114             <activation>
115                 <property>
116                     <name>apexSite</name>
117                 </property>
118             </activation>
119             <distributionManagement>
120                 <site>
121                     <id>${project.artifactId}-site</id>
122                     <url>${apex.adsite.prefix}/modules/${project.parent.artifactId}/${project.artifactId}/</url>
123                 </site>
124             </distributionManagement>
125         </profile>
126     </profiles>
127 </project>