[maven-release-plugin] prepare release v1.0.0-rc1
[jibu.git] / jibu-web / jibu-core-extjs / pom.xml
blob0055eca95a819550dac6e3603590620729e96474
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3    Licensed to the Apache Software Foundation (ASF) under one or more
4    contributor license agreements.  See the NOTICE file distributed with
5    this work for additional information regarding copyright ownership.
6    The ASF licenses this file to You under the Apache License, Version 2.0
7    (the "License"); you may not use this file except in compliance with
8    the License.  You may obtain a copy of the License at
10    http://www.apache.org/licenses/LICENSE-2.0
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 <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">
19   <modelVersion>4.0.0</modelVersion>
20   <parent>
21     <groupId>org.gaixie.jibu.web</groupId>
22     <artifactId>web</artifactId>
23     <version>1.0.0-RC1</version>
24   </parent>
26   <groupId>org.gaixie.jibu.web</groupId>
27   <artifactId>jibu-core-extjs</artifactId>
28   <name>Jibu Web :: Core (UI based Extjs)</name>
29   <packaging>war</packaging>
31   <properties>
32     <build.webappDirectory>${project.build.directory}/${project.build.finalName}</build.webappDirectory>
33   </properties>
35   <build>
37     <resources>
38       <resource>
39         <directory>../../jibu-core/src/main/resources</directory>
40       </resource>
41       <resource>
42         <directory>src/main/resources</directory>
43       </resource>
44     </resources>
46     <!--
47        重新指定编译后class文件的位置,否则每次mvn jetty:run之前都要mvn package
48       -->
49     <outputDirectory>${build.webappDirectory}/WEB-INF/classes</outputDirectory>
50     <plugins>
51       <plugin>
52         <artifactId>maven-war-plugin</artifactId>
53         <configuration>
54           <attachClasses>true</attachClasses>
55           <packagingExcludes>WEB-INF/lib/*.jar,ext/**</packagingExcludes>
56           <!-- 不要把压缩前的js打入war包 -->
57           <warSourceExcludes>js/**/*.js,ext-ux/**/*.js</warSourceExcludes>
58           <overlays>
59             <overlay>
60               <groupId>org.gaixie.extjs-wrapped</groupId>
61               <artifactId>extjs-wrapped</artifactId>
62               <type>zip</type>
63             </overlay>
64           </overlays>
65         </configuration>
66       </plugin>
67       <plugin>
68         <groupId>org.mortbay.jetty</groupId>
69         <artifactId>jetty-maven-plugin</artifactId>
70         <configuration>
71           <!--
72              增加webdefault.xml的配置,解决windows下jetty run时文件lock问题。
73              见http://docs.codehaus.org/display/JETTY/Files+locked+on+Windows (7.1.x的配置稍有不同)
74              多个webapp配置
75              参考6.1.x配置:http://docs.codehaus.org/display/JETTY/Multiple+WebApp+Source+Directory
76              如果7.1.x版本:implementation类不同,
77              见http://download.eclipse.org/jetty/stable-7/apidocs/org/eclipse/jetty/util/resource/ResourceCollection.html
78             -->
79           <webAppConfig>
80             <defaultsDescriptor>src/test/resources/webdefault.xml</defaultsDescriptor>
81             <baseResource implementation="org.eclipse.jetty.util.resource.ResourceCollection">
82               <resourcesAsCSV>src/main/webapp,${build.webappDirectory}</resourcesAsCSV>
83             </baseResource>
84           </webAppConfig>
85         </configuration>
86       </plugin>
87       <plugin>
88         <groupId>net.sf.alchim</groupId>
89         <artifactId>yuicompressor-maven-plugin</artifactId>
90         <version>0.7.1</version>
91         <executions>
92           <execution>
93             <goals>
94               <goal>compress</goal>
95             </goals>
96           </execution>
97         </executions>
98         <configuration>
99           <nosuffix>true</nosuffix>
100           <jswarn>false</jswarn>
101           <encoding>utf-8</encoding>
102           <aggregations>
103             <aggregation>
104               <removeIncluded>true</removeIncluded>
105               <output>${build.webappDirectory}/js/system/administration/administration-all.js</output>
106               <includes>
107                 <include>${build.webappDirectory}/js/system/administration/user.js</include>
108                 <include>${build.webappDirectory}/js/system/administration/role.js</include>
109                 <include>${build.webappDirectory}/js/system/administration/authority.js</include>
110                 <include>${build.webappDirectory}/js/system/administration/pm.js</include>
111                 <include>${build.webappDirectory}/js/system/administration/monitor.js</include>
112               </includes>
113             </aggregation>
114             <aggregation>
115               <removeIncluded>true</removeIncluded>
116               <output>${build.webappDirectory}/js/system/system-all.js</output>
117               <includes>
118                 <include>${build.webappDirectory}/js/system/setting.js</include>
119               </includes>
120             </aggregation>
121             <aggregation>
122               <removeIncluded>true</removeIncluded>
123               <output>${build.webappDirectory}/ext-ux/ext-ux-all.js</output>
124               <includes>
125                 <include>**/*.js</include>
126               </includes>
127             </aggregation>
128           </aggregations>
129         </configuration>
130       </plugin>
131     </plugins>
132   </build>
133   <dependencies>
134     <dependency>
135       <groupId>junit</groupId>
136       <artifactId>junit</artifactId>
137     </dependency>
138     <dependency>
139       <groupId>org.easymock</groupId>
140       <artifactId>easymock</artifactId>
141     </dependency>
142     <dependency>
143       <groupId>com.google.inject</groupId>
144       <artifactId>guice</artifactId>
145     </dependency>
146     <dependency>
147       <groupId>com.google.inject.extensions</groupId>
148       <artifactId>guice-servlet</artifactId>
149     </dependency>
150     <dependency>
151       <groupId>org.mortbay.jetty</groupId>
152       <artifactId>servlet-api</artifactId>
153     </dependency>
154     <dependency>
155       <groupId>org.slf4j</groupId>
156       <artifactId>slf4j-api</artifactId>
157     </dependency>
158     <dependency>
159       <groupId>ch.qos.logback</groupId>
160       <artifactId>logback-core</artifactId>
161       <scope>runtime</scope>
162     </dependency>
163     <dependency>
164       <groupId>ch.qos.logback</groupId>
165       <artifactId>logback-classic</artifactId>
166       <scope>runtime</scope>
167     </dependency>
168     <dependency>
169       <groupId>org.gaixie.jibu</groupId>
170       <artifactId>jibu-core</artifactId>
171     </dependency>
172     <dependency>
173       <groupId>org.gaixie.jibu.plugins</groupId>
174       <artifactId>jibu-json</artifactId>
175     </dependency>
176     <dependency>
177       <groupId>org.gaixie.jibu.plugins</groupId>
178       <artifactId>jibu-mail</artifactId>
179     </dependency>
180     <dependency>
181       <groupId>org.gaixie.extjs-wrapped</groupId>
182       <artifactId>extjs-wrapped</artifactId>
183       <type>zip</type>
184     </dependency>
185   </dependencies>
186 </project>