2 ============LICENSE_START=======================================================
4 ================================================================================
5 Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
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
11 http://www.apache.org/licenses/LICENSE-2.0
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 ============LICENSE_END=========================================================
21 <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">
23 <modelVersion>4.0.0</modelVersion>
26 <groupId>org.onap.policy.engine</groupId>
27 <artifactId>packages</artifactId>
28 <version>1.4.0-SNAPSHOT</version>
31 <artifactId>base</artifactId>
32 <packaging>pom</packaging>
34 <name>Base Package</name>
35 <description>D2 ONAP Policy Base Packaging</description>
40 <groupId>org.apache.maven.plugins</groupId>
41 <artifactId>maven-dependency-plugin</artifactId>
45 <phase>prepare-package</phase>
50 <outputDirectory>${project.build.directory}/pdp/webapps</outputDirectory>
51 <overWriteReleases>false</overWriteReleases>
52 <overWriteSnapshots>true</overWriteSnapshots>
55 <groupId>org.onap.policy.engine</groupId>
56 <artifactId>ONAP-PDP-REST</artifactId>
57 <version>${project.version}</version>
59 <destFileName>pdp.war</destFileName>
66 <phase>prepare-package</phase>
71 <outputDirectory>${project.build.directory}/pap/webapps</outputDirectory>
72 <overWriteReleases>false</overWriteReleases>
73 <overWriteSnapshots>true</overWriteSnapshots>
76 <groupId>org.onap.policy.engine</groupId>
77 <artifactId>ONAP-PAP-REST</artifactId>
78 <version>${project.version}</version>
80 <destFileName>pap.war</destFileName>
87 <phase>prepare-package</phase>
92 <outputDirectory>${project.build.directory}/console/webapps</outputDirectory>
93 <overWriteReleases>false</overWriteReleases>
94 <overWriteSnapshots>true</overWriteSnapshots>
97 <groupId>org.onap.policy.engine</groupId>
98 <artifactId>ONAP-SDK-APP</artifactId>
99 <version>${project.version}</version>
101 <destFileName>onap.war</destFileName>
107 <id>copy-tomcat-binary</id>
108 <phase>prepare-package</phase>
113 <outputDirectory>${project.build.directory}/install/3rdparty/</outputDirectory>
114 <overWriteReleases>false</overWriteReleases>
115 <overWriteSnapshots>true</overWriteSnapshots>
118 <groupId>org.apache.tomcat</groupId>
119 <artifactId>tomcat</artifactId>
120 <version>8.5.34</version>
123 Please note that if you change this version, you must
124 update the docker-install.sh script to ensure the right
125 file name is installed.
127 <destFileName>apache-tomcat-8.5.34.tar.gz</destFileName>
134 <phase>prepare-package</phase>
139 <outputDirectory>${project.build.directory}/brmsgw</outputDirectory>
140 <overWriteReleases>false</overWriteReleases>
141 <overWriteSnapshots>true</overWriteSnapshots>
144 <groupId>org.onap.policy.engine</groupId>
145 <artifactId>BRMSGateway</artifactId>
146 <version>${project.version}</version>
148 <classifier>jar-with-dependencies</classifier>
149 <destFileName>BRMSGateway.jar</destFileName>
155 <id>copy-logparser</id>
156 <phase>prepare-package</phase>
161 <outputDirectory>${project.build.directory}/logparser</outputDirectory>
162 <overWriteReleases>false</overWriteReleases>
163 <overWriteSnapshots>true</overWriteSnapshots>
166 <groupId>org.onap.policy.engine</groupId>
167 <artifactId>LogParser</artifactId>
168 <version>${project.version}</version>
170 <classifier>jar-with-dependencies</classifier>
171 <destFileName>logparser.jar</destFileName>
179 <artifactId>maven-assembly-plugin</artifactId>
185 <phase>package</phase>
188 <descriptor>src/assembly/zip.xml</descriptor>
190 <appendAssemblyId>false</appendAssemblyId>
200 <id>unix_pe_version</id>
203 <family>!windows</family>
209 <groupId>org.codehaus.mojo</groupId>
210 <artifactId>exec-maven-plugin</artifactId>
211 <version>1.5.0</version>
214 <id>create-version-file</id>
218 <phase>prepare-package</phase>
220 <executable>/bin/bash</executable>
222 <argument>-c</argument>
223 <argument>mkdir -p target ; echo -e 'version="${project.version}"\ndescription="Open ONAP Policy Engine"\nbuildTag="'"${BUILD_TAG}"'"\ncommit="'"${GIT_COMMIT}"'"\ntimestamp="${maven.build.timestamp}"' >target/build.info</argument>