forked from ocpsoft/rewrite
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpom.xml
More file actions
102 lines (96 loc) · 4 KB
/
Copy pathpom.xml
File metadata and controls
102 lines (96 loc) · 4 KB
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
95
96
97
98
99
100
101
102
<?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/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.ocpsoft.rewrite</groupId>
<artifactId>rewrite-parent</artifactId>
<version>2.0.0-SNAPSHOT</version>
<relativePath>../</relativePath>
</parent>
<artifactId>rewrite-transform-minify</artifactId>
<dependencies>
<dependency>
<groupId>org.ocpsoft.rewrite</groupId>
<artifactId>rewrite-transform</artifactId>
</dependency>
<dependency>
<groupId>org.jboss.spec.javax.servlet</groupId>
<artifactId>jboss-servlet-api_2.5_spec</artifactId>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>com.yahoo.platform.yui</groupId>
<artifactId>yuicompressor</artifactId>
<version>2.4.6</version>
</dependency>
<dependency>
<groupId>rhino</groupId>
<artifactId>js</artifactId>
<version>1.6R7</version>
</dependency>
<dependency>
<groupId>org.ocpsoft.rewrite</groupId>
<artifactId>rewrite-test-harness</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.ocpsoft.rewrite</groupId>
<artifactId>rewrite-config-servlet</artifactId>
<scope>test</scope>
</dependency>
</dependencies>
<build>
<plugins>
<!-- yuicompressor requires a very old version of Mozilla Rhino
and doesn't work with new ones. The other rewrite-transform modules require
a recent version of Rhino. Therefore we shade yuicompressor and the old Rhino
version into the JAR and relocate the corresponding classes -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<version>1.6</version>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>shade</goal>
</goals>
<configuration>
<artifactSet>
<includes>
<include>com.yahoo.platform.yui:yuicompressor</include>
<include>rhino:js</include>
</includes>
</artifactSet>
<filters>
<filter>
<artifact>*:*</artifact>
<includes>
<include>org/ocpsoft/rewrite/**</include>
<include>com/yahoo/**</include>
<include>jargs/**</include>
<include>org/mozilla/**</include>
</includes>
</filter>
</filters>
<relocations>
<relocation>
<pattern>com.yahoo.platform.yui.compressor</pattern>
<shadedPattern>org.ocpsoft.rewrite.transform.minify.shade.com.yahoo.platform.yui.compressor</shadedPattern>
</relocation>
<relocation>
<pattern>jargs.gnu</pattern>
<shadedPattern>org.ocpsoft.rewrite.transform.minify.shade.jargs.gnu</shadedPattern>
</relocation>
<relocation>
<pattern>org.mozilla</pattern>
<shadedPattern>org.ocpsoft.rewrite.transform.minify.shade.org.mozilla</shadedPattern>
</relocation>
</relocations>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>