forked from webjars/elasticsearch-js
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpom.xml
94 lines (85 loc) · 3.63 KB
/
pom.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://maven.apache.org/POM/4.0.0"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.webjars</groupId>
<artifactId>webjars-parent-maven</artifactId>
<version>1</version>
</parent>
<packaging>jar</packaging>
<artifactId>elasticsearch-js</artifactId>
<version>2.3.0-SNAPSHOT</version>
<name>elasticsearch-js</name>
<description>WebJar for Elasticsearch.js</description>
<url>http://webjars.org</url>
<properties>
<elasticsearch.version>2.3.0</elasticsearch.version>
<elasticsearch.sourceUrl>https://download.elasticsearch.org/elasticsearch/elasticsearch-js
</elasticsearch.sourceUrl>
<destDir>${project.build.outputDirectory}/META-INF/resources/webjars/${project.artifactId}/${elasticsearch.version}</destDir>
</properties>
<licenses>
<license>
<name>Apache 2.0</name>
<url>https://github.com/elasticsearch/elasticsearch-js/blob/master/LICENSE</url>
<distribution>repo</distribution>
</license>
</licenses>
<scm>
<url>http://github.com/webjars/elasticsearch-js</url>
<connection>scm:git:https://github.com/webjars/elasticsearch-js.git</connection>
<developerConnection>scm:git:https://github.com/webjars/elasticsearch-js.git</developerConnection>
<tag>HEAD</tag>
</scm>
<developers>
<developer>
<id>arenard</id>
<name>Arnaud RENARD</name>
<email>[email protected]</email>
</developer>
</developers>
<build>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>wagon-maven-plugin</artifactId>
<executions>
<execution>
<phase>process-resources</phase>
<goals>
<goal>download-single</goal>
</goals>
<configuration>
<url>${elasticsearch.sourceUrl}</url>
<fromFile>elasticsearch-js-${elasticsearch.version}.zip</fromFile>
<toFile>${project.build.directory}/${project.artifactId}.zip</toFile>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-antrun-plugin</artifactId>
<executions>
<execution>
<phase>process-resources</phase>
<goals>
<goal>run</goal>
</goals>
<configuration>
<target>
<echo message="unzip archive"/>
<unzip src="${project.build.directory}/${project.artifactId}.zip"
dest="${project.build.directory}"/>
<echo message="moving resources"/>
<move todir="${destDir}">
<fileset dir="${project.build.directory}/elasticsearch-js"/>
</move>
</target>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>