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-M1</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 <packagingExcludes>WEB-INF/lib/*.jar,ext/**</packagingExcludes>
55 <!-- 不要把压缩前的js打入war包 -->
56 <warSourceExcludes>js/**/*.js,ext-ux/**/*.js</warSourceExcludes>
59 <groupId>org.gaixie.extjs-wrapped</groupId>
60 <artifactId>extjs-wrapped</artifactId>
67 <groupId>org.mortbay.jetty</groupId>
68 <artifactId>jetty-maven-plugin</artifactId>
71 增加webdefault.xml的配置,解决windows下jetty run时文件lock问题。
72 见http://docs.codehaus.org/display/JETTY/Files+locked+on+Windows (7.1.x的配置稍有不同)
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
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>
87 <groupId>net.sf.alchim</groupId>
88 <artifactId>yuicompressor-maven-plugin</artifactId>
89 <version>0.7.1</version>
98 <nosuffix>true</nosuffix>
99 <jswarn>false</jswarn>
100 <encoding>utf-8</encoding>
103 <removeIncluded>true</removeIncluded>
104 <output>${build.webappDirectory}/js/system/administration/administration-all.js</output>
106 <include>**/*.js</include>
110 <removeIncluded>true</removeIncluded>
111 <output>${build.webappDirectory}/ext-ux/ext-ux-all.js</output>
113 <include>**/*.js</include>
123 <groupId>junit</groupId>
124 <artifactId>junit</artifactId>
127 <groupId>org.easymock</groupId>
128 <artifactId>easymock</artifactId>
131 <groupId>com.google.inject</groupId>
132 <artifactId>guice</artifactId>
135 <groupId>com.google.inject.extensions</groupId>
136 <artifactId>guice-servlet</artifactId>
139 <groupId>org.mortbay.jetty</groupId>
140 <artifactId>servlet-api</artifactId>
143 <groupId>org.slf4j</groupId>
144 <artifactId>slf4j-api</artifactId>
147 <groupId>ch.qos.logback</groupId>
148 <artifactId>logback-core</artifactId>
149 <scope>runtime</scope>
152 <groupId>ch.qos.logback</groupId>
153 <artifactId>logback-classic</artifactId>
154 <scope>runtime</scope>
157 <groupId>org.gaixie.jibu</groupId>
158 <artifactId>jibu-core</artifactId>
161 <groupId>org.gaixie.jibu.plugins</groupId>
162 <artifactId>jibu-json</artifactId>
165 <groupId>org.gaixie.extjs-wrapped</groupId>
166 <artifactId>extjs-wrapped</artifactId>
167 <version>3.2.1</version>