2fdeb874fc60e5f8a61e559ef2cf000d63bd7dcc
[policy/engine.git] / packages / docker / 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" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
22
23         <modelVersion>4.0.0</modelVersion>
24
25         <parent>
26                 <groupId>org.onap.policy.engine</groupId>
27                 <artifactId>packages</artifactId>
28                 <version>1.5.0-SNAPSHOT</version>
29         </parent>
30
31         <artifactId>docker</artifactId>
32         <packaging>pom</packaging>
33         <name>Policy Engine - Docker build</name>
34         <description>ONAP Policy Docker Build</description>
35
36         <properties>
37                 <nexusproxy>https://nexus.onap.org</nexusproxy>
38         </properties>
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                                 </executions>
68                         </plugin>
69                         <plugin>
70                                 <artifactId>maven-resources-plugin</artifactId>
71                                 <version>3.0.2</version>
72                                 <executions>
73                                         <execution>
74                                                 <id>copy-resources</id>
75                                                 <phase>prepare-package</phase>
76                                                 <goals>
77                                                         <goal>copy-resources</goal>
78                                                 </goals>
79                                                 <configuration>
80                                                         <outputDirectory>${project.build.directory}/policy-pe</outputDirectory>
81                                                         <resources>          
82                                                                 <resource>
83                                                                         <directory>src/main/docker</directory>
84                                                                 </resource>
85                                                         </resources>              
86                                                 </configuration>            
87                                         </execution>
88                                 </executions>
89                         </plugin>
90       <plugin>
91         <groupId>org.codehaus.mojo</groupId>
92         <artifactId>exec-maven-plugin</artifactId>
93         <version>1.6.0</version>
94         <executions>
95           <execution>
96                 <id>get-target-version</id>
97                 <phase>prepare-package</phase>
98             <goals>
99               <goal>exec</goal>
100             </goals>
101           </execution>
102         </executions>
103         <configuration>
104           <executable>echo</executable>
105           <workingDirectory>${project.build.directory}</workingDirectory>
106           <arguments>
107             <argument>${project.version}</argument>
108           </arguments>
109           <outputFile>${project.build.directory}/version</outputFile>
110         </configuration>
111       </plugin>
112
113                 </plugins>
114         </build>
115
116 </project>