blob: 4e57cd9215b63e6c6390aa9bb231d0554bd8b21f [file] [log] [blame]
Pamela Dragosh0e16acf2017-02-14 19:45:48 -05001<!--
2 ============LICENSE_START=======================================================
3 Policy Packages
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>
Guo Ruijing6abeb292017-07-28 08:23:01 +000027 <groupId>org.onap.policy.drools-pdp</groupId>
Pamela Dragosh0e16acf2017-02-14 19:45:48 -050028 <artifactId>packages</artifactId>
Pamela Dragosh998f0b32017-03-10 14:31:17 -050029 <version>1.1.0-SNAPSHOT</version>
Pamela Dragosh0e16acf2017-02-14 19:45:48 -050030 </parent>
31
32 <artifactId>base</artifactId>
33 <packaging>pom</packaging>
34
35 <name>Base Package</name>
Jorge Hernandez85e12562017-06-05 09:51:55 -050036 <description>ONAP Policy Drools PDP Packaging</description>
Pamela Dragosh0e16acf2017-02-14 19:45:48 -050037
38 <build>
39 <plugins>
40 <plugin>
41 <artifactId>maven-assembly-plugin</artifactId>
42 <executions>
43 <execution>
44 <goals>
45 <goal>single</goal>
46 </goals>
47 <phase>package</phase>
48 <configuration>
49 <descriptors>
50 <descriptor>src/assembly/zip.xml</descriptor>
51 </descriptors>
52 <appendAssemblyId>false</appendAssemblyId>
53 </configuration>
54 </execution>
55 </executions>
56 </plugin>
57 </plugins>
58 </build>
59
60 <profiles>
61 <profile>
62 <id>unix_pe_version</id>
63 <activation>
64 <os>
65 <family>!windows</family>
66 </os>
67 </activation>
68 <build>
69 <plugins>
70 <plugin>
71 <groupId>org.codehaus.mojo</groupId>
72 <artifactId>exec-maven-plugin</artifactId>
Pamela Dragoshb9ef5302017-02-23 13:16:19 -050073 <version>1.5.0</version>
Pamela Dragosh0e16acf2017-02-14 19:45:48 -050074 <executions>
75 <execution>
76 <id>create-version-file</id>
77 <goals>
78 <goal>exec</goal>
79 </goals>
80 <phase>prepare-package</phase>
81 <configuration>
82 <executable>/bin/bash</executable>
83 <arguments>
84 <argument>-c</argument>
Jorge Hernandez85e12562017-06-05 09:51:55 -050085 <argument>mkdir -p target ; echo -e 'version="${project.version}"\ndescription="ONAP Drools PDP"\nbuildTag="'"${BUILD_TAG}"'"\ncommit="'"${GIT_COMMIT}"'"\ntimestamp="${maven.build.timestamp}"' >target/build.info</argument>
Pamela Dragosh0e16acf2017-02-14 19:45:48 -050086 </arguments>
87 </configuration>
88 </execution>
89 </executions>
90 </plugin>
91 </plugins>
92 </build>
93 </profile>
94 </profiles>
95
96</project>