blob: e666ab728cdc414db0eb09837e87964afb90bd07 [file] [log] [blame]
mmis824a75e2018-03-02 18:04:48 +00001<!--
2 ============LICENSE_START=======================================================
3 ONAP Policy Engine - Docker files
4 ================================================================================
Pamela Dragoshfd307be2018-08-28 18:10:51 -04005 Copyright (C) 2017-2018 AT&T Intellectual Property. All rights reserved.
mmis824a75e2018-03-02 18:04:48 +00006 ================================================================================
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">
mmis824a75e2018-03-02 18:04:48 +000024
Pamela Dragoshfd307be2018-08-28 18:10:51 -040025 <modelVersion>4.0.0</modelVersion>
mmis824a75e2018-03-02 18:04:48 +000026
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>
mmis824a75e2018-03-02 18:04:48 +000032
Pamela Dragoshfd307be2018-08-28 18:10:51 -040033 <artifactId>docker</artifactId>
34 <packaging>pom</packaging>
35 <name>Policy Drools PDP - Docker build</name>
36 <description>ONAP Policy Drools PDP Docker Build</description>
mmis824a75e2018-03-02 18:04:48 +000037
Pamela Dragoshfd307be2018-08-28 18:10:51 -040038 <properties>
39 <nexusproxy>https://nexus.onap.org</nexusproxy>
40 </properties>
mmis824a75e2018-03-02 18:04:48 +000041
Pamela Dragoshfd307be2018-08-28 18:10:51 -040042 <build>
43 <plugins>
44 <plugin>
45 <groupId>org.apache.maven.plugins</groupId>
46 <artifactId>maven-dependency-plugin</artifactId>
47 <executions>
48 <execution>
49 <id>copy-drools-zip</id>
50 <phase>prepare-package</phase>
51 <goals>
52 <goal>copy</goal>
53 </goals>
54 <configuration>
55 <outputDirectory>${project.build.directory}/policy-drools</outputDirectory>
56 <overWriteReleases>false</overWriteReleases>
57 <overWriteSnapshots>true</overWriteSnapshots>
58 <artifactItems>
59 <artifactItem>
60 <groupId>org.onap.policy.drools-pdp</groupId>
61 <artifactId>install-drools</artifactId>
62 <version>${project.version}</version>
63 <type>zip</type>
64 <destFileName>install-drools.zip</destFileName>
65 </artifactItem>
66 </artifactItems>
67 </configuration>
68 </execution>
69 </executions>
70 </plugin>
71 <plugin>
72 <artifactId>maven-resources-plugin</artifactId>
73 <executions>
74 <execution>
75 <id>copy-resources</id>
76 <phase>prepare-package</phase>
77 <goals>
78 <goal>copy-resources</goal>
79 </goals>
80 <configuration>
81 <outputDirectory>${project.build.directory}/policy-drools</outputDirectory>
82 <resources>
83 <resource>
84 <directory>src/main/docker</directory>
85 </resource>
86 </resources>
87 </configuration>
88 </execution>
89 </executions>
90 </plugin>
mmis19b10482018-03-06 17:48:31 +000091
Pamela Dragoshfd307be2018-08-28 18:10:51 -040092 <plugin>
93 <groupId>org.codehaus.mojo</groupId>
94 <artifactId>exec-maven-plugin</artifactId>
95 <executions>
96 <execution>
97 <id>get-target-version</id>
98 <phase>prepare-package</phase>
99 <goals>
100 <goal>exec</goal>
101 </goals>
102 </execution>
103 </executions>
104 <configuration>
105 <executable>echo</executable>
106 <workingDirectory>${project.build.directory}</workingDirectory>
107 <arguments>
108 <argument>${project.version}</argument>
109 </arguments>
110 <outputFile>${project.build.directory}/version</outputFile>
111 </configuration>
112 </plugin>
mmis824a75e2018-03-02 18:04:48 +0000113
Pamela Dragoshfd307be2018-08-28 18:10:51 -0400114 </plugins>
115 </build>
mmis824a75e2018-03-02 18:04:48 +0000116
117</project>