blob: 3b753b2ac6ceed8d40bca8b90f50b6852d48b781 [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>
Jessica Wagantalldb597fe2017-11-18 18:50:29 -080029 <version>1.2.0-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>
121 <version>8.0.23</version>
122 <type>tar.gz</type>
123 <destFileName>apache-tomcat-8.0.23.tar.gz</destFileName>
124 </artifactItem>
125 </artifactItems>
126 </configuration>
127 </execution>
128 <execution>
129 <id>copy-brmsgw</id>
130 <phase>prepare-package</phase>
131 <goals>
132 <goal>copy</goal>
133 </goals>
134 <configuration>
135 <outputDirectory>${project.build.directory}/brmsgw</outputDirectory>
136 <overWriteReleases>false</overWriteReleases>
137 <overWriteSnapshots>true</overWriteSnapshots>
138 <artifactItems>
139 <artifactItem>
Guo Ruijing073cc182017-07-31 08:47:35 +0000140 <groupId>org.onap.policy.engine</groupId>
Pamela Dragosh91d04c62017-02-14 19:41:00 -0500141 <artifactId>BRMSGateway</artifactId>
142 <version>${project.version}</version>
143 <type>jar</type>
144 <classifier>jar-with-dependencies</classifier>
145 <destFileName>BRMSGateway.jar</destFileName>
146 </artifactItem>
147 </artifactItems>
148 </configuration>
149 </execution>
150 <execution>
151 <id>copy-logparser</id>
152 <phase>prepare-package</phase>
153 <goals>
154 <goal>copy</goal>
155 </goals>
156 <configuration>
157 <outputDirectory>${project.build.directory}/logparser</outputDirectory>
158 <overWriteReleases>false</overWriteReleases>
159 <overWriteSnapshots>true</overWriteSnapshots>
160 <artifactItems>
161 <artifactItem>
Guo Ruijing073cc182017-07-31 08:47:35 +0000162 <groupId>org.onap.policy.engine</groupId>
Pamela Dragosh91d04c62017-02-14 19:41:00 -0500163 <artifactId>LogParser</artifactId>
164 <version>${project.version}</version>
165 <type>jar</type>
166 <classifier>jar-with-dependencies</classifier>
167 <destFileName>logparser.jar</destFileName>
168 </artifactItem>
169 </artifactItems>
170 </configuration>
ITSERVICES\cr056n29596e42017-08-14 09:46:27 -0700171 </execution>
Pamela Dragosh91d04c62017-02-14 19:41:00 -0500172 </executions>
173 </plugin>
174 <plugin>
175 <artifactId>maven-assembly-plugin</artifactId>
176 <executions>
177 <execution>
178 <goals>
179 <goal>single</goal>
180 </goals>
181 <phase>package</phase>
182 <configuration>
183 <descriptors>
184 <descriptor>src/assembly/zip.xml</descriptor>
185 </descriptors>
186 <appendAssemblyId>false</appendAssemblyId>
187 </configuration>
188 </execution>
189 </executions>
190 </plugin>
191 </plugins>
192 </build>
ITSERVICES\cr056n29596e42017-08-14 09:46:27 -0700193
Pamela Dragosh91d04c62017-02-14 19:41:00 -0500194 <profiles>
195 <profile>
196 <id>unix_pe_version</id>
197 <activation>
198 <os>
199 <family>!windows</family>
200 </os>
201 </activation>
202 <build>
rb714792c23c72017-11-03 11:42:33 -0400203 <plugins>
204 <plugin>
205 <groupId>org.codehaus.mojo</groupId>
206 <artifactId>exec-maven-plugin</artifactId>
207 <version>1.5.0</version>
208 <executions>
209 <execution>
210 <id>create-version-file</id>
211 <goals>
212 <goal>exec</goal>
213 </goals>
214 <phase>prepare-package</phase>
215 <configuration>
216 <executable>/bin/bash</executable>
217 <arguments>
218 <argument>-c</argument>
219 <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>
220 </arguments>
221 </configuration>
222 </execution>
223 </executions>
224 </plugin>
225 </plugins>
Pamela Dragosh91d04c62017-02-14 19:41:00 -0500226 </build>
227 </profile>
228 </profiles>
229
230</project>