c9c7545f77aa7ebd14e92e0f9e5256496a98c5d9
[policy/apex-pdp.git] / client / client-editor / pom.xml
1 <!--
2   ============LICENSE_START=======================================================
3    Copyright (C) 2018 Ericsson. All rights reserved.
4    Modifications Copyright (C) 2019-2020 Nordix Foundation.
5    Modifications Copyright (C) 2020 Bell Canada.
6   ================================================================================
7   Licensed under the Apache License, Version 2.0 (the "License");
8   you may not use this file except in compliance with the License.
9   You may obtain a copy of the License at
10
11        http://www.apache.org/licenses/LICENSE-2.0
12
13   Unless required by applicable law or agreed to in writing, software
14   distributed under the License is distributed on an "AS IS" BASIS,
15   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16   See the License for the specific language governing permissions and
17   limitations under the License.
18
19   SPDX-License-Identifier: Apache-2.0
20   ============LICENSE_END=========================================================
21 -->
22 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
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.policy.apex-pdp.client</groupId>
27         <artifactId>apex-client</artifactId>
28         <version>2.3.0-SNAPSHOT</version>
29     </parent>
30
31     <artifactId>apex-client-editor</artifactId>
32     <name>${project.artifactId}</name>
33     <description>Web client for editing Apex policies</description>
34
35     <dependencies>
36         <dependency>
37             <groupId>org.onap.policy.common</groupId>
38             <artifactId>policy-endpoints</artifactId>
39             <exclusions>
40                 <exclusion>
41                     <groupId>org.onap.aaf.authz</groupId>
42                     <artifactId>aaf-cadi-aaf</artifactId>
43                 </exclusion>
44                 <exclusion>
45                     <groupId>com.att.nsa</groupId>
46                     <artifactId>cambriaClient</artifactId>
47                 </exclusion>
48                 <exclusion>
49                     <groupId>org.onap.dmaap.messagerouter.dmaapclient</groupId>
50                     <artifactId>dmaapClient</artifactId>
51                 </exclusion>
52             </exclusions>
53         </dependency>
54         <dependency>
55             <groupId>org.onap.policy.common</groupId>
56             <artifactId>utils</artifactId>
57             <exclusions>
58                 <exclusion>
59                     <groupId>com.worldturner.medeia</groupId>
60                     <artifactId>medeia-validator-gson</artifactId>
61                 </exclusion>
62             </exclusions>
63         </dependency>
64         <dependency>
65             <groupId>org.onap.policy.apex-pdp.model</groupId>
66             <artifactId>model-api</artifactId>
67             <version>${project.version}</version>
68         </dependency>
69         <dependency>
70             <groupId>org.onap.policy.apex-pdp.core</groupId>
71             <artifactId>core-infrastructure</artifactId>
72             <version>${project.version}</version>
73         </dependency>
74         <dependency>
75             <groupId>org.glassfish.jersey.containers</groupId>
76             <artifactId>jersey-container-grizzly2-http</artifactId>
77         </dependency>
78         <dependency>
79             <groupId>org.glassfish.jersey.media</groupId>
80             <artifactId>jersey-media-moxy</artifactId>
81             <exclusions>
82                 <exclusion>
83                     <groupId>org.eclipse.persistence</groupId>
84                     <artifactId>org.eclipse.persistence.moxy</artifactId>
85                 </exclusion>
86             </exclusions>
87         </dependency>
88         <dependency>
89             <groupId>org.glassfish.jersey.test-framework.providers</groupId>
90             <artifactId>jersey-test-framework-provider-grizzly2</artifactId>
91             <scope>test</scope>
92         </dependency>
93         <dependency>
94             <groupId>commons-cli</groupId>
95             <artifactId>commons-cli</artifactId>
96         </dependency>
97         <dependency>
98             <groupId>junit</groupId>
99             <artifactId>junit</artifactId>
100             <scope>test</scope>
101         </dependency>
102         <dependency>
103             <groupId>org.onap.policy.apex-pdp.client</groupId>
104             <artifactId>apex-client-common</artifactId>
105             <version>${project.version}</version>
106             <classifier>resources</classifier>
107             <type>zip</type>
108             <scope>provided</scope>
109         </dependency>
110
111     </dependencies>
112
113     <build>
114         <defaultGoal>install</defaultGoal>
115         <outputDirectory>${project.build.directory}/classes</outputDirectory>
116         <plugins>
117
118 <!-- https://blog.sonatype.com/2008/04/how-to-share-resources-across-projects-in-maven/ -->
119             <plugin>
120                 <groupId>org.apache.maven.plugins</groupId>
121                 <artifactId>maven-dependency-plugin</artifactId>
122                 <executions>
123                     <execution>
124                         <id>unpack-shared-resources</id>
125                         <goals>
126                             <goal>unpack-dependencies</goal>
127                         </goals>
128                         <phase>generate-resources</phase>
129                         <configuration>
130                             <outputDirectory>${project.build.directory}/classes/webapp</outputDirectory>
131        <!--use as much as needed to be specific...also scope,type,classifier etc-->
132                             <includeArtifacIds>apex-client-common</includeArtifacIds>
133                             <includeGroupIds>org.onap.policy.apex-pdp.client</includeGroupIds>
134                             <excludeTransitive>true</excludeTransitive>
135                             <excludeTransitive>true</excludeTransitive>
136                             <excludeTypes>jar</excludeTypes>
137                             <includeTypes>zip</includeTypes>
138                         </configuration>
139                     </execution>
140                 </executions>
141             </plugin>
142             <plugin>
143                 <groupId>org.apache.maven.plugins</groupId>
144                 <artifactId>maven-assembly-plugin</artifactId>
145                 <executions>
146                     <execution>
147                         <id>make shared resources</id>
148                         <goals>
149                             <goal>single</goal>
150                         </goals>
151                         <phase>package</phase>
152                         <configuration>
153                             <descriptors>
154                                 <descriptor>src/main/assembly/resources.xml</descriptor>
155                             </descriptors>
156                         </configuration>
157                     </execution>
158                 </executions>
159             </plugin>
160         </plugins>
161     </build>
162
163     <profiles>
164         <profile>
165             <id>apexSite</id>
166             <activation>
167                 <property>
168                     <name>apexSite</name>
169                 </property>
170             </activation>
171             <distributionManagement>
172                 <site>
173                     <id>${project.artifactId}-site</id>
174                     <url>${apex.adsite.prefix}/modules/${project.parent.artifactId}/${project.artifactId}/</url>
175                 </site>
176             </distributionManagement>
177         </profile>
178     </profiles>
179 </project>