ramverma | 08b595c | 2018-07-13 12:32:32 +0100 | [diff] [blame] | 1 | <!-- |
| 2 | ============LICENSE_START======================================================= |
| 3 | Copyright (C) 2018 Ericsson. All rights reserved. |
liamfallon | 4171256 | 2019-11-01 11:47:21 +0000 | [diff] [blame] | 4 | Modifications Copyright (C) 2019 Nordix Foundation. |
ramverma | 08b595c | 2018-07-13 12:32:32 +0100 | [diff] [blame] | 5 | ================================================================================ |
| 6 | Licensed under the Apache License, Version 2.0 (the "License"); |
| 7 | you may not use this file except in compliance with the License. |
| 8 | You may obtain a copy of the License at |
| 9 | |
| 10 | http://www.apache.org/licenses/LICENSE-2.0 |
| 11 | |
| 12 | Unless required by applicable law or agreed to in writing, software |
| 13 | distributed under the License is distributed on an "AS IS" BASIS, |
| 14 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 15 | See the License for the specific language governing permissions and |
| 16 | limitations under the License. |
| 17 | |
| 18 | SPDX-License-Identifier: Apache-2.0 |
| 19 | ============LICENSE_END========================================================= |
| 20 | --> |
ramverma | ea736d0 | 2018-11-29 13:47:30 +0000 | [diff] [blame] | 21 | <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| 22 | xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> |
ramverma | 08b595c | 2018-07-13 12:32:32 +0100 | [diff] [blame] | 23 | <modelVersion>4.0.0</modelVersion> |
| 24 | <parent> |
| 25 | <groupId>org.onap.policy.apex-pdp.client</groupId> |
| 26 | <artifactId>client</artifactId> |
jrh3 | d7d9df6 | 2019-09-12 10:07:06 -0400 | [diff] [blame] | 27 | <version>2.3.0-SNAPSHOT</version> |
ramverma | 08b595c | 2018-07-13 12:32:32 +0100 | [diff] [blame] | 28 | </parent> |
| 29 | |
| 30 | <artifactId>client-editor</artifactId> |
| 31 | <name>${project.artifactId}</name> |
| 32 | <description>Web client for editing Apex policies</description> |
| 33 | |
| 34 | <dependencies> |
| 35 | <dependency> |
liamfallon | efdaa0d | 2018-08-03 16:12:01 +0100 | [diff] [blame] | 36 | <groupId>org.onap.policy.common</groupId> |
liamfallon | d7eda87 | 2019-11-04 18:07:20 +0000 | [diff] [blame] | 37 | <artifactId>policy-endpoints</artifactId> |
| 38 | </dependency> |
| 39 | <dependency> |
| 40 | <groupId>org.onap.policy.common</groupId> |
liamfallon | efdaa0d | 2018-08-03 16:12:01 +0100 | [diff] [blame] | 41 | <artifactId>utils</artifactId> |
| 42 | </dependency> |
| 43 | <dependency> |
ramverma | 08b595c | 2018-07-13 12:32:32 +0100 | [diff] [blame] | 44 | <groupId>org.onap.policy.apex-pdp.model</groupId> |
| 45 | <artifactId>model-api</artifactId> |
| 46 | <version>${project.version}</version> |
| 47 | </dependency> |
| 48 | <dependency> |
| 49 | <groupId>org.onap.policy.apex-pdp.core</groupId> |
| 50 | <artifactId>core-infrastructure</artifactId> |
| 51 | <version>${project.version}</version> |
| 52 | </dependency> |
| 53 | <dependency> |
ramverma | 08b595c | 2018-07-13 12:32:32 +0100 | [diff] [blame] | 54 | <groupId>org.glassfish.jersey.containers</groupId> |
| 55 | <artifactId>jersey-container-grizzly2-http</artifactId> |
ramverma | 08b595c | 2018-07-13 12:32:32 +0100 | [diff] [blame] | 56 | </dependency> |
| 57 | <dependency> |
| 58 | <groupId>org.glassfish.jersey.media</groupId> |
| 59 | <artifactId>jersey-media-moxy</artifactId> |
ramverma | 08b595c | 2018-07-13 12:32:32 +0100 | [diff] [blame] | 60 | </dependency> |
| 61 | <dependency> |
liamfallon | d7eda87 | 2019-11-04 18:07:20 +0000 | [diff] [blame] | 62 | <groupId>org.glassfish.jersey.test-framework.providers</groupId> |
| 63 | <artifactId>jersey-test-framework-provider-grizzly2</artifactId> |
| 64 | <scope>test</scope> |
ramverma | 08b595c | 2018-07-13 12:32:32 +0100 | [diff] [blame] | 65 | </dependency> |
| 66 | <dependency> |
| 67 | <groupId>commons-cli</groupId> |
| 68 | <artifactId>commons-cli</artifactId> |
ramverma | 08b595c | 2018-07-13 12:32:32 +0100 | [diff] [blame] | 69 | </dependency> |
| 70 | <dependency> |
| 71 | <groupId>junit</groupId> |
| 72 | <artifactId>junit</artifactId> |
| 73 | <scope>test</scope> |
| 74 | </dependency> |
| 75 | <dependency> |
ramverma | ea736d0 | 2018-11-29 13:47:30 +0000 | [diff] [blame] | 76 | <groupId>org.onap.policy.apex-pdp.client</groupId> |
| 77 | <artifactId>client-common</artifactId> |
| 78 | <version>${project.version}</version> |
| 79 | <classifier>resources</classifier> |
| 80 | <type>zip</type> |
| 81 | <scope>provided</scope> |
| 82 | </dependency> |
| 83 | |
ramverma | 08b595c | 2018-07-13 12:32:32 +0100 | [diff] [blame] | 84 | </dependencies> |
| 85 | |
| 86 | <build> |
| 87 | <defaultGoal>install</defaultGoal> |
| 88 | <outputDirectory>${project.build.directory}/classes</outputDirectory> |
| 89 | <plugins> |
ramverma | ea736d0 | 2018-11-29 13:47:30 +0000 | [diff] [blame] | 90 | |
| 91 | <!-- https://blog.sonatype.com/2008/04/how-to-share-resources-across-projects-in-maven/ --> |
ramverma | 08b595c | 2018-07-13 12:32:32 +0100 | [diff] [blame] | 92 | <plugin> |
| 93 | <groupId>org.apache.maven.plugins</groupId> |
| 94 | <artifactId>maven-dependency-plugin</artifactId> |
| 95 | <executions> |
| 96 | <execution> |
ramverma | ea736d0 | 2018-11-29 13:47:30 +0000 | [diff] [blame] | 97 | <id>unpack-shared-resources</id> |
liamfallon | 3249761 | 2018-11-10 00:39:12 +0000 | [diff] [blame] | 98 | <goals> |
ramverma | ea736d0 | 2018-11-29 13:47:30 +0000 | [diff] [blame] | 99 | <goal>unpack-dependencies</goal> |
liamfallon | 3249761 | 2018-11-10 00:39:12 +0000 | [diff] [blame] | 100 | </goals> |
ramverma | ea736d0 | 2018-11-29 13:47:30 +0000 | [diff] [blame] | 101 | <phase>generate-resources</phase> |
ramverma | 08b595c | 2018-07-13 12:32:32 +0100 | [diff] [blame] | 102 | <configuration> |
ramverma | ea736d0 | 2018-11-29 13:47:30 +0000 | [diff] [blame] | 103 | <outputDirectory>${project.build.directory}/classes/webapp</outputDirectory> |
| 104 | <!--use as much as needed to be specific...also scope,type,classifier etc--> |
| 105 | <includeArtifacIds>client-common</includeArtifacIds> |
| 106 | <includeGroupIds>org.onap.policy.apex-pdp.client</includeGroupIds> |
| 107 | <excludeTransitive>true</excludeTransitive> |
| 108 | <excludeTransitive>true</excludeTransitive> |
| 109 | <excludeTypes>jar</excludeTypes> |
| 110 | <includeTypes>zip</includeTypes> |
ramverma | 08b595c | 2018-07-13 12:32:32 +0100 | [diff] [blame] | 111 | </configuration> |
| 112 | </execution> |
| 113 | </executions> |
| 114 | </plugin> |
ramverma | ea736d0 | 2018-11-29 13:47:30 +0000 | [diff] [blame] | 115 | <plugin> |
| 116 | <groupId>org.apache.maven.plugins</groupId> |
| 117 | <artifactId>maven-assembly-plugin</artifactId> |
| 118 | <executions> |
| 119 | <execution> |
| 120 | <id>make shared resources</id> |
| 121 | <goals> |
| 122 | <goal>single</goal> |
| 123 | </goals> |
| 124 | <phase>package</phase> |
| 125 | <configuration> |
| 126 | <descriptors> |
| 127 | <descriptor>src/main/assembly/resources.xml</descriptor> |
| 128 | </descriptors> |
| 129 | </configuration> |
| 130 | </execution> |
| 131 | </executions> |
| 132 | </plugin> |
| 133 | |
liamfallon | 3249761 | 2018-11-10 00:39:12 +0000 | [diff] [blame] | 134 | |
liamfallon | a41c877 | 2018-09-05 15:46:31 +0100 | [diff] [blame] | 135 | <plugin> |
| 136 | <groupId>org.apache.maven.plugins</groupId> |
ramverma | 08b595c | 2018-07-13 12:32:32 +0100 | [diff] [blame] | 137 | <artifactId>maven-shade-plugin</artifactId> |
| 138 | <executions> |
| 139 | <execution> |
| 140 | <phase>package</phase> |
| 141 | <goals> |
| 142 | <goal>shade</goal> |
| 143 | </goals> |
| 144 | </execution> |
| 145 | </executions> |
| 146 | <configuration> |
| 147 | <finalName>${project.artifactId}-uber-${project.version}</finalName> |
| 148 | <shadedArtifactAttached>true</shadedArtifactAttached> |
| 149 | <shadedClassifierName>editor</shadedClassifierName> |
| 150 | <artifactSet> |
| 151 | <includes> |
| 152 | <include>*:*</include> |
| 153 | </includes> |
| 154 | </artifactSet> |
| 155 | <filters> |
| 156 | <filter> |
| 157 | <artifact>*:*</artifact> |
| 158 | <excludes> |
| 159 | <exclude>META-INF/*.SF</exclude> |
| 160 | <exclude>META-INF/*.DSA</exclude> |
| 161 | <exclude>META-INF/*.RSA</exclude> |
| 162 | </excludes> |
| 163 | </filter> |
| 164 | </filters> |
| 165 | <transformers> |
ramverma | ea736d0 | 2018-11-29 13:47:30 +0000 | [diff] [blame] | 166 | <transformer |
| 167 | implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer" /> |
| 168 | <transformer |
| 169 | implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer"> |
ramverma | 08b595c | 2018-07-13 12:32:32 +0100 | [diff] [blame] | 170 | <resource>reference.conf</resource> |
| 171 | </transformer> |
ramverma | ea736d0 | 2018-11-29 13:47:30 +0000 | [diff] [blame] | 172 | <transformer |
| 173 | implementation="org.apache.maven.plugins.shade.resource.DontIncludeResourceTransformer"> |
ramverma | 08b595c | 2018-07-13 12:32:32 +0100 | [diff] [blame] | 174 | <resource>log4j.properties</resource> |
| 175 | </transformer> |
ramverma | ea736d0 | 2018-11-29 13:47:30 +0000 | [diff] [blame] | 176 | <transformer |
| 177 | implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer"> |
ramverma | 08b595c | 2018-07-13 12:32:32 +0100 | [diff] [blame] | 178 | <mainClass>org.onap.policy.apex.client.editor.rest.ApexEditorMain</mainClass> |
| 179 | </transformer> |
| 180 | </transformers> |
| 181 | </configuration> |
| 182 | </plugin> |
| 183 | <plugin> |
| 184 | <groupId>org.apache.maven.plugins</groupId> |
| 185 | <artifactId>maven-war-plugin</artifactId> |
| 186 | <configuration> |
| 187 | <classifier>ui</classifier> |
| 188 | <warSourceDirectory>src/main/resources/webapp</warSourceDirectory> |
| 189 | <webXml>src/main/resources/webapp/WEB-INF/web.xml</webXml> |
| 190 | </configuration> |
| 191 | <executions> |
| 192 | <execution> |
| 193 | <phase>prepare-package</phase> |
| 194 | <goals> |
| 195 | <goal>war</goal> |
| 196 | </goals> |
| 197 | </execution> |
| 198 | </executions> |
| 199 | </plugin> |
| 200 | <plugin> |
| 201 | <groupId>org.codehaus.mojo</groupId> |
| 202 | <artifactId>build-helper-maven-plugin</artifactId> |
| 203 | <version>3.0.0</version> |
| 204 | <executions> |
| 205 | <execution> |
| 206 | <id>attach-artifacts</id> |
| 207 | <phase>package</phase> |
| 208 | <goals> |
| 209 | <goal>attach-artifact</goal> |
| 210 | </goals> |
| 211 | <configuration> |
| 212 | <artifacts> |
| 213 | <artifact> |
| 214 | <file>${project.build.directory}/${project.artifactId}-${project.version}-ui.war</file> |
| 215 | <type>war</type> |
| 216 | </artifact> |
| 217 | <artifact> |
| 218 | <file>${project.build.directory}/${project.artifactId}-uber-${project.version}.jar</file> |
| 219 | <type>uber.jar</type> |
| 220 | </artifact> |
| 221 | </artifacts> |
| 222 | </configuration> |
| 223 | </execution> |
| 224 | </executions> |
| 225 | </plugin> |
| 226 | </plugins> |
| 227 | </build> |
Dinh Danh Le | ba22977 | 2018-08-22 18:02:01 +0100 | [diff] [blame] | 228 | |
| 229 | <profiles> |
| 230 | <profile> |
| 231 | <id>apexSite</id> |
| 232 | <activation> |
| 233 | <property> |
| 234 | <name>apexSite</name> |
| 235 | </property> |
| 236 | </activation> |
| 237 | <distributionManagement> |
| 238 | <site> |
| 239 | <id>${project.artifactId}-site</id> |
| 240 | <url>${apex.adsite.prefix}/modules/${project.parent.artifactId}/${project.artifactId}/</url> |
| 241 | </site> |
| 242 | </distributionManagement> |
| 243 | </profile> |
| 244 | </profiles> |
liamfallon | 4171256 | 2019-11-01 11:47:21 +0000 | [diff] [blame] | 245 | </project> |