Bump version of policy/engine
[policy/engine.git] / packages / base / pom.xml
1 <!--
2   ============LICENSE_START=======================================================
3   ONAP Policy Engine
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
10
11        http://www.apache.org/licenses/LICENSE-2.0
12
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=========================================================
19   -->
20
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">
22
23         <modelVersion>4.0.0</modelVersion>
24
25         <parent>
26                 <groupId>org.onap.policy.engine</groupId>
27                 <artifactId>packages</artifactId>
28                 <version>1.5.2-SNAPSHOT</version>
29         </parent>
30
31         <artifactId>base</artifactId>
32         <packaging>pom</packaging>
33
34         <name>Base Package</name>
35         <description>D2 ONAP Policy Base Packaging</description>
36
37         <build>
38                 <plugins>
39                         <plugin>
40                                 <groupId>org.apache.maven.plugins</groupId>
41                                 <artifactId>maven-dependency-plugin</artifactId>
42                                 <executions>
43                                         <execution>
44                                                 <id>copy-pdp</id>
45                                                 <phase>prepare-package</phase>
46                                                 <goals>
47                                                         <goal>copy</goal>
48                                                 </goals>
49                                                 <configuration>
50                                                         <outputDirectory>${project.build.directory}/pdp/webapps</outputDirectory>
51                                                         <overWriteReleases>false</overWriteReleases>
52                                                         <overWriteSnapshots>true</overWriteSnapshots>
53                                                         <artifactItems>
54                                                                 <artifactItem>
55                                                                         <groupId>org.onap.policy.engine</groupId>
56                                                                         <artifactId>ONAP-PDP-REST</artifactId>
57                                                                         <version>${project.version}</version>
58                                                                         <type>war</type>
59                                                                         <destFileName>pdp.war</destFileName>
60                                                                 </artifactItem>
61                                                         </artifactItems>
62                                                 </configuration>
63                                         </execution>
64                                         <execution>
65                                                 <id>copy-pap</id>
66                                                 <phase>prepare-package</phase>
67                                                 <goals>
68                                                         <goal>copy</goal>
69                                                 </goals>
70                                                 <configuration>
71                                                         <outputDirectory>${project.build.directory}/pap/webapps</outputDirectory>
72                                                         <overWriteReleases>false</overWriteReleases>
73                                                         <overWriteSnapshots>true</overWriteSnapshots>
74                                                         <artifactItems>
75                                                                 <artifactItem>
76                                                                         <groupId>org.onap.policy.engine</groupId>
77                                                                         <artifactId>ONAP-PAP-REST</artifactId>
78                                                                         <version>${project.version}</version>
79                                                                         <type>war</type>
80                                                                         <destFileName>pap.war</destFileName>
81                                                                 </artifactItem>
82                                                         </artifactItems>
83                                                 </configuration>
84                                         </execution>
85                                         <execution>
86                                                 <id>copy-onap</id>
87                                                 <phase>prepare-package</phase>
88                                                 <goals>
89                                                         <goal>copy</goal>
90                                                 </goals>
91                                                 <configuration>
92                                                         <outputDirectory>${project.build.directory}/console/webapps</outputDirectory>
93                                                         <overWriteReleases>false</overWriteReleases>
94                                                         <overWriteSnapshots>true</overWriteSnapshots>
95                                                         <artifactItems>
96                                                                 <artifactItem>
97                                                                         <groupId>org.onap.policy.engine</groupId>
98                                                                         <artifactId>ONAP-SDK-APP</artifactId>
99                                                                         <version>${project.version}</version>
100                                                                         <type>war</type>
101                                                                         <destFileName>onap.war</destFileName>
102                                                                 </artifactItem>
103                                                         </artifactItems>
104                                                 </configuration>
105                                         </execution>
106                                         <execution>
107                                                 <id>copy-tomcat-binary</id>
108                                                 <phase>prepare-package</phase>
109                                                 <goals>
110                                                         <goal>copy</goal>
111                                                 </goals>
112                                                 <configuration>
113                                                         <outputDirectory>${project.build.directory}/install/3rdparty/</outputDirectory>
114                                                         <overWriteReleases>false</overWriteReleases>
115                                                         <overWriteSnapshots>true</overWriteSnapshots>
116                                                         <artifactItems>
117                                                                 <artifactItem>
118                                                                         <groupId>org.apache.tomcat</groupId>
119                                                                         <artifactId>tomcat</artifactId>
120                                                                         <version>9.0.16</version>
121                                                                         <type>tar.gz</type>
122                                                                         <!--
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. 
126                                                                          -->
127                                                                         <destFileName>apache-tomcat-9.0.16.tar.gz</destFileName>
128                                                                 </artifactItem>
129                                                         </artifactItems>
130                                                 </configuration>
131                                         </execution>
132                                         <execution>
133                                                 <id>copy-brmsgw</id>
134                                                 <phase>prepare-package</phase>
135                                                 <goals>
136                                                         <goal>copy</goal>
137                                                 </goals>
138                                                 <configuration>
139                                                         <outputDirectory>${project.build.directory}/brmsgw</outputDirectory>
140                                                         <overWriteReleases>false</overWriteReleases>
141                                                         <overWriteSnapshots>true</overWriteSnapshots>
142                                                         <artifactItems>
143                                                                 <artifactItem>
144                                                                         <groupId>org.onap.policy.engine</groupId>
145                                                                         <artifactId>BRMSGateway</artifactId>
146                                                                         <version>${project.version}</version>
147                                                                         <type>jar</type>
148                                                                         <classifier>jar-with-dependencies</classifier>
149                                                                         <destFileName>BRMSGateway.jar</destFileName>
150                                                                 </artifactItem>
151                                                         </artifactItems>
152                                                 </configuration>
153                                         </execution>
154                                         <execution>
155                                                 <id>copy-logparser</id>
156                                                 <phase>prepare-package</phase>
157                                                 <goals>
158                                                         <goal>copy</goal>
159                                                 </goals>
160                                                 <configuration>
161                                                         <outputDirectory>${project.build.directory}/logparser</outputDirectory>
162                                                         <overWriteReleases>false</overWriteReleases>
163                                                         <overWriteSnapshots>true</overWriteSnapshots>
164                                                         <artifactItems>
165                                                                 <artifactItem>
166                                                                         <groupId>org.onap.policy.engine</groupId>
167                                                                         <artifactId>LogParser</artifactId>
168                                                                         <version>${project.version}</version>
169                                                                         <type>jar</type>
170                                                                         <classifier>jar-with-dependencies</classifier>
171                                                                         <destFileName>logparser.jar</destFileName>
172                                                                 </artifactItem>
173                                                         </artifactItems>
174                                                 </configuration>
175                                         </execution>
176                                 </executions>
177                         </plugin>
178                         <plugin>
179                                 <artifactId>maven-assembly-plugin</artifactId>
180                                 <executions>
181                                         <execution>
182                                                 <goals>
183                                                         <goal>single</goal>
184                                                 </goals>
185                                                 <phase>package</phase>
186                                                 <configuration>
187                                                         <descriptors>
188                                                                 <descriptor>src/assembly/zip.xml</descriptor>
189                                                         </descriptors>
190                                                         <appendAssemblyId>false</appendAssemblyId>
191                                                 </configuration>
192                                         </execution>
193                                 </executions>
194                         </plugin>
195                 </plugins>
196         </build>
197
198         <profiles>
199                 <profile>
200                         <id>unix_pe_version</id>
201                         <activation>
202                                 <os>
203                                         <family>!windows</family>
204                                 </os>
205                         </activation>
206                         <build>
207                                 <plugins>
208                     <plugin>
209                         <groupId>org.codehaus.mojo</groupId>
210                         <artifactId>exec-maven-plugin</artifactId>
211                         <version>1.5.0</version>
212                         <executions>
213                             <execution>
214                                 <id>create-version-file</id>
215                                 <goals>
216                                     <goal>exec</goal>
217                                 </goals>
218                                 <phase>prepare-package</phase>
219                                 <configuration>
220                                     <executable>/bin/bash</executable>
221                                     <arguments>
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}"' &gt;target/build.info</argument>
224                                     </arguments>
225                                 </configuration>
226                             </execution>
227                         </executions>
228                     </plugin>
229                 </plugins>
230                         </build>
231                 </profile>
232         </profiles>
233
234 </project>