blob: afafa6f1ca38c0aa5b3d408fc1532869a1903f54 [file] [log] [blame]
Pamela Dragosh0e16acf2017-02-14 19:45:48 -05001<!--
2 ============LICENSE_START=======================================================
3 Policy Packages
4 ================================================================================
Pamela Dragoshfd307be2018-08-28 18:10:51 -04005 Copyright (C) 2017-2018 AT&T Intellectual Property. All rights reserved.
Pamela Dragosh0e16acf2017-02-14 19:45:48 -05006 ================================================================================
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
liamfallon99200202018-10-31 16:00:08 +000021<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">
Pamela Dragosh0e16acf2017-02-14 19:45:48 -050022
Pamela Dragoshfd307be2018-08-28 18:10:51 -040023 <modelVersion>4.0.0</modelVersion>
Pamela Dragosh0e16acf2017-02-14 19:45:48 -050024
Pamela Dragoshfd307be2018-08-28 18:10:51 -040025 <parent>
26 <groupId>org.onap.policy.drools-pdp</groupId>
27 <artifactId>packages</artifactId>
liamfallon99200202018-10-31 16:00:08 +000028 <version>1.4.0-SNAPSHOT</version>
Pamela Dragoshfd307be2018-08-28 18:10:51 -040029 </parent>
Pamela Dragosh0e16acf2017-02-14 19:45:48 -050030
Pamela Dragoshfd307be2018-08-28 18:10:51 -040031 <artifactId>base</artifactId>
32 <packaging>pom</packaging>
Pamela Dragosh0e16acf2017-02-14 19:45:48 -050033
Pamela Dragoshfd307be2018-08-28 18:10:51 -040034 <name>Base Package</name>
35 <description>ONAP Policy Drools PDP Packaging</description>
Pamela Dragosh0e16acf2017-02-14 19:45:48 -050036
Pamela Dragoshfd307be2018-08-28 18:10:51 -040037 <build>
38 <plugins>
39 <plugin>
40 <artifactId>maven-assembly-plugin</artifactId>
41 <executions>
42 <execution>
43 <goals>
44 <goal>single</goal>
45 </goals>
46 <phase>package</phase>
47 <configuration>
48 <descriptors>
49 <descriptor>src/assembly/zip.xml</descriptor>
50 </descriptors>
51 <appendAssemblyId>false</appendAssemblyId>
52 </configuration>
53 </execution>
54 </executions>
55 </plugin>
56 </plugins>
57 </build>
Pamela Dragosh0e16acf2017-02-14 19:45:48 -050058
Pamela Dragoshfd307be2018-08-28 18:10:51 -040059 <profiles>
60 <profile>
61 <id>unix_pe_version</id>
62 <activation>
63 <os>
64 <family>!windows</family>
65 </os>
66 </activation>
67 <build>
68 <plugins>
69 <plugin>
70 <groupId>org.codehaus.mojo</groupId>
71 <artifactId>exec-maven-plugin</artifactId>
72 <executions>
73 <execution>
74 <id>create-version-file</id>
75 <goals>
76 <goal>exec</goal>
77 </goals>
78 <phase>prepare-package</phase>
79 <configuration>
80 <executable>/bin/bash</executable>
81 <arguments>
82 <argument>-c</argument>
83 <argument>mkdir -p target ; echo
84 -e
85 'version="${project.version}"\ndescription="ONAP
86 Drools
87 PDP"\nbuildTag="'"${BUILD_TAG}"'"\ncommit="'"${GIT_COMMIT}"'"\ntimestamp="${maven.build.timestamp}"'
liamfallon99200202018-10-31 16:00:08 +000088 &gt;target/build.info</argument>
Pamela Dragoshfd307be2018-08-28 18:10:51 -040089 </arguments>
90 </configuration>
91 </execution>
92 </executions>
93 </plugin>
94 </plugins>
95 </build>
96 </profile>
97 </profiles>
Pamela Dragosh0e16acf2017-02-14 19:45:48 -050098
99</project>