ramverma | 08b595c | 2018-07-13 12:32:32 +0100 | [diff] [blame^] | 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" |
| 21 | xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> |
| 22 | <modelVersion>4.0.0</modelVersion> |
| 23 | <parent> |
| 24 | <groupId>org.onap.policy.apex-pdp.client</groupId> |
| 25 | <artifactId>client</artifactId> |
| 26 | <version>2.0.0-SNAPSHOT</version> |
| 27 | </parent> |
| 28 | |
| 29 | <artifactId>client-editor</artifactId> |
| 30 | <name>${project.artifactId}</name> |
| 31 | <description>Web client for editing Apex policies</description> |
| 32 | |
| 33 | <dependencies> |
| 34 | <dependency> |
| 35 | <groupId>org.onap.policy.apex-pdp.model</groupId> |
| 36 | <artifactId>model-api</artifactId> |
| 37 | <version>${project.version}</version> |
| 38 | </dependency> |
| 39 | <dependency> |
| 40 | <groupId>org.onap.policy.apex-pdp.core</groupId> |
| 41 | <artifactId>core-infrastructure</artifactId> |
| 42 | <version>${project.version}</version> |
| 43 | </dependency> |
| 44 | <dependency> |
| 45 | <groupId>org.onap.policy.apex-pdp.client</groupId> |
| 46 | <artifactId>client-common</artifactId> |
| 47 | <version>${project.version}</version> |
| 48 | <classifier>resources</classifier> |
| 49 | <type>zip</type> |
| 50 | <scope>provided</scope> |
| 51 | </dependency> |
| 52 | <dependency> |
| 53 | <groupId>org.glassfish.jersey.containers</groupId> |
| 54 | <artifactId>jersey-container-grizzly2-http</artifactId> |
| 55 | <version>${version.jersey}</version> |
| 56 | </dependency> |
| 57 | <dependency> |
| 58 | <groupId>org.glassfish.jersey.media</groupId> |
| 59 | <artifactId>jersey-media-moxy</artifactId> |
| 60 | <version>${version.jersey}</version> |
| 61 | </dependency> |
| 62 | <dependency> |
| 63 | <groupId>org.glassfish.jersey.containers</groupId> |
| 64 | <artifactId>jersey-container-servlet-core</artifactId> |
| 65 | <version>${version.jersey}</version> |
| 66 | </dependency> |
| 67 | <dependency> |
| 68 | <groupId>org.glassfish.jersey.inject</groupId> |
| 69 | <artifactId>jersey-hk2</artifactId> |
| 70 | <version>${version.jersey}</version> |
| 71 | </dependency> |
| 72 | <dependency> |
| 73 | <groupId>commons-cli</groupId> |
| 74 | <artifactId>commons-cli</artifactId> |
| 75 | <version>${version.commons-cli}</version> |
| 76 | </dependency> |
| 77 | <dependency> |
| 78 | <groupId>junit</groupId> |
| 79 | <artifactId>junit</artifactId> |
| 80 | <scope>test</scope> |
| 81 | </dependency> |
| 82 | <dependency> |
| 83 | <groupId>org.glassfish.jersey.test-framework</groupId> |
| 84 | <artifactId>jersey-test-framework-core</artifactId> |
| 85 | <version>${version.jersey}</version> |
| 86 | <scope>test</scope> |
| 87 | </dependency> |
| 88 | <dependency> |
| 89 | <groupId>org.glassfish.jersey.test-framework.providers</groupId> |
| 90 | <artifactId>jersey-test-framework-provider-grizzly2</artifactId> |
| 91 | <version>${version.jersey}</version> |
| 92 | <scope>test</scope> |
| 93 | </dependency> |
| 94 | </dependencies> |
| 95 | |
| 96 | <build> |
| 97 | <defaultGoal>install</defaultGoal> |
| 98 | <outputDirectory>${project.build.directory}/classes</outputDirectory> |
| 99 | <plugins> |
| 100 | <plugin> |
| 101 | <groupId>org.apache.maven.plugins</groupId> |
| 102 | <artifactId>maven-dependency-plugin</artifactId> |
| 103 | <executions> |
| 104 | <execution> |
| 105 | <id>unpack-client-editor-shared-resources</id> |
| 106 | <goals> |
| 107 | <goal>unpack-dependencies</goal> |
| 108 | </goals> |
| 109 | <phase>generate-resources</phase> |
| 110 | <configuration> |
| 111 | <outputDirectory>${project.build.directory}/${project.artifactId}-${project.version}</outputDirectory> |
| 112 | <includeArtifacIds>client-common</includeArtifacIds> |
| 113 | <includeGroupIds>${project.groupId}</includeGroupIds> |
| 114 | <excludeTransitive>true</excludeTransitive> |
| 115 | </configuration> |
| 116 | </execution> |
| 117 | </executions> |
| 118 | </plugin> |
| 119 | <plugin> |
| 120 | <groupId>org.apache.maven.plugins</groupId> |
| 121 | <artifactId>maven-shade-plugin</artifactId> |
| 122 | <executions> |
| 123 | <execution> |
| 124 | <phase>package</phase> |
| 125 | <goals> |
| 126 | <goal>shade</goal> |
| 127 | </goals> |
| 128 | </execution> |
| 129 | </executions> |
| 130 | <configuration> |
| 131 | <finalName>${project.artifactId}-uber-${project.version}</finalName> |
| 132 | <shadedArtifactAttached>true</shadedArtifactAttached> |
| 133 | <shadedClassifierName>editor</shadedClassifierName> |
| 134 | <artifactSet> |
| 135 | <includes> |
| 136 | <include>*:*</include> |
| 137 | </includes> |
| 138 | </artifactSet> |
| 139 | <filters> |
| 140 | <filter> |
| 141 | <artifact>*:*</artifact> |
| 142 | <excludes> |
| 143 | <exclude>META-INF/*.SF</exclude> |
| 144 | <exclude>META-INF/*.DSA</exclude> |
| 145 | <exclude>META-INF/*.RSA</exclude> |
| 146 | </excludes> |
| 147 | </filter> |
| 148 | </filters> |
| 149 | <transformers> |
| 150 | <transformer |
| 151 | implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer" /> |
| 152 | <transformer |
| 153 | implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer"> |
| 154 | <resource>reference.conf</resource> |
| 155 | </transformer> |
| 156 | <transformer |
| 157 | implementation="org.apache.maven.plugins.shade.resource.DontIncludeResourceTransformer"> |
| 158 | <resource>log4j.properties</resource> |
| 159 | </transformer> |
| 160 | <transformer |
| 161 | implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer"> |
| 162 | <mainClass>org.onap.policy.apex.client.editor.rest.ApexEditorMain</mainClass> |
| 163 | </transformer> |
| 164 | </transformers> |
| 165 | </configuration> |
| 166 | </plugin> |
| 167 | <plugin> |
| 168 | <groupId>org.apache.maven.plugins</groupId> |
| 169 | <artifactId>maven-war-plugin</artifactId> |
| 170 | <configuration> |
| 171 | <classifier>ui</classifier> |
| 172 | <warSourceDirectory>src/main/resources/webapp</warSourceDirectory> |
| 173 | <webXml>src/main/resources/webapp/WEB-INF/web.xml</webXml> |
| 174 | </configuration> |
| 175 | <executions> |
| 176 | <execution> |
| 177 | <phase>prepare-package</phase> |
| 178 | <goals> |
| 179 | <goal>war</goal> |
| 180 | </goals> |
| 181 | </execution> |
| 182 | </executions> |
| 183 | </plugin> |
| 184 | <plugin> |
| 185 | <groupId>org.codehaus.mojo</groupId> |
| 186 | <artifactId>build-helper-maven-plugin</artifactId> |
| 187 | <version>3.0.0</version> |
| 188 | <executions> |
| 189 | <execution> |
| 190 | <id>attach-artifacts</id> |
| 191 | <phase>package</phase> |
| 192 | <goals> |
| 193 | <goal>attach-artifact</goal> |
| 194 | </goals> |
| 195 | <configuration> |
| 196 | <artifacts> |
| 197 | <artifact> |
| 198 | <file>${project.build.directory}/${project.artifactId}-${project.version}-ui.war</file> |
| 199 | <type>war</type> |
| 200 | </artifact> |
| 201 | <artifact> |
| 202 | <file>${project.build.directory}/${project.artifactId}-uber-${project.version}.jar</file> |
| 203 | <type>uber.jar</type> |
| 204 | </artifact> |
| 205 | </artifacts> |
| 206 | </configuration> |
| 207 | </execution> |
| 208 | </executions> |
| 209 | </plugin> |
| 210 | </plugins> |
| 211 | </build> |
| 212 | </project> |