Merge "Fix issues from Checkstyle reviews"
[policy/apex-pdp.git] / plugins / plugins-event / plugins-event-protocol / plugins-event-protocol-xml / pom.xml
1 <!--
2   ============LICENSE_START=======================================================
3    Copyright (C) 2018 Ericsson. All rights reserved.
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 <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">
21     <modelVersion>4.0.0</modelVersion>
22     <parent>
23         <groupId>org.onap.policy.apex-pdp.plugins.plugins-event.plugins-event-protocol</groupId>
24         <artifactId>plugins-event-protocol</artifactId>
25         <version>2.2.1-SNAPSHOT</version>
26     </parent>
27
28     <artifactId>plugins-event-protocol-xml</artifactId>
29     <name>${project.artifactId}</name>
30     <description>[${project.parent.artifactId}] Plugin for handling events that are being transported in XML format</description>
31
32     <properties>
33         <apex-plugins-event-protocol-xml-dir>${project.basedir}/src</apex-plugins-event-protocol-xml-dir>
34     </properties>
35
36     <dependencies>
37         <dependency>
38             <groupId>org.onap.policy.common</groupId>
39             <artifactId>utils</artifactId>
40         </dependency>
41         <dependency>
42             <groupId>org.eclipse.persistence</groupId>
43             <artifactId>eclipselink</artifactId>
44         </dependency>
45         <dependency>
46             <groupId>org.jvnet.jaxb2_commons</groupId>
47             <artifactId>jaxb2-basics-runtime</artifactId>
48             <version>1.11.1</version>
49         </dependency>
50     </dependencies>
51
52     <build>
53         <plugins>
54             <plugin>
55                 <groupId>org.jvnet.jaxb2.maven2</groupId>
56                 <artifactId>maven-jaxb2-plugin</artifactId>
57                 <version>0.13.2</version>
58                 <configuration>
59                     <schemaDirectory>src/main/resources/xml</schemaDirectory>
60                     <schemaFiles>apex-event.xsd</schemaFiles>
61                     <bindingDirectory>src/main/resources/xml</bindingDirectory>
62                     <bindingFiles>apex-event.xjb</bindingFiles>
63                     <generatePackage>org.onap.policy.apex.plugins.event.protocol.xml.jaxb</generatePackage>
64                     <extension>true</extension>
65                     <addGeneratedAnnotation>true</addGeneratedAnnotation>
66                     <readOnly>true</readOnly>
67                     <verbose>true</verbose>
68                     <plugins>
69                         <plugin>
70                             <groupId>org.jvnet.jaxb2_commons</groupId>
71                             <artifactId>jaxb2-basics</artifactId>
72                             <version>1.11.1</version>
73                         </plugin>
74                         <plugin>
75                             <groupId>org.jvnet.jaxb2_commons</groupId>
76                             <artifactId>jaxb2-basics-annotate</artifactId>
77                             <version>1.0.2</version>
78                         </plugin>
79                         <plugin>
80                             <groupId>org.jvnet.jaxb2_commons</groupId>
81                             <artifactId>jaxb2-value-constructor</artifactId>
82                             <version>3.0</version>
83                         </plugin>
84                     </plugins>
85                     <args>
86                         <arg>-Xannotate</arg>
87                         <arg>-XtoString</arg>
88                         <arg>-Xmergeable</arg>
89                         <arg>-Xcopyable</arg>
90                         <arg>-Xequals</arg>
91                         <arg>-XhashCode</arg>
92                         <arg>-Xvalue-constructor</arg>
93                     </args>
94                 </configuration>
95                 <executions>
96                     <execution>
97                         <id>generate</id>
98                         <goals>
99                             <goal>generate</goal>
100                         </goals>
101                     </execution>
102                 </executions>
103             </plugin>
104         </plugins>
105     </build>
106
107     <profiles>
108         <profile>
109             <id>apexSite</id>
110             <activation>
111                 <property>
112                     <name>apexSite</name>
113                 </property>
114             </activation>
115             <properties>
116                 <adsite-plugins-event-protocol-xml-dir>${project.basedir}/src</adsite-plugins-event-protocol-xml-dir>
117             </properties>
118             <distributionManagement>
119                 <site>
120                     <id>${project.artifactId}-site</id>
121                     <url>${apex.adsite.prefix}/modules/plugins/plugins-event/${project.parent.artifactId}/${project.artifactId}/</url>
122                 </site>
123             </distributionManagement>
124         </profile>
125     </profiles>
126 </project>