Create directories for DSA
[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.0.0-SNAPSHOT</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         </executions>
85       </plugin>
86       <plugin>
87         <groupId>org.apache.maven.plugins</groupId>
88         <artifactId>maven-dependency-plugin</artifactId>
89         <executions>
90           <execution>
91             <id>copy-jar-${linux64id}</id>
92             <goals>
93               <goal>copy</goal>
94             </goals>
95             <phase>prepare-package</phase>
96             <configuration>
97               <artifactItems>
98                 <artifactItem>
99                   <groupId>org.onap.holmes.dsa</groupId>
100                   <artifactId>dmaap-dsa</artifactId>
101                   <type>jar</type>
102                   <overWrite>true</overWrite>
103                   <outputDirectory>${linux64outputdir}</outputDirectory>
104                   <destFileName>dmaap-dsa.jar</destFileName>
105                 </artifactItem>
106               </artifactItems>
107             </configuration>
108           </execution>
109           <execution>
110             <id>copy-jar-${win64id}</id>
111             <goals>
112               <goal>copy</goal>
113             </goals>
114             <phase>prepare-package</phase>
115             <configuration>
116               <artifactItems>
117                 <artifactItem>
118                   <groupId>org.onap.holmes.dsa</groupId>
119                   <artifactId>dmaap-dsa</artifactId>
120                   <type>jar</type>
121                   <overWrite>true</overWrite>
122                   <outputDirectory>${win64outputdir}</outputDirectory>
123                   <destFileName>dmaap-dsa.jar</destFileName>
124                 </artifactItem>
125               </artifactItems>
126             </configuration>
127           </execution>
128         </executions>
129       </plugin>
130       <plugin>
131         <groupId>org.apache.maven.plugins</groupId>
132         <artifactId>maven-assembly-plugin</artifactId>
133         <executions>
134           <execution>
135             <id>linux64</id>
136             <configuration>
137               <descriptors>
138                 <descriptor>linux64-assembly.xml</descriptor>
139               </descriptors>
140               <appendAssemblyId>true</appendAssemblyId>
141               <outputDirectory>target/version</outputDirectory>
142             </configuration>
143             <phase>package</phase>
144             <goals>
145               <goal>attached</goal>
146             </goals>
147           </execution>
148           <execution>
149             <id>win64</id>
150             <configuration>
151               <descriptors>
152                 <descriptor>win64-assembly.xml</descriptor>
153               </descriptors>
154               <appendAssemblyId>true</appendAssemblyId>
155               <outputDirectory>target/version</outputDirectory>
156             </configuration>
157             <phase>package</phase>
158             <goals>
159               <goal>attached</goal>
160             </goals>
161           </execution>
162         </executions>
163       </plugin>
164     </plugins>
165   </build>
166
167   <dependencies>
168     <dependency>
169       <groupId>org.onap.holmes.dsa</groupId>
170       <artifactId>dmaap-dsa</artifactId>
171       <version>${project.version}</version>
172     </dependency>
173   </dependencies>
174 </project>