blob: c97d102151e3b8f249480447bbb756a7d82da00a [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
Pamela Dragoshfd307be2018-08-28 18:10:51 -040021<project xmlns="http://maven.apache.org/POM/4.0.0"
22 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
23 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 -050024
Pamela Dragoshfd307be2018-08-28 18:10:51 -040025 <modelVersion>4.0.0</modelVersion>
Pamela Dragosh0e16acf2017-02-14 19:45:48 -050026
Pamela Dragoshfd307be2018-08-28 18:10:51 -040027 <parent>
28 <groupId>org.onap.policy.drools-pdp</groupId>
29 <artifactId>packages</artifactId>
30 <version>1.3.0-SNAPSHOT</version>
31 </parent>
Pamela Dragosh0e16acf2017-02-14 19:45:48 -050032
Pamela Dragoshfd307be2018-08-28 18:10:51 -040033 <artifactId>base</artifactId>
34 <packaging>pom</packaging>
Pamela Dragosh0e16acf2017-02-14 19:45:48 -050035
Pamela Dragoshfd307be2018-08-28 18:10:51 -040036 <name>Base Package</name>
37 <description>ONAP Policy Drools PDP Packaging</description>
Pamela Dragosh0e16acf2017-02-14 19:45:48 -050038
Pamela Dragoshfd307be2018-08-28 18:10:51 -040039 <build>
40 <plugins>
41 <plugin>
42 <artifactId>maven-assembly-plugin</artifactId>
43 <executions>
44 <execution>
45 <goals>
46 <goal>single</goal>
47 </goals>
48 <phase>package</phase>
49 <configuration>
50 <descriptors>
51 <descriptor>src/assembly/zip.xml</descriptor>
52 </descriptors>
53 <appendAssemblyId>false</appendAssemblyId>
54 </configuration>
55 </execution>
56 </executions>
57 </plugin>
58 </plugins>
59 </build>
Pamela Dragosh0e16acf2017-02-14 19:45:48 -050060
Pamela Dragoshfd307be2018-08-28 18:10:51 -040061 <profiles>
62 <profile>
63 <id>unix_pe_version</id>
64 <activation>
65 <os>
66 <family>!windows</family>
67 </os>
68 </activation>
69 <build>
70 <plugins>
71 <plugin>
72 <groupId>org.codehaus.mojo</groupId>
73 <artifactId>exec-maven-plugin</artifactId>
74 <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>
85 <argument>mkdir -p target ; echo
86 -e
87 'version="${project.version}"\ndescription="ONAP
88 Drools
89 PDP"\nbuildTag="'"${BUILD_TAG}"'"\ncommit="'"${GIT_COMMIT}"'"\ntimestamp="${maven.build.timestamp}"'
90 >target/build.info</argument>
91 </arguments>
92 </configuration>
93 </execution>
94 </executions>
95 </plugin>
96 </plugins>
97 </build>
98 </profile>
99 </profiles>
Pamela Dragosh0e16acf2017-02-14 19:45:48 -0500100
101</project>