-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathpom.xml
71 lines (70 loc) · 4.6 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
<?xml version="1.0" encoding="UTF-8"?>
<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/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.jqueryui</groupId>
<artifactId>jquery.ui</artifactId>
<name>jquery UI</name>
<version>1.8.20</version>
<packaging>jar</packaging>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<jqueryui.version>1.8.20</jqueryui.version>
<jqueryui.sourceUrl>http://jquery-ui.googlecode.com/files/</jqueryui.sourceUrl>
<destDir>${project.build.directory}/classes/public</destDir>
</properties>
<build>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>wagon-maven-plugin</artifactId>
<version>1.0-beta-4</version>
<executions>
<execution>
<phase>process-resources</phase>
<goals><goal>download-single</goal></goals>
<configuration>
<url>${jqueryui.sourceUrl}</url>
<fromFile>jquery-ui-${jqueryui.version}.zip</fromFile>
<toFile>${project.build.directory}/jquery-ui.zip</toFile>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-antrun-plugin</artifactId>
<version>1.7</version>
<executions>
<execution>
<phase>process-resources</phase>
<goals><goal>run</goal></goals>
<configuration>
<target>
<echo message="unzip archive" />
<unzip src="${project.build.directory}/jquery-ui.zip" dest="${project.build.directory}/jquery-ui" />
<echo message="moving javascripts resources" />
<copy todir="${destDir}/javascripts" overwrite="true" verbose="true">
<resources>
<file file="${project.build.directory}/jquery-ui/jquery-ui-${jqueryui.version}/ui/jquery-ui.js" basedir="${project.build.directory}/jquery-ui/jquery-ui-${jqueryui.version}/ui/" />
<file file="${project.build.directory}/jquery-ui/jquery-ui-${jqueryui.version}/ui/i18n/jquery-ui-i18n.js" basedir="${project.build.directory}/jquery-ui/jquery-ui-${jqueryui.version}/ui/i18n/" />
<file file="${project.build.directory}/jquery-ui/jquery-ui-${jqueryui.version}/ui/minified/jquery-ui.min.js" basedir="${project.build.directory}/jquery-ui/jquery-ui-${jqueryui.version}/ui/minified/" />
<file file="${project.build.directory}/jquery-ui/jquery-ui-${jqueryui.version}/ui/minified/i18n/jquery-ui-i18n.min.js" basedir="${project.build.directory}/jquery-ui/jquery-ui-${jqueryui.version}/ui/minified/i18n/" />
</resources>
</copy>
<echo message="moving style resources" />
<copy todir="${destDir}/stylesheets" overwrite="true" verbose="true">
<resources>
<file file="${project.build.directory}/jquery-ui/jquery-ui-${jqueryui.version}/themes/base/jquery-ui.css" basedir="${project.build.directory}/jquery-ui/jquery-ui-${jqueryui.version}/themes/base/" />
<file file="${project.build.directory}/jquery-ui/jquery-ui-${jqueryui.version}/themes/base/minified/jquery-ui.min.css" basedir="${project.build.directory}/jquery-ui/jquery-ui-${jqueryui.version}/themes/base/minified/" />
</resources>
</copy>
<copy todir="${destDir}/stylesheets/images" overwrite="true" verbose="true">
<fileset dir="${project.build.directory}/jquery-ui/jquery-ui-${jqueryui.version}/themes/base/images" />
</copy>
</target>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>