Move docker_*.sh scripts in policy/drools-pdp
[policy/drools-pdp.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.drools-pdp</groupId>
28                 <artifactId>packages</artifactId>
29                 <version>1.2.0-SNAPSHOT</version>
30         </parent>
31
32         <groupId>org.onap.policy.drools-pdp</groupId>
33         <artifactId>docker</artifactId>
34         <version>1.2.0-SNAPSHOT</version>
35         <packaging>pom</packaging>
36         <name>Policy Drools PDP - Docker build</name>
37         <description>ONAP Policy Drools PDP Docker Build</description>
38
39         <properties>
40                 <nexusproxy>https://nexus.onap.org</nexusproxy>
41         </properties>
42
43         <repositories>
44                 <!-- LF repositories -->
45                 <repository>
46                         <id>ecomp-releases</id>
47                         <name>Release Repository</name>
48                         <url>${nexusproxy}/content/repositories/releases/</url>
49                 </repository>
50                 <repository>
51                         <id>ecomp-staging</id>
52                         <name>Staging Repository</name>
53                         <url>${nexusproxy}/content/repositories/staging/</url>
54                 </repository>
55                 <repository>
56                         <id>ecomp-snapshots</id>
57                         <name>Snapshots Repository</name>
58                         <url>${nexusproxy}/content/repositories/snapshots/</url>
59                 </repository>
60                 <repository>
61                         <id>ecomp-public</id>
62                         <name>Public Repository</name>
63                         <url>${nexusproxy}/content/repositories/public/</url>
64                 </repository>
65                 <!-- LF repositories END-->
66         </repositories>
67
68
69         <build>
70                 <plugins>
71                         <plugin>
72                                 <groupId>org.apache.maven.plugins</groupId>
73                                 <artifactId>maven-dependency-plugin</artifactId>
74                                 <executions>
75                                         <execution>
76                                                 <id>copy-apps-zip</id>
77                                                 <phase>prepare-package</phase>
78                                                 <goals>
79                                                         <goal>copy</goal>
80                                                 </goals>
81                                                 <configuration>
82                                                         <outputDirectory>${project.build.directory}/policy-drools</outputDirectory>
83                                                         <overWriteReleases>false</overWriteReleases>
84                                                         <overWriteSnapshots>true</overWriteSnapshots>
85                                                         <artifactItems>
86                                                                 <artifactItem>
87                                                                         <groupId>org.onap.policy.drools-applications.controlloop.packages</groupId>
88                                                                         <artifactId>apps</artifactId>
89                                                                         <version>${project.version}</version>
90                                                                         <type>zip</type>
91                                                                         <destFileName>apps.zip</destFileName>
92                                                                 </artifactItem>
93                                                         </artifactItems>
94                                                 </configuration>
95                                         </execution>
96                                 </executions>
97                         </plugin>
98       <plugin>
99         <groupId>org.codehaus.mojo</groupId>
100         <artifactId>exec-maven-plugin</artifactId>
101         <version>1.6.0</version>
102         <executions>
103           <execution>
104                 <id>get-target-version</id>
105                 <phase>prepare-package</phase>
106             <goals>
107               <goal>exec</goal>
108             </goals>
109           </execution>
110         </executions>
111         <configuration>
112           <executable>echo</executable>
113           <workingDirectory>${project.build.directory}</workingDirectory>
114           <arguments>
115             <argument>${project.version}</argument>
116           </arguments>
117           <outputFile>${project.build.directory}/version</outputFile>
118         </configuration>
119       </plugin>
120
121                 </plugins>
122         </build>
123
124 </project>