Bump up artifacts version to 1.1.3-SNAPSHOT
[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.1.3-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.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>
140                                                                         <groupId>org.onap.policy.engine</groupId>
141                                                                         <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>
162                                                                         <groupId>org.onap.policy.engine</groupId>
163                                                                         <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>
171                                         </execution>
172                                 </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>
193
194         <profiles>
195                 <profile>
196                         <id>unix_pe_version</id>
197                         <activation>
198                                 <os>
199                                         <family>!windows</family>
200                                 </os>
201                         </activation>
202                         <build>
203                                 <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>
226                         </build>
227                 </profile>
228         </profiles>
229
230 </project>