Changed the Component Version to 1.2.0
[holmes/dsa.git] / dmaap-dsa-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.dsa</groupId>
24         <artifactId>holmes-dsa-parent</artifactId>
25         <version>1.2.0</version>
26     </parent>
27
28     <artifactId>holmes-dmaap-dsa-standalone</artifactId>
29     <modelVersion>4.0.0</modelVersion>
30     <name>holmes-dsa/holmes-dmaap-dsa-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                             </resources>
58                             <overwrite>true</overwrite>
59                         </configuration>
60                     </execution>
61                     <execution>
62                         <id>copy-resources-${win64id}</id>
63                         <phase>process-resources</phase>
64                         <goals>
65                             <goal>copy-resources</goal>
66                         </goals>
67                         <configuration>
68                             <outputDirectory>${win64outputdir}</outputDirectory>
69                             <resources>
70                                 <resource>
71                                     <directory>src/main/assembly/</directory>
72                                     <filtering>false</filtering>
73                                     <includes>
74                                         <include>**/*</include>
75                                     </includes>
76                                     <excludes>
77                                         <exclude>**/*.sh</exclude>
78                                     </excludes>
79                                 </resource>
80                             </resources>
81                             <overwrite>true</overwrite>
82                         </configuration>
83                     </execution>
84                     <execution>
85                         <id>copy-dockerfile</id>
86                         <phase>process-resources</phase>
87                         <goals>
88                             <goal>copy-resources</goal>
89                         </goals>
90                         <configuration>
91                             <outputDirectory>target/version</outputDirectory>
92                             <resources>
93                                 <resource>
94                                     <directory>src/main/assembly/</directory>
95                                     <filtering>false</filtering>
96                                     <includes>
97                                         <include>Dockerfile</include>
98                                     </includes>
99                                 </resource>
100                             </resources>
101                             <overwrite>true</overwrite>
102                         </configuration>
103                     </execution>
104                 </executions>
105             </plugin>
106             <plugin>
107                 <groupId>org.apache.maven.plugins</groupId>
108                 <artifactId>maven-dependency-plugin</artifactId>
109                 <executions>
110                     <execution>
111                         <id>copy-jar-${linux64id}</id>
112                         <goals>
113                             <goal>copy</goal>
114                         </goals>
115                         <phase>prepare-package</phase>
116                         <configuration>
117                             <artifactItems>
118                                 <artifactItem>
119                                     <groupId>org.onap.holmes.dsa</groupId>
120                                     <artifactId>dmaap-dsa</artifactId>
121                                     <type>jar</type>
122                                     <overWrite>true</overWrite>
123                                     <outputDirectory>${linux64outputdir}</outputDirectory>
124                                     <destFileName>dmaap-dsa.jar</destFileName>
125                                 </artifactItem>
126                             </artifactItems>
127                         </configuration>
128                     </execution>
129                     <execution>
130                         <id>copy-jar-${win64id}</id>
131                         <goals>
132                             <goal>copy</goal>
133                         </goals>
134                         <phase>prepare-package</phase>
135                         <configuration>
136                             <artifactItems>
137                                 <artifactItem>
138                                     <groupId>org.onap.holmes.dsa</groupId>
139                                     <artifactId>dmaap-dsa</artifactId>
140                                     <type>jar</type>
141                                     <overWrite>true</overWrite>
142                                     <outputDirectory>${win64outputdir}</outputDirectory>
143                                     <destFileName>dmaap-dsa.jar</destFileName>
144                                 </artifactItem>
145                             </artifactItems>
146                         </configuration>
147                     </execution>
148                 </executions>
149             </plugin>
150             <plugin>
151                 <groupId>org.apache.maven.plugins</groupId>
152                 <artifactId>maven-assembly-plugin</artifactId>
153                 <executions>
154                     <execution>
155                         <id>linux64</id>
156                         <configuration>
157                             <descriptors>
158                                 <descriptor>linux64-assembly.xml</descriptor>
159                             </descriptors>
160                             <appendAssemblyId>true</appendAssemblyId>
161                             <outputDirectory>target/version</outputDirectory>
162                         </configuration>
163                         <phase>package</phase>
164                         <goals>
165                             <goal>attached</goal>
166                         </goals>
167                     </execution>
168                     <execution>
169                         <id>win64</id>
170                         <configuration>
171                             <descriptors>
172                                 <descriptor>win64-assembly.xml</descriptor>
173                             </descriptors>
174                             <appendAssemblyId>true</appendAssemblyId>
175                             <outputDirectory>target/version</outputDirectory>
176                         </configuration>
177                         <phase>package</phase>
178                         <goals>
179                             <goal>attached</goal>
180                         </goals>
181                     </execution>
182                 </executions>
183             </plugin>
184         </plugins>
185     </build>
186
187     <profiles>
188         <profile>
189             <id>docker</id>
190             <build>
191                 <plugins>
192                     <plugin>
193                         <groupId>io.fabric8</groupId>
194                         <artifactId>docker-maven-plugin</artifactId>
195                         <version>0.16.5</version>
196                         <inherited>false</inherited>
197                         <configuration>
198                             <images>
199                                 <image>
200                                     <name>onap/holmes/dsa</name>
201                                     <build>
202                                         <cleanup>try</cleanup>
203                                         <dockerFileDir>${basedir}/target/version/</dockerFileDir>
204                                         <dockerFile>${basedir}/target/version/Dockerfile</dockerFile>
205                                         <tags>
206                                             <tag>${project.version}-STAGING-latest</tag>
207                                         </tags>
208                                     </build>
209                                 </image>
210                             </images>
211                         </configuration>
212                         <executions>
213                             <execution>
214                                 <id>generate-images</id>
215                                 <phase>package</phase>
216                                 <goals>
217                                     <goal>build</goal>
218                                 </goals>
219                             </execution>
220
221                             <execution>
222                                 <id>push-images</id>
223                                 <phase>deploy</phase>
224                                 <goals>
225                                     <goal>build</goal>
226                                     <goal>push</goal>
227                                 </goals>
228                             </execution>
229                         </executions>
230                     </plugin>
231                 </plugins>
232             </build>
233         </profile>
234     </profiles>
235
236     <dependencies>
237         <dependency>
238             <groupId>org.onap.holmes.dsa</groupId>
239             <artifactId>dmaap-dsa</artifactId>
240             <version>${project.version}</version>
241         </dependency>
242     </dependencies>
243 </project>