[POLICY-70] build/setup policy by vagrant
[policy/docker.git] / pom.xml
1 <!--
2   ============LICENSE_START=======================================================
3   ECOMP 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
27         <groupId>org.openecomp.policy.docker</groupId>
28         <artifactId>docker</artifactId>
29         <version>1.1.0-SNAPSHOT</version>
30         <packaging>pom</packaging>
31         <name>Policy Engine - Docker build</name>
32         <description>OpenECOMP Policy Docker Build</description>
33
34         <properties>
35                 <nexusproxy>https://nexus.onap.org</nexusproxy>
36                 <releases.path>content/repositories/releases/</releases.path>
37                 <snapshots.path>content/repositories/snapshots/</snapshots.path>
38                 <staging.path>content/repositories/staging/</staging.path>
39         </properties>
40
41         <repositories>
42                 <repository>
43                         <id>ecomp-releases</id>
44                         <name>OpenECOMP Release Repository</name>
45                         <url>${nexusproxy}/${releases.path}</url>
46                 </repository>
47                 <repository>
48                         <id>ecomp-staging</id>
49                         <name>OpenECOMP Staging Repository</name>
50                         <url>${nexusproxy}/${staging.path}</url>
51                 </repository>
52                 <repository>
53                         <id>ecomp-snapshot</id>
54                         <name>OpenECOMP Snapshot Repository</name>
55                         <url>${nexusproxy}/${snapshots.path}</url>
56                 </repository>
57         </repositories>
58
59         <distributionManagement>
60                 <repository>
61                         <id>ecomp-releases</id>
62                         <name>OpenECOMP Release Repository</name>
63                         <url>${nexusproxy}/${releases.path}</url>
64                 </repository>
65                 <snapshotRepository>
66                         <id>ecomp-snapshots</id>
67                         <name>OpenECOMP Snapshot Repository</name>
68                         <url>${nexusproxy}/${snapshots.path}</url>
69                 </snapshotRepository>
70         </distributionManagement>
71
72         <build>
73                 <plugins>
74                         <plugin>
75                                 <groupId>org.apache.maven.plugins</groupId>
76                                 <artifactId>maven-dependency-plugin</artifactId>
77                                 <executions>
78                                         <execution>
79                                                 <id>copy-pe-zip</id>
80                                                 <phase>prepare-package</phase>
81                                                 <goals>
82                                                         <goal>copy</goal>
83                                                 </goals>
84                                                 <configuration>
85                                                         <outputDirectory>${project.build.directory}/policy-pe</outputDirectory>
86                                                         <overWriteReleases>false</overWriteReleases>
87                                                         <overWriteSnapshots>true</overWriteSnapshots>
88                                                         <artifactItems>
89                                                                 <artifactItem>
90                                                                         <groupId>org.openecomp.policy.engine</groupId>
91                                                                         <artifactId>install</artifactId>
92                                                                         <version>${project.version}</version>
93                                                                         <type>zip</type>
94                                                                         <destFileName>install.zip</destFileName>
95                                                                 </artifactItem>
96                                                         </artifactItems>
97                                                 </configuration>
98                                         </execution>
99                                         <execution>
100                                                 <id>copy-drools-zip</id>
101                                                 <phase>prepare-package</phase>
102                                                 <goals>
103                                                         <goal>copy</goal>
104                                                 </goals>
105                                                 <configuration>
106                                                         <outputDirectory>${project.build.directory}/policy-drools</outputDirectory>
107                                                         <overWriteReleases>false</overWriteReleases>
108                                                         <overWriteSnapshots>true</overWriteSnapshots>
109                                                         <artifactItems>
110                                                                 <artifactItem>
111                                                                         <groupId>org.openecomp.policy.drools-pdp</groupId>
112                                                                         <artifactId>install-drools</artifactId>
113                                                                         <version>${project.version}</version>
114                                                                         <type>zip</type>
115                                                                         <destFileName>install-drools.zip</destFileName>
116                                                                 </artifactItem>
117                                                         </artifactItems>
118                                                 </configuration>
119                                         </execution>
120                                         <execution>
121                                                 <id>copy-apps-zip</id>
122                                                 <phase>prepare-package</phase>
123                                                 <goals>
124                                                         <goal>copy</goal>
125                                                 </goals>
126                                                 <configuration>
127                                                         <outputDirectory>${project.build.directory}/policy-drools</outputDirectory>
128                                                         <overWriteReleases>false</overWriteReleases>
129                                                         <overWriteSnapshots>true</overWriteSnapshots>
130                                                         <artifactItems>
131                                                                 <artifactItem>
132                                                                         <groupId>org.openecomp.policy.drools-applications</groupId>
133                                                                         <artifactId>apps</artifactId>
134                                                                         <version>${project.version}</version>
135                                                                         <type>zip</type>
136                                                                         <destFileName>apps.zip</destFileName>
137                                                                 </artifactItem>
138                                                         </artifactItems>
139                                                 </configuration>
140                                         </execution>
141                                 </executions>
142                         </plugin>
143       <plugin>
144         <groupId>org.codehaus.mojo</groupId>
145         <artifactId>exec-maven-plugin</artifactId>
146         <version>1.6.0</version>
147         <executions>
148           <execution>
149                 <id>get-target-version</id>
150                 <phase>prepare-package</phase>
151             <goals>
152               <goal>exec</goal>
153             </goals>
154           </execution>
155         </executions>
156         <configuration>
157           <executable>echo</executable>
158           <workingDirectory>${project.build.directory}</workingDirectory>
159           <arguments>
160             <argument>${project.version}</argument>
161           </arguments>
162           <outputFile>${project.build.directory}/version</outputFile>
163         </configuration>
164       </plugin>
165
166                 </plugins>
167         </build>
168
169 </project>