[maven-release-plugin] prepare release v1.0.0-m1
[jibu.git] / jibu-web / jibu-core-extjs / pom.xml
blob134c67a7b820ae263e6c1e3700403f906422e3aa
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-M1</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           <packagingExcludes>WEB-INF/lib/*.jar,ext/**</packagingExcludes>
55           <!-- 不要把压缩前的js打入war包 -->
56           <warSourceExcludes>js/**/*.js,ext-ux/**/*.js</warSourceExcludes>
57           <overlays>
58             <overlay>
59               <groupId>org.gaixie.extjs-wrapped</groupId>
60               <artifactId>extjs-wrapped</artifactId>
61               <type>zip</type>
62             </overlay>
63           </overlays>
64         </configuration>
65       </plugin>
66       <plugin>
67         <groupId>org.mortbay.jetty</groupId>
68         <artifactId>jetty-maven-plugin</artifactId>
69         <configuration>
70           <!--
71              增加webdefault.xml的配置,解决windows下jetty run时文件lock问题。
72              见http://docs.codehaus.org/display/JETTY/Files+locked+on+Windows (7.1.x的配置稍有不同)
73              多个webapp配置
74              参考6.1.x配置:http://docs.codehaus.org/display/JETTY/Multiple+WebApp+Source+Directory
75              如果7.1.x版本:implementation类不同,
76              见http://download.eclipse.org/jetty/stable-7/apidocs/org/eclipse/jetty/util/resource/ResourceCollection.html
77             -->
78           <webAppConfig>
79             <defaultsDescriptor>src/test/resources/webdefault.xml</defaultsDescriptor>
80             <baseResource implementation="org.eclipse.jetty.util.resource.ResourceCollection">
81               <resourcesAsCSV>src/main/webapp,${build.webappDirectory}</resourcesAsCSV>
82             </baseResource>
83           </webAppConfig>
84         </configuration>
85       </plugin>
86       <plugin>
87         <groupId>net.sf.alchim</groupId>
88         <artifactId>yuicompressor-maven-plugin</artifactId>
89         <version>0.7.1</version>
90         <executions>
91           <execution>
92             <goals>
93               <goal>compress</goal>
94             </goals>
95           </execution>
96         </executions>
97         <configuration>
98           <nosuffix>true</nosuffix>
99           <jswarn>false</jswarn>
100           <encoding>utf-8</encoding>
101           <aggregations>
102             <aggregation>
103               <removeIncluded>true</removeIncluded>
104               <output>${build.webappDirectory}/js/system/administration/administration-all.js</output>
105               <includes>
106                 <include>**/*.js</include>
107               </includes>
108             </aggregation>
109             <aggregation>
110               <removeIncluded>true</removeIncluded>
111               <output>${build.webappDirectory}/ext-ux/ext-ux-all.js</output>
112               <includes>
113                 <include>**/*.js</include>
114               </includes>
115             </aggregation>
116           </aggregations>
117         </configuration>
118       </plugin>
119     </plugins>
120   </build>
121   <dependencies>
122     <dependency>
123       <groupId>junit</groupId>
124       <artifactId>junit</artifactId>
125     </dependency>
126     <dependency>
127       <groupId>org.easymock</groupId>
128       <artifactId>easymock</artifactId>
129     </dependency>
130     <dependency>
131       <groupId>com.google.inject</groupId>
132       <artifactId>guice</artifactId>
133     </dependency>
134     <dependency>
135       <groupId>com.google.inject.extensions</groupId>
136       <artifactId>guice-servlet</artifactId>
137     </dependency>
138     <dependency>
139       <groupId>org.mortbay.jetty</groupId>
140       <artifactId>servlet-api</artifactId>
141     </dependency>
142     <dependency>
143       <groupId>org.slf4j</groupId>
144       <artifactId>slf4j-api</artifactId>
145     </dependency>
146     <dependency>
147       <groupId>ch.qos.logback</groupId>
148       <artifactId>logback-core</artifactId>
149       <scope>runtime</scope>
150     </dependency>
151     <dependency>
152       <groupId>ch.qos.logback</groupId>
153       <artifactId>logback-classic</artifactId>
154       <scope>runtime</scope>
155     </dependency>
156     <dependency>
157       <groupId>org.gaixie.jibu</groupId>
158       <artifactId>jibu-core</artifactId>
159     </dependency>
160     <dependency>
161       <groupId>org.gaixie.jibu.plugins</groupId>
162       <artifactId>jibu-json</artifactId>
163     </dependency>
164     <dependency>
165       <groupId>org.gaixie.extjs-wrapped</groupId>
166       <artifactId>extjs-wrapped</artifactId>
167       <version>3.2.1</version>
168       <type>zip</type>
169     </dependency>
170   </dependencies>
171 </project>