Re-enable javascript compression (it now also compresses inline and remote url conten...
[shindig.git] / features / pom.xml
blob6f2124e659b5429f1a62bad8e3b07987bd64c62f
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3  * Licensed to the Apache Software Foundation (ASF) under one
4  * or more contributor license agreements.  See the NOTICE file
5  * distributed with this work for additional information
6  * regarding copyright ownership.  The ASF licenses this file
7  * to you under the Apache License, Version 2.0 (the
8  * "License"); you may not use this file except in compliance
9  * with the License.  You may obtain a copy of the License at
10  *
11  *   http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing,
14  * software distributed under the License is distributed on an
15  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16  * KIND, either express or implied.  See the License for the
17  * specific language governing permissions and limitations
18  * under the License.
19 -->
20 <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">
21   <modelVersion>4.0.0</modelVersion>
23   <parent>
24     <groupId>org.apache.shindig</groupId>
25     <artifactId>shindig-project</artifactId>
26     <version>1.1-SNAPSHOT</version>
27     <relativePath>../pom.xml</relativePath>
28   </parent>
30   <artifactId>shindig-features</artifactId>
31   <packaging>jar</packaging>
33   <name>Apache Shindig Features</name>
34   <description>Packages all the features that shindig provides into a single jar file to allow
35     loading from the classpath
36   </description>
38   <scm>
39     <connection>scm:svn:http://svn.apache.org/repos/asf/incubator/shindig/trunk/features</connection>
40     <developerConnection>scm:svn:https://svn.apache.org/repos/asf/incubator/shindig/trunk/features</developerConnection>
41     <url>http://svn.apache.org/viewvc/incubator/shindig/trunk/features</url>
42   </scm>
44   <build>
45     <pluginManagement>
46       <!-- set versions of common plugins for reproducibility, ordered alphabetically by owner -->
47       <plugins>
48         <!-- Misc -->
49         <plugin>
50           <groupId>de.berlios.jsunit</groupId>
51           <artifactId>jsunit-maven2-plugin</artifactId>
52           <version>1.3</version>
53         </plugin>
54         <plugin>
55           <groupId>net.sf.alchim</groupId>
56           <artifactId>yuicompressor-maven-plugin</artifactId>
57           <version>0.7.1</version>
58         </plugin>
59       </plugins>
60     </pluginManagement>
62     <!-- ordered alphabetically by owner -->
63     <plugins>
64       <plugin>
65         <groupId>de.berlios.jsunit</groupId>
66         <artifactId>jsunit-maven2-plugin</artifactId>
67         <executions>
68           <execution>
69             <configuration>
70               <sourceDirectory>${basedir}</sourceDirectory>
71               <sources>
72                 <source>mocks/env.js</source>
73                 <source>mocks/xhr.js</source>
74                 <source>core/config.js</source>
75                 <source>core/json.js</source>
76                 <source>core/auth.js</source>
77                 <source>core/util.js</source>
78                 <source>core/prefs.js</source>
79                 <source>core.io/io.js</source>
80                 <source>views/views.js</source>
81                 <source>opensocial-reference/opensocial.js</source>
82                 <source>opensocial-reference/activity.js</source>
83                 <source>opensocial-reference/address.js</source>
84                 <source>opensocial-reference/bodytype.js</source>
85                 <source>opensocial-reference/collection.js</source>
86                 <source>opensocial-reference/container.js</source>
87                 <source>opensocial-reference/datarequest.js</source>
88                 <source>opensocial-reference/dataresponse.js</source>
89                 <source>opensocial-reference/email.js</source>
90                 <source>opensocial-reference/enum.js</source>
91                 <source>opensocial-reference/environment.js</source>
92                 <source>opensocial-reference/idspec.js</source>
93                 <source>opensocial-reference/mediaitem.js</source>
94                 <source>opensocial-reference/message.js</source>
95                 <source>opensocial-reference/name.js</source>
96                 <source>opensocial-reference/navigationparameters.js</source>
97                 <source>opensocial-reference/organization.js</source>
98                 <source>opensocial-reference/person.js</source>
99                 <source>opensocial-reference/phone.js</source>
100                 <source>opensocial-reference/responseitem.js</source>
101                 <source>opensocial-reference/url.js</source>
102                 <source>opensocial-base/jsonactivity.js</source>
103                 <source>opensocial-base/jsonperson.js</source>
104                 <source>opensocial-rest/restfulcontainer.js</source>
105                 <source>opensocial-jsonrpc/jsonrpccontainer.js</source>
106               </sources>
107               <testSourceDirectory>${basedir}</testSourceDirectory>
108               <testSuites>
109                 <testSuite>
110                   <name>FeatureTests</name>
111                   <type>TESTCASES</type>
112                   <includes>
113                     <include>*/*test.js</include>
114                   </includes>
115                 </testSuite>
116               </testSuites>
117             </configuration>
118             <goals>
119               <goal>jsunit-test</goal>
120             </goals>
121           </execution>
122         </executions>
123       </plugin>
124       <plugin>
125         <!-- TODO: Replace this with the more generic javascript plugin that
126           allows the use of arbitrary compressor / compilers.
127           The maven-javascript-plugin does not seem to work.
128         -->
129         <!-- <groupId>net.sf.hammerfest</groupId> -->
130         <!-- <artifactId>maven-javascript-plugin</artifactId> -->
131         <groupId>net.sf.alchim</groupId>
132         <artifactId>yuicompressor-maven-plugin</artifactId>
133         <executions>
134           <execution>
135             <goals>
136               <goal>compress</goal>
137             </goals>
138           </execution>
139         </executions>
140         <configuration>
141           <suffix>.opt</suffix>
142           <excludes>
143             <exclude>target/**</exclude>
144             <!-- don't bother with other file types. -->
145             <exclude>**/*.xml</exclude>
146             <exclude>**/*.html</exclude>
147             <exclude>**/*.gif</exclude>
148             <exclude>**/*.jpeg</exclude>
149             <exclude>**/*.png</exclude>
150             <!-- Caja is already minified -->
151             <exclude>**/caja/*.js</exclude>
152           </excludes>
153           <jswarn>false</jswarn>
154           <statistics>false</statistics>
155         </configuration>
156       </plugin>
157     </plugins>
158     <resources>
159       <resource>
160         <targetPath>features</targetPath>
161         <directory>${basedir}</directory>
162         <excludes>
163           <exclude>pom.xml</exclude>
164           <!-- SVN ignore -->
165           <exclude>target/**</exclude>
166           <exclude>work</exclude>
167           <exclude>dojo</exclude>
168           <exclude>*.iws</exclude>
169           <exclude>*.ipr</exclude>
170           <exclude>*.iml</exclude>
171           <exclude>derby.log</exclude>
172           <exclude>maven.log</exclude>
173           <exclude>build.xml</exclude>
174           <exclude>build-dependency.xml</exclude>
175           <exclude>velocity.log*</exclude>
176           <exclude>junit*.properties</exclude>
177           <exclude>surefire*.properties</exclude>
178           <exclude>.project</exclude>
179           <exclude>.classpath</exclude>
180           <exclude>.settings/**</exclude>
181           <exclude>.deployables</exclude>
182           <exclude>.wtpmodules</exclude>
183           <exclude>.externalToolBuilders/**</exclude>
184         </excludes>
185       </resource>
186     </resources>
187   </build>
188 </project>