Create docker compose script integration
[policy/docker.git] / pom.xml
1 <!--
2   ============LICENSE_START=======================================================
3   ONAP Policy Engine - Docker files
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.oparent</groupId>
28                 <artifactId>oparent</artifactId>
29                 <version>0.1.1</version>
30                 <relativePath/>
31         </parent>
32
33         <groupId>org.onap.policy.docker</groupId>
34         <artifactId>docker</artifactId>
35         <version>1.1.0-SNAPSHOT</version>
36         <packaging>pom</packaging>
37         <name>Policy Engine - Docker build</name>
38         <description>ONAP Policy Docker Build</description>
39
40         <build>
41                 <plugins>
42                         <plugin>
43                                 <groupId>org.apache.maven.plugins</groupId>
44                                 <artifactId>maven-dependency-plugin</artifactId>
45                                 <executions>
46                                         <execution>
47                                                 <id>copy-pe-zip</id>
48                                                 <phase>prepare-package</phase>
49                                                 <goals>
50                                                         <goal>copy</goal>
51                                                 </goals>
52                                                 <configuration>
53                                                         <outputDirectory>${project.build.directory}/policy-pe</outputDirectory>
54                                                         <overWriteReleases>false</overWriteReleases>
55                                                         <overWriteSnapshots>true</overWriteSnapshots>
56                                                         <artifactItems>
57                                                                 <artifactItem>
58                                                                         <groupId>org.onap.policy.engine</groupId>
59                                                                         <artifactId>install</artifactId>
60                                                                         <version>${project.version}</version>
61                                                                         <type>zip</type>
62                                                                         <destFileName>install.zip</destFileName>
63                                                                 </artifactItem>
64                                                         </artifactItems>
65                                                 </configuration>
66                                         </execution>
67                                         <execution>
68                                                 <id>copy-drools-zip</id>
69                                                 <phase>prepare-package</phase>
70                                                 <goals>
71                                                         <goal>copy</goal>
72                                                 </goals>
73                                                 <configuration>
74                                                         <outputDirectory>${project.build.directory}/policy-drools</outputDirectory>
75                                                         <overWriteReleases>false</overWriteReleases>
76                                                         <overWriteSnapshots>true</overWriteSnapshots>
77                                                         <artifactItems>
78                                                                 <artifactItem>
79                                                                         <groupId>org.onap.policy.drools-pdp</groupId>
80                                                                         <artifactId>install-drools</artifactId>
81                                                                         <version>${project.version}</version>
82                                                                         <type>zip</type>
83                                                                         <destFileName>install-drools.zip</destFileName>
84                                                                 </artifactItem>
85                                                         </artifactItems>
86                                                 </configuration>
87                                         </execution>
88                                         <execution>
89                                                 <id>copy-apps-zip</id>
90                                                 <phase>prepare-package</phase>
91                                                 <goals>
92                                                         <goal>copy</goal>
93                                                 </goals>
94                                                 <configuration>
95                                                         <outputDirectory>${project.build.directory}/policy-drools</outputDirectory>
96                                                         <overWriteReleases>false</overWriteReleases>
97                                                         <overWriteSnapshots>true</overWriteSnapshots>
98                                                         <artifactItems>
99                                                                 <artifactItem>
100                                                                         <groupId>org.onap.policy.drools-applications</groupId>
101                                                                         <artifactId>apps</artifactId>
102                                                                         <version>${project.version}</version>
103                                                                         <type>zip</type>
104                                                                         <destFileName>apps.zip</destFileName>
105                                                                 </artifactItem>
106                                                         </artifactItems>
107                                                 </configuration>
108                                         </execution>
109                                 </executions>
110                         </plugin>
111       <plugin>
112         <groupId>org.codehaus.mojo</groupId>
113         <artifactId>exec-maven-plugin</artifactId>
114         <version>1.6.0</version>
115         <executions>
116           <execution>
117                 <id>get-target-version</id>
118                 <phase>prepare-package</phase>
119             <goals>
120               <goal>exec</goal>
121             </goals>
122           </execution>
123         </executions>
124         <configuration>
125           <executable>echo</executable>
126           <workingDirectory>${project.build.directory}</workingDirectory>
127           <arguments>
128             <argument>${project.version}</argument>
129           </arguments>
130           <outputFile>${project.build.directory}/version</outputFile>
131         </configuration>
132       </plugin>
133
134                 </plugins>
135         </build>
136
137 </project>