1 <?xml version="1.0" encoding="UTF-8"?>
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.
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>
21 <groupId>org.gaixie.jibu.web</groupId>
22 <artifactId>web</artifactId>
23 <version>1.0.0-SNAPSHOT</version>
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>
32 <build.webappDirectory>${project.build.directory}/${project.build.finalName}</build.webappDirectory>
39 <directory>../../jibu-core/src/main/resources</directory>
42 <directory>src/main/resources</directory>
47 重新指定编译后class文件的位置,否则每次mvn jetty:run之前都要mvn package
49 <outputDirectory>${build.webappDirectory}/WEB-INF/classes</outputDirectory>
52 <artifactId>maven-war-plugin</artifactId>
54 <attachClasses>true</attachClasses>
55 <packagingExcludes>WEB-INF/lib/*.jar,ext/**</packagingExcludes>
56 <!-- 不要把压缩前的js打入war包 -->
57 <warSourceExcludes>js/**/*.js,ext-ux/**/*.js</warSourceExcludes>
60 <groupId>org.gaixie.extjs-wrapped</groupId>
61 <artifactId>extjs-wrapped</artifactId>
68 <groupId>org.mortbay.jetty</groupId>
69 <artifactId>jetty-maven-plugin</artifactId>
72 增加webdefault.xml的配置,解决windows下jetty run时文件lock问题。
73 见http://docs.codehaus.org/display/JETTY/Files+locked+on+Windows (7.1.x的配置稍有不同)
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
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>
88 <groupId>net.sf.alchim</groupId>
89 <artifactId>yuicompressor-maven-plugin</artifactId>
90 <version>0.7.1</version>
99 <nosuffix>true</nosuffix>
100 <jswarn>false</jswarn>
101 <encoding>utf-8</encoding>
104 <removeIncluded>true</removeIncluded>
105 <output>${build.webappDirectory}/js/system/administration/administration-all.js</output>
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>
115 <removeIncluded>true</removeIncluded>
116 <output>${build.webappDirectory}/js/system/system-all.js</output>
118 <include>${build.webappDirectory}/js/system/setting.js</include>
122 <removeIncluded>true</removeIncluded>
123 <output>${build.webappDirectory}/ext-ux/ext-ux-all.js</output>
125 <include>**/*.js</include>
135 <groupId>junit</groupId>
136 <artifactId>junit</artifactId>
139 <groupId>org.easymock</groupId>
140 <artifactId>easymock</artifactId>
143 <groupId>com.google.inject</groupId>
144 <artifactId>guice</artifactId>
147 <groupId>com.google.inject.extensions</groupId>
148 <artifactId>guice-servlet</artifactId>
151 <groupId>org.mortbay.jetty</groupId>
152 <artifactId>servlet-api</artifactId>
155 <groupId>org.slf4j</groupId>
156 <artifactId>slf4j-api</artifactId>
159 <groupId>ch.qos.logback</groupId>
160 <artifactId>logback-core</artifactId>
161 <scope>runtime</scope>
164 <groupId>ch.qos.logback</groupId>
165 <artifactId>logback-classic</artifactId>
166 <scope>runtime</scope>
169 <groupId>org.gaixie.jibu</groupId>
170 <artifactId>jibu-core</artifactId>
173 <groupId>org.gaixie.jibu.plugins</groupId>
174 <artifactId>jibu-json</artifactId>
177 <groupId>org.gaixie.jibu.plugins</groupId>
178 <artifactId>jibu-mail</artifactId>
181 <groupId>org.gaixie.extjs-wrapped</groupId>
182 <artifactId>extjs-wrapped</artifactId>