Add holmes-engine-d-standalone module
[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" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
20     <parent>
21         <groupId>org.openo.holmes.engine-management</groupId>
22         <artifactId>holmes-engine-parent</artifactId>
23         <version>1.1.0-SNAPSHOT</version>
24     </parent>
25
26     <artifactId>holmes-engine-d-standalone</artifactId>
27     <modelVersion>4.0.0</modelVersion>
28     <name>holmes-engine/holmes-engine-d-standalone</name>
29     <packaging>pom</packaging>
30
31     <build>
32         <plugins>
33             <plugin>
34                 <artifactId>maven-resources-plugin</artifactId>
35                 <executions>
36                     <execution>
37                         <id>copy-resources-${linux64id}</id>
38                         <phase>process-resources</phase>
39                         <goals>
40                             <goal>copy-resources</goal>
41                         </goals>
42                         <configuration>
43                             <outputDirectory>${linux64outputdir}</outputDirectory>
44                             <resources>
45                                 <resource>
46                                     <directory>src/main/assembly/</directory>
47                                     <filtering>false</filtering>
48                                     <includes>
49                                         <include>**/*</include>
50                                     </includes>
51                                     <excludes>
52                                         <exclude>**/*.bat</exclude>
53                                     </excludes>
54                                 </resource>
55                             </resources>
56                             <overwrite>true</overwrite>
57                         </configuration>
58                     </execution>
59                     <execution>
60                         <id>copy-resources-${win64id}</id>
61                         <phase>process-resources</phase>
62                         <goals>
63                             <goal>copy-resources</goal>
64                         </goals>
65                         <configuration>
66                             <outputDirectory>${win64outputdir}</outputDirectory>
67                             <resources>
68                                 <resource>
69                                     <directory>src/main/assembly/</directory>
70                                     <filtering>false</filtering>
71                                     <includes>
72                                         <include>**/*</include>
73                                     </includes>
74                                     <excludes>
75                                         <exclude>**/*.sh</exclude>
76                                     </excludes>
77                                 </resource>
78                             </resources>
79                             <overwrite>true</overwrite>
80                         </configuration>
81                     </execution>
82                 </executions>
83             </plugin>
84             <plugin>
85                 <groupId>org.apache.maven.plugins</groupId>
86                 <artifactId>maven-dependency-plugin</artifactId>
87                 <executions>
88                     <execution>
89                         <id>copy-jar-${linux64id}</id>
90                         <goals>
91                             <goal>copy</goal>
92                         </goals>
93                         <phase>prepare-package</phase>
94                         <configuration>
95                             <artifactItems>
96                                 <artifactItem>
97                                     <groupId>org.openo.holmes.engine-management</groupId>
98                                     <artifactId>holmes-engine-d</artifactId>
99                                     <type>jar</type>
100                                     <overWrite>true</overWrite>
101                                     <outputDirectory>${linux64outputdir}</outputDirectory>
102                                     <destFileName>holmes-engine-d.jar</destFileName>
103                                 </artifactItem>
104                             </artifactItems>
105                         </configuration>
106                     </execution>
107                     <execution>
108                         <id>copy-jar-${win64id}</id>
109                         <goals>
110                             <goal>copy</goal>
111                         </goals>
112                         <phase>prepare-package</phase>
113                         <configuration>
114                             <artifactItems>
115                                 <artifactItem>
116                                     <groupId>org.openo.holmes.engine-management</groupId>
117                                     <artifactId>holmes-engine-d</artifactId>
118                                     <type>jar</type>
119                                     <overWrite>true</overWrite>
120                                     <outputDirectory>${win64outputdir}</outputDirectory>
121                                     <destFileName>holmes-engine-d.jar</destFileName>
122                                 </artifactItem>
123                             </artifactItems>
124                         </configuration>
125                     </execution>
126                 </executions>
127             </plugin>
128             <plugin>
129                 <groupId>org.apache.maven.plugins</groupId>
130                 <artifactId>maven-antrun-plugin</artifactId>
131                 <executions>
132                     <execution>
133                         <id>distribution</id>
134                         <phase>package</phase>
135                         <goals>
136                             <goal>run</goal>
137                         </goals>
138                         <configuration>
139                             <target name="distribution">
140                                 <tar destfile="${version.output}/${packagename}-${project.version}-linux64.tar.gz" longfile="posix" compression="gzip">
141                                     <tarfileset dir="target/assembly/linux64" filemode="0644" dirmode="0755">
142                                         <exclude name="**/*.sh"/>
143                                     </tarfileset>
144                                     <tarfileset dir="target/assembly/linux64" filemode="0755" dirmode="0755">
145                                         <include name="**/*.sh"/>
146                                     </tarfileset>
147                                 </tar>
148                                 <attachartifact file="${version.output}/${packagename}-${project.version}-linux64.tar.gz" classifier="linux64" type="tar.gz"/>
149                                 <zip destfile="${version.output}/${packagename}-${project.version}-win64.zip" update="true">
150                                     <zipfileset dir="target/assembly/win64" includes="**"/>
151                                 </zip>
152                                 <attachartifact file="${version.output}/${packagename}-${project.version}-win64.zip" classifier="win64" type="zip"/>
153                             </target>
154                         </configuration>
155                     </execution>
156                 </executions>
157             </plugin>
158         </plugins>
159     </build>
160
161     <dependencies>
162         <dependency>
163                         <groupId>org.openo.holmes.engine-management</groupId>
164             <artifactId>holmes-engine-d</artifactId>
165             <version>${project.version}</version>
166         </dependency>
167     </dependencies>  
168 </project>