Change the Version of the Parent POM
[holmes/engine-management.git] / engine-d-standalone / pom.xml
1 <?xml version="1.0"?>
2 <!--
3
4     Copyright 2017 ZTE Corporation.
5
6     Licensed under the Apache License, Version 2.0 (the "License");
7     you may not use this file except in compliance with the License.
8     You may obtain a copy of the License at
9
10         http://www.apache.org/licenses/LICENSE-2.0
11
12     Unless required by applicable law or agreed to in writing, software
13     distributed under the License is distributed on an "AS IS" BASIS,
14     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15     See the License for the specific language governing permissions and
16     limitations under the License.
17
18 -->
19 <project xmlns="http://maven.apache.org/POM/4.0.0"
20     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
21     xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
22     <parent>
23         <groupId>org.onap.holmes.engine-management</groupId>
24         <artifactId>holmes-engine-parent</artifactId>
25         <version>1.0.0</version>
26     </parent>
27
28     <artifactId>holmes-engine-d-standalone</artifactId>
29     <modelVersion>4.0.0</modelVersion>
30     <name>holmes-engine/holmes-engine-d-standalone</name>
31     <packaging>pom</packaging>
32
33     <build>
34         <plugins>
35             <plugin>
36                 <artifactId>maven-resources-plugin</artifactId>
37                 <executions>
38                     <execution>
39                         <id>copy-resources-${linux64id}</id>
40                         <phase>process-resources</phase>
41                         <goals>
42                             <goal>copy-resources</goal>
43                         </goals>
44                         <configuration>
45                             <outputDirectory>${linux64outputdir}</outputDirectory>
46                             <resources>
47                                 <resource>
48                                     <directory>src/main/assembly/</directory>
49                                     <filtering>false</filtering>
50                                     <includes>
51                                         <include>**/*</include>
52                                     </includes>
53                                     <excludes>
54                                         <exclude>**/*.bat</exclude>
55                                     </excludes>
56                                 </resource>
57                                                                 <resource>
58                                     <directory>../engine-d/src/main/resources</directory>
59                                     <filtering>false</filtering>
60                                 </resource>
61                             </resources>
62                             <overwrite>true</overwrite>
63                         </configuration>
64                     </execution>
65                     <execution>
66                         <id>copy-resources-${win64id}</id>
67                         <phase>process-resources</phase>
68                         <goals>
69                             <goal>copy-resources</goal>
70                         </goals>
71                         <configuration>
72                             <outputDirectory>${win64outputdir}</outputDirectory>
73                             <resources>
74                                 <resource>
75                                     <directory>src/main/assembly/</directory>
76                                     <filtering>false</filtering>
77                                     <includes>
78                                         <include>**/*</include>
79                                     </includes>
80                                     <excludes>
81                                         <exclude>**/*.sh</exclude>
82                                     </excludes>
83                                 </resource>
84                                                                 <resource>
85                                     <directory>../engine-d/src/main/resources</directory>
86                                     <filtering>false</filtering>
87                                 </resource>
88                             </resources>
89                             <overwrite>true</overwrite>
90                         </configuration>
91                     </execution>
92                     <execution>
93                         <id>copy-dockerfile</id>
94                         <phase>process-resources</phase>
95                         <goals>
96                             <goal>copy-resources</goal>
97                         </goals>
98                         <configuration>
99                             <outputDirectory>target/version</outputDirectory>
100                             <resources>
101                                 <resource>
102                                     <directory>src/main/assembly/</directory>
103                                     <filtering>false</filtering>
104                                     <includes>
105                                         <include>Dockerfile</include>
106                                     </includes>
107                                 </resource>
108                             </resources>
109                             <overwrite>true</overwrite>
110                         </configuration>
111                     </execution>
112                 </executions>
113             </plugin>
114             <plugin>
115                 <groupId>org.apache.maven.plugins</groupId>
116                 <artifactId>maven-dependency-plugin</artifactId>
117                 <executions>
118                     <execution>
119                         <id>copy-jar-${linux64id}</id>
120                         <goals>
121                             <goal>copy</goal>
122                         </goals>
123                         <phase>prepare-package</phase>
124                         <configuration>
125                             <artifactItems>
126                                 <artifactItem>
127                                     <groupId>org.onap.holmes.engine-management</groupId>
128                                     <artifactId>holmes-engine-d</artifactId>
129                                     <type>jar</type>
130                                     <overWrite>true</overWrite>
131                                     <outputDirectory>${linux64outputdir}</outputDirectory>
132                                     <destFileName>holmes-engine-d.jar</destFileName>
133                                 </artifactItem>
134                             </artifactItems>
135                         </configuration>
136                     </execution>
137                     <execution>
138                         <id>copy-jar-${win64id}</id>
139                         <goals>
140                             <goal>copy</goal>
141                         </goals>
142                         <phase>prepare-package</phase>
143                         <configuration>
144                             <artifactItems>
145                                 <artifactItem>
146                                     <groupId>org.onap.holmes.engine-management</groupId>
147                                     <artifactId>holmes-engine-d</artifactId>
148                                     <type>jar</type>
149                                     <overWrite>true</overWrite>
150                                     <outputDirectory>${win64outputdir}</outputDirectory>
151                                     <destFileName>holmes-engine-d.jar</destFileName>
152                                 </artifactItem>
153                             </artifactItems>
154                         </configuration>
155                     </execution>
156                 </executions>
157             </plugin>
158             <plugin>
159                 <groupId>org.apache.maven.plugins</groupId>
160                 <artifactId>maven-assembly-plugin</artifactId>
161                 <executions>
162                     <execution>
163                         <id>linux64</id>
164                         <configuration>
165                             <descriptors>
166                                 <descriptor>linux64-assembly.xml</descriptor>
167                             </descriptors>
168                             <appendAssemblyId>true</appendAssemblyId>
169                             <outputDirectory>target/version</outputDirectory>
170                         </configuration>
171                         <phase>package</phase>
172                         <goals>
173                             <goal>attached</goal>
174                         </goals>
175                     </execution>
176                     <execution>
177                         <id>win64</id>
178                         <configuration>
179                             <descriptors>
180                                 <descriptor>win64-assembly.xml</descriptor>
181                             </descriptors>
182                             <appendAssemblyId>true</appendAssemblyId>
183                             <outputDirectory>target/version</outputDirectory>
184                         </configuration>
185                         <phase>package</phase>
186                         <goals>
187                             <goal>attached</goal>
188                         </goals>
189                     </execution>
190                 </executions>
191             </plugin>
192         </plugins>
193     </build>
194
195     <profiles>
196         <profile>
197             <id>docker</id>
198             <build>
199                 <plugins>
200                     <plugin>
201                         <groupId>io.fabric8</groupId>
202                         <artifactId>docker-maven-plugin</artifactId>
203                         <version>0.16.5</version>
204                         <inherited>false</inherited>
205                         <configuration>
206                             <images>
207                                 <image>
208                                     <name>onap/holmes/engine-management</name>
209                                     <build>
210                                         <cleanup>try</cleanup>
211                                         <dockerFileDir>${basedir}/target/version/</dockerFileDir>
212                                         <dockerFile>${basedir}/target/version/Dockerfile</dockerFile>
213                                         <tags>
214                                             <tag>${project.version}-STAGING-latest</tag>
215                                         </tags>
216                                     </build>
217                                 </image>
218                             </images>
219                         </configuration>
220                         <executions>
221                             <execution>
222                                 <id>generate-images</id>
223                                 <phase>package</phase>
224                                 <goals>
225                                     <goal>build</goal>
226                                 </goals>
227                             </execution>
228
229                             <execution>
230                                 <id>push-images</id>
231                                 <phase>deploy</phase>
232                                 <goals>
233                                     <goal>build</goal>
234                                     <goal>push</goal>
235                                 </goals>
236                             </execution>
237                         </executions>
238                     </plugin>
239                 </plugins>
240             </build>
241         </profile>
242     </profiles>
243
244     <dependencies>
245         <dependency>
246             <groupId>org.onap.holmes.engine-management</groupId>
247             <artifactId>holmes-engine-d</artifactId>
248             <version>${project.version}</version>
249         </dependency>
250     </dependencies>
251 </project>