Upgrade SNAPSHOT to 1.2.2
[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"
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>
27                 <groupId>org.onap.policy.engine</groupId>
28                 <artifactId>packages</artifactId>
29                 <version>1.2.2-SNAPSHOT</version>
30         </parent>
31
32         <artifactId>base</artifactId>
33         <packaging>pom</packaging>
34
35         <name>Base Package</name>
36         <description>D2 ONAP Policy Base Packaging</description>
37
38         <build>
39                 <plugins>
40                         <plugin>
41                                 <groupId>org.apache.maven.plugins</groupId>
42                                 <artifactId>maven-dependency-plugin</artifactId>
43                                 <executions>
44                                         <execution>
45                                                 <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>
56                                                                         <groupId>org.onap.policy.engine</groupId>
57                                                                         <artifactId>ONAP-PDP-REST</artifactId>
58                                                                         <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>
77                                                                         <groupId>org.onap.policy.engine</groupId>
78                                                                         <artifactId>ONAP-PAP-REST</artifactId>
79                                                                         <version>${project.version}</version>
80                                                                         <type>war</type>
81                                                                         <destFileName>pap.war</destFileName>
82                                                                 </artifactItem>
83                                                         </artifactItems>
84                                                 </configuration>
85                                         </execution>
86                                         <execution>
87                                                 <id>copy-onap</id>
88                                                 <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>
98                                                                         <groupId>org.onap.policy.engine</groupId>
99                                                                         <artifactId>ONAP-SDK-APP</artifactId>
100                                                                         <version>${project.version}</version>
101                                                                         <type>war</type>
102                                                                         <destFileName>onap.war</destFileName>
103                                                                 </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.50</version>
122                                                                         <type>tar.gz</type>
123                                                                         <!--
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                                                                          -->
128                                                                         <destFileName>apache-tomcat-8.0.50.tar.gz</destFileName>
129                                                                 </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>
145                                                                         <groupId>org.onap.policy.engine</groupId>
146                                                                         <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>
167                                                                         <groupId>org.onap.policy.engine</groupId>
168                                                                         <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>
176                                         </execution>
177                                 </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>
198
199         <profiles>
200                 <profile>
201                         <id>unix_pe_version</id>
202                         <activation>
203                                 <os>
204                                         <family>!windows</family>
205                                 </os>
206                         </activation>
207                         <build>
208                                 <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>
231                         </build>
232                 </profile>
233         </profiles>
234
235 </project>