blob: c9d04016fdba5bffc1252adb4d0b12903599da59 [file] [log] [blame]
Pamela Dragosh91d04c62017-02-14 19:41:00 -05001<!--
2 ============LICENSE_START=======================================================
Guo Ruijing073cc182017-07-31 08:47:35 +00003 ONAP Policy Engine
Pamela Dragosh91d04c62017-02-14 19:41:00 -05004 ================================================================================
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
ITSERVICES\cr056n29596e42017-08-14 09:46:27 -070010
Pamela Dragosh91d04c62017-02-14 19:41:00 -050011 http://www.apache.org/licenses/LICENSE-2.0
ITSERVICES\cr056n29596e42017-08-14 09:46:27 -070012
Pamela Dragosh91d04c62017-02-14 19:41:00 -050013 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=========================================================
19 -->
20
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">
23
24 <modelVersion>4.0.0</modelVersion>
25
26 <parent>
Guo Ruijing073cc182017-07-31 08:47:35 +000027 <groupId>org.onap.policy.engine</groupId>
Pamela Dragosh91d04c62017-02-14 19:41:00 -050028 <artifactId>packages</artifactId>
Pamela Dragoshdca52202018-04-13 15:55:51 -040029 <version>1.2.1-SNAPSHOT</version>
Pamela Dragosh91d04c62017-02-14 19:41:00 -050030 </parent>
31
Pamela Dragosh91d04c62017-02-14 19:41:00 -050032 <artifactId>base</artifactId>
33 <packaging>pom</packaging>
34
35 <name>Base Package</name>
Guo Ruijing073cc182017-07-31 08:47:35 +000036 <description>D2 ONAP Policy Base Packaging</description>
Pamela Dragosh91d04c62017-02-14 19:41:00 -050037
38 <build>
39 <plugins>
40 <plugin>
41 <groupId>org.apache.maven.plugins</groupId>
42 <artifactId>maven-dependency-plugin</artifactId>
43 <executions>
44 <execution>
Pamela Dragosh91d04c62017-02-14 19:41:00 -050045 <id>copy-pdp</id>
46 <phase>prepare-package</phase>
47 <goals>
48 <goal>copy</goal>
49 </goals>
50 <configuration>
51 <outputDirectory>${project.build.directory}/pdp/webapps</outputDirectory>
52 <overWriteReleases>false</overWriteReleases>
53 <overWriteSnapshots>true</overWriteSnapshots>
54 <artifactItems>
55 <artifactItem>
Guo Ruijing073cc182017-07-31 08:47:35 +000056 <groupId>org.onap.policy.engine</groupId>
57 <artifactId>ONAP-PDP-REST</artifactId>
Pamela Dragosh91d04c62017-02-14 19:41:00 -050058 <version>${project.version}</version>
59 <type>war</type>
60 <destFileName>pdp.war</destFileName>
61 </artifactItem>
62 </artifactItems>
63 </configuration>
64 </execution>
65 <execution>
66 <id>copy-pap</id>
67 <phase>prepare-package</phase>
68 <goals>
69 <goal>copy</goal>
70 </goals>
71 <configuration>
72 <outputDirectory>${project.build.directory}/pap/webapps</outputDirectory>
73 <overWriteReleases>false</overWriteReleases>
74 <overWriteSnapshots>true</overWriteSnapshots>
75 <artifactItems>
76 <artifactItem>
Guo Ruijing073cc182017-07-31 08:47:35 +000077 <groupId>org.onap.policy.engine</groupId>
78 <artifactId>ONAP-PAP-REST</artifactId>
Pamela Dragosh91d04c62017-02-14 19:41:00 -050079 <version>${project.version}</version>
80 <type>war</type>
81 <destFileName>pap.war</destFileName>
82 </artifactItem>
83 </artifactItems>
84 </configuration>
85 </execution>
86 <execution>
Guo Ruijing073cc182017-07-31 08:47:35 +000087 <id>copy-onap</id>
Pamela Dragosh91d04c62017-02-14 19:41:00 -050088 <phase>prepare-package</phase>
89 <goals>
90 <goal>copy</goal>
91 </goals>
92 <configuration>
93 <outputDirectory>${project.build.directory}/console/webapps</outputDirectory>
94 <overWriteReleases>false</overWriteReleases>
95 <overWriteSnapshots>true</overWriteSnapshots>
96 <artifactItems>
97 <artifactItem>
Guo Ruijing073cc182017-07-31 08:47:35 +000098 <groupId>org.onap.policy.engine</groupId>
99 <artifactId>ONAP-SDK-APP</artifactId>
Pamela Dragosh91d04c62017-02-14 19:41:00 -0500100 <version>${project.version}</version>
101 <type>war</type>
Guo Ruijing073cc182017-07-31 08:47:35 +0000102 <destFileName>onap.war</destFileName>
Pamela Dragosh91d04c62017-02-14 19:41:00 -0500103 </artifactItem>
104 </artifactItems>
105 </configuration>
106 </execution>
107 <execution>
108 <id>copy-tomcat-binary</id>
109 <phase>prepare-package</phase>
110 <goals>
111 <goal>copy</goal>
112 </goals>
113 <configuration>
114 <outputDirectory>${project.build.directory}/install/3rdparty/</outputDirectory>
115 <overWriteReleases>false</overWriteReleases>
116 <overWriteSnapshots>true</overWriteSnapshots>
117 <artifactItems>
118 <artifactItem>
119 <groupId>org.apache.tomcat</groupId>
120 <artifactId>tomcat</artifactId>
Pamela Dragosh1cc7a3d2018-04-02 09:51:03 -0400121 <version>8.0.50</version>
Pamela Dragosh91d04c62017-02-14 19:41:00 -0500122 <type>tar.gz</type>
Pamela Dragosh4fb9d972018-04-03 12:15:16 -0400123 <!--
124 Please note that if you change this version, you must
125 update the docker-install.sh script to ensure the right
126 file name is installed.
127 -->
Pamela Dragosh1cc7a3d2018-04-02 09:51:03 -0400128 <destFileName>apache-tomcat-8.0.50.tar.gz</destFileName>
Pamela Dragosh91d04c62017-02-14 19:41:00 -0500129 </artifactItem>
130 </artifactItems>
131 </configuration>
132 </execution>
133 <execution>
134 <id>copy-brmsgw</id>
135 <phase>prepare-package</phase>
136 <goals>
137 <goal>copy</goal>
138 </goals>
139 <configuration>
140 <outputDirectory>${project.build.directory}/brmsgw</outputDirectory>
141 <overWriteReleases>false</overWriteReleases>
142 <overWriteSnapshots>true</overWriteSnapshots>
143 <artifactItems>
144 <artifactItem>
Guo Ruijing073cc182017-07-31 08:47:35 +0000145 <groupId>org.onap.policy.engine</groupId>
Pamela Dragosh91d04c62017-02-14 19:41:00 -0500146 <artifactId>BRMSGateway</artifactId>
147 <version>${project.version}</version>
148 <type>jar</type>
149 <classifier>jar-with-dependencies</classifier>
150 <destFileName>BRMSGateway.jar</destFileName>
151 </artifactItem>
152 </artifactItems>
153 </configuration>
154 </execution>
155 <execution>
156 <id>copy-logparser</id>
157 <phase>prepare-package</phase>
158 <goals>
159 <goal>copy</goal>
160 </goals>
161 <configuration>
162 <outputDirectory>${project.build.directory}/logparser</outputDirectory>
163 <overWriteReleases>false</overWriteReleases>
164 <overWriteSnapshots>true</overWriteSnapshots>
165 <artifactItems>
166 <artifactItem>
Guo Ruijing073cc182017-07-31 08:47:35 +0000167 <groupId>org.onap.policy.engine</groupId>
Pamela Dragosh91d04c62017-02-14 19:41:00 -0500168 <artifactId>LogParser</artifactId>
169 <version>${project.version}</version>
170 <type>jar</type>
171 <classifier>jar-with-dependencies</classifier>
172 <destFileName>logparser.jar</destFileName>
173 </artifactItem>
174 </artifactItems>
175 </configuration>
ITSERVICES\cr056n29596e42017-08-14 09:46:27 -0700176 </execution>
Pamela Dragosh91d04c62017-02-14 19:41:00 -0500177 </executions>
178 </plugin>
179 <plugin>
180 <artifactId>maven-assembly-plugin</artifactId>
181 <executions>
182 <execution>
183 <goals>
184 <goal>single</goal>
185 </goals>
186 <phase>package</phase>
187 <configuration>
188 <descriptors>
189 <descriptor>src/assembly/zip.xml</descriptor>
190 </descriptors>
191 <appendAssemblyId>false</appendAssemblyId>
192 </configuration>
193 </execution>
194 </executions>
195 </plugin>
196 </plugins>
197 </build>
ITSERVICES\cr056n29596e42017-08-14 09:46:27 -0700198
Pamela Dragosh91d04c62017-02-14 19:41:00 -0500199 <profiles>
200 <profile>
201 <id>unix_pe_version</id>
202 <activation>
203 <os>
204 <family>!windows</family>
205 </os>
206 </activation>
207 <build>
rb714792c23c72017-11-03 11:42:33 -0400208 <plugins>
209 <plugin>
210 <groupId>org.codehaus.mojo</groupId>
211 <artifactId>exec-maven-plugin</artifactId>
212 <version>1.5.0</version>
213 <executions>
214 <execution>
215 <id>create-version-file</id>
216 <goals>
217 <goal>exec</goal>
218 </goals>
219 <phase>prepare-package</phase>
220 <configuration>
221 <executable>/bin/bash</executable>
222 <arguments>
223 <argument>-c</argument>
224 <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>
225 </arguments>
226 </configuration>
227 </execution>
228 </executions>
229 </plugin>
230 </plugins>
Pamela Dragosh91d04c62017-02-14 19:41:00 -0500231 </build>
232 </profile>
233 </profiles>
234
235</project>