Merge "Change ng-click to ng-change"
[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"
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.policy.engine</groupId>
28                 <artifactId>packages</artifactId>
29                 <version>1.2.0-SNAPSHOT</version>
30         </parent>
31
32         <artifactId>docker</artifactId>
33         <packaging>pom</packaging>
34         <name>Policy Engine - Docker build</name>
35         <description>ONAP Policy Docker Build</description>
36
37         <properties>
38                 <nexusproxy>https://nexus.onap.org</nexusproxy>
39         </properties>
40
41         <build>
42                 <plugins>
43                         <plugin>
44                                 <groupId>org.apache.maven.plugins</groupId>
45                                 <artifactId>maven-dependency-plugin</artifactId>
46                                 <executions>
47                                         <execution>
48                                                 <id>copy-pe-zip</id>
49                                                 <phase>prepare-package</phase>
50                                                 <goals>
51                                                         <goal>copy</goal>
52                                                 </goals>
53                                                 <configuration>
54                                                         <outputDirectory>${project.build.directory}/policy-pe</outputDirectory>
55                                                         <overWriteReleases>false</overWriteReleases>
56                                                         <overWriteSnapshots>true</overWriteSnapshots>
57                                                         <artifactItems>
58                                                                 <artifactItem>
59                                                                         <groupId>org.onap.policy.engine</groupId>
60                                                                         <artifactId>install</artifactId>
61                                                                         <version>${project.version}</version>
62                                                                         <type>zip</type>
63                                                                         <destFileName>install.zip</destFileName>
64                                                                 </artifactItem>
65                                                         </artifactItems>
66                                                 </configuration>
67                                         </execution>
68                                 </executions>
69                         </plugin>
70                         <plugin>
71                                 <artifactId>maven-resources-plugin</artifactId>
72                                 <version>3.0.2</version>
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-pe</outputDirectory>
82                                                         <resources>          
83                                                                 <resource>
84                                                                         <directory>src/main/docker</directory>
85                                                                         <filtering>true</filtering>
86                                                                 </resource>
87                                                         </resources>              
88                                                 </configuration>            
89                                         </execution>
90                                 </executions>
91                         </plugin>
92       <plugin>
93         <groupId>org.codehaus.mojo</groupId>
94         <artifactId>exec-maven-plugin</artifactId>
95         <version>1.6.0</version>
96         <executions>
97           <execution>
98                 <id>get-target-version</id>
99                 <phase>prepare-package</phase>
100             <goals>
101               <goal>exec</goal>
102             </goals>
103           </execution>
104         </executions>
105         <configuration>
106           <executable>echo</executable>
107           <workingDirectory>${project.build.directory}</workingDirectory>
108           <arguments>
109             <argument>${project.version}</argument>
110           </arguments>
111           <outputFile>${project.build.directory}/version</outputFile>
112         </configuration>
113       </plugin>
114
115                 </plugins>
116         </build>
117
118 </project>