blob: 26eb288bae2183a838b9526118ef204badf2fe19 [file] [log] [blame]
ramverma08b595c2018-07-13 12:32:32 +01001<!--
2 ============LICENSE_START=======================================================
3 Copyright (C) 2018 Ericsson. All rights reserved.
liamfallon9aa62b72020-03-25 12:09:54 +00004 Modifications Copyright (C) 2019-2020 Nordix Foundation.
Ram Krishna Verma8d228522020-02-05 16:31:01 -05005 Modifications Copyright (C) 2020 Bell Canada.
ramverma08b595c2018-07-13 12:32:32 +01006 ================================================================================
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-->
ramvermaea736d02018-11-29 13:47:30 +000022<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">
ramverma08b595c2018-07-13 12:32:32 +010024 <modelVersion>4.0.0</modelVersion>
25 <parent>
26 <groupId>org.onap.policy.apex-pdp.client</groupId>
Ram Krishna Verma8d228522020-02-05 16:31:01 -050027 <artifactId>apex-client</artifactId>
a.sreekumaraa57cf22020-04-15 14:58:52 +010028 <version>2.3.2-SNAPSHOT</version>
ramverma08b595c2018-07-13 12:32:32 +010029 </parent>
30
Ram Krishna Verma8d228522020-02-05 16:31:01 -050031 <artifactId>apex-client-editor</artifactId>
ramverma08b595c2018-07-13 12:32:32 +010032 <name>${project.artifactId}</name>
33 <description>Web client for editing Apex policies</description>
34
35 <dependencies>
36 <dependency>
liamfallonefdaa0d2018-08-03 16:12:01 +010037 <groupId>org.onap.policy.common</groupId>
liamfallond7eda872019-11-04 18:07:20 +000038 <artifactId>policy-endpoints</artifactId>
liamfallon9aa62b72020-03-25 12:09:54 +000039 <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>
liamfallond7eda872019-11-04 18:07:20 +000053 </dependency>
54 <dependency>
55 <groupId>org.onap.policy.common</groupId>
liamfallonefdaa0d2018-08-03 16:12:01 +010056 <artifactId>utils</artifactId>
liamfallon9aa62b72020-03-25 12:09:54 +000057 <exclusions>
58 <exclusion>
59 <groupId>com.worldturner.medeia</groupId>
60 <artifactId>medeia-validator-gson</artifactId>
61 </exclusion>
62 </exclusions>
liamfallonefdaa0d2018-08-03 16:12:01 +010063 </dependency>
64 <dependency>
ramverma08b595c2018-07-13 12:32:32 +010065 <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>
ramverma08b595c2018-07-13 12:32:32 +010075 <groupId>org.glassfish.jersey.containers</groupId>
76 <artifactId>jersey-container-grizzly2-http</artifactId>
ramverma08b595c2018-07-13 12:32:32 +010077 </dependency>
78 <dependency>
79 <groupId>org.glassfish.jersey.media</groupId>
80 <artifactId>jersey-media-moxy</artifactId>
liamfallon9aa62b72020-03-25 12:09:54 +000081 <exclusions>
82 <exclusion>
83 <groupId>org.eclipse.persistence</groupId>
84 <artifactId>org.eclipse.persistence.moxy</artifactId>
85 </exclusion>
86 </exclusions>
ramverma08b595c2018-07-13 12:32:32 +010087 </dependency>
88 <dependency>
liamfallond7eda872019-11-04 18:07:20 +000089 <groupId>org.glassfish.jersey.test-framework.providers</groupId>
90 <artifactId>jersey-test-framework-provider-grizzly2</artifactId>
91 <scope>test</scope>
ramverma08b595c2018-07-13 12:32:32 +010092 </dependency>
93 <dependency>
94 <groupId>commons-cli</groupId>
95 <artifactId>commons-cli</artifactId>
ramverma08b595c2018-07-13 12:32:32 +010096 </dependency>
97 <dependency>
98 <groupId>junit</groupId>
99 <artifactId>junit</artifactId>
100 <scope>test</scope>
101 </dependency>
102 <dependency>
ramvermaea736d02018-11-29 13:47:30 +0000103 <groupId>org.onap.policy.apex-pdp.client</groupId>
Ram Krishna Verma8d228522020-02-05 16:31:01 -0500104 <artifactId>apex-client-common</artifactId>
ramvermaea736d02018-11-29 13:47:30 +0000105 <version>${project.version}</version>
106 <classifier>resources</classifier>
107 <type>zip</type>
108 <scope>provided</scope>
109 </dependency>
110
ramverma08b595c2018-07-13 12:32:32 +0100111 </dependencies>
112
113 <build>
114 <defaultGoal>install</defaultGoal>
115 <outputDirectory>${project.build.directory}/classes</outputDirectory>
116 <plugins>
ramvermaea736d02018-11-29 13:47:30 +0000117
118<!-- https://blog.sonatype.com/2008/04/how-to-share-resources-across-projects-in-maven/ -->
ramverma08b595c2018-07-13 12:32:32 +0100119 <plugin>
120 <groupId>org.apache.maven.plugins</groupId>
121 <artifactId>maven-dependency-plugin</artifactId>
122 <executions>
123 <execution>
ramvermaea736d02018-11-29 13:47:30 +0000124 <id>unpack-shared-resources</id>
liamfallon32497612018-11-10 00:39:12 +0000125 <goals>
ramvermaea736d02018-11-29 13:47:30 +0000126 <goal>unpack-dependencies</goal>
liamfallon32497612018-11-10 00:39:12 +0000127 </goals>
ramvermaea736d02018-11-29 13:47:30 +0000128 <phase>generate-resources</phase>
ramverma08b595c2018-07-13 12:32:32 +0100129 <configuration>
ramvermaea736d02018-11-29 13:47:30 +0000130 <outputDirectory>${project.build.directory}/classes/webapp</outputDirectory>
131 <!--use as much as needed to be specific...also scope,type,classifier etc-->
Ram Krishna Verma8d228522020-02-05 16:31:01 -0500132 <includeArtifacIds>apex-client-common</includeArtifacIds>
ramvermaea736d02018-11-29 13:47:30 +0000133 <includeGroupIds>org.onap.policy.apex-pdp.client</includeGroupIds>
134 <excludeTransitive>true</excludeTransitive>
135 <excludeTransitive>true</excludeTransitive>
136 <excludeTypes>jar</excludeTypes>
137 <includeTypes>zip</includeTypes>
ramverma08b595c2018-07-13 12:32:32 +0100138 </configuration>
139 </execution>
140 </executions>
141 </plugin>
huaxing649740c2020-04-07 11:57:57 +0800142 <!-- Editor's css overrides common css -->
143 <plugin>
144 <groupId>org.apache.maven.plugins</groupId>
145 <artifactId>maven-resources-plugin</artifactId>
146 <configuration>
147 <overwrite>true</overwrite>
148 </configuration>
149 </plugin>
ramvermaea736d02018-11-29 13:47:30 +0000150 <plugin>
151 <groupId>org.apache.maven.plugins</groupId>
152 <artifactId>maven-assembly-plugin</artifactId>
153 <executions>
154 <execution>
155 <id>make shared resources</id>
156 <goals>
157 <goal>single</goal>
158 </goals>
159 <phase>package</phase>
160 <configuration>
161 <descriptors>
162 <descriptor>src/main/assembly/resources.xml</descriptor>
163 </descriptors>
164 </configuration>
165 </execution>
166 </executions>
167 </plugin>
ramverma08b595c2018-07-13 12:32:32 +0100168 </plugins>
169 </build>
Dinh Danh Leba229772018-08-22 18:02:01 +0100170
171 <profiles>
172 <profile>
173 <id>apexSite</id>
174 <activation>
175 <property>
176 <name>apexSite</name>
177 </property>
178 </activation>
179 <distributionManagement>
180 <site>
181 <id>${project.artifactId}-site</id>
182 <url>${apex.adsite.prefix}/modules/${project.parent.artifactId}/${project.artifactId}/</url>
183 </site>
184 </distributionManagement>
185 </profile>
186 </profiles>
liamfallon41712562019-11-01 11:47:21 +0000187</project>