| Commit [+] | Author | Date | Line | Data |
|---|---|---|---|---|
| 7e788128 TW |
Tommy Wang | 2010-07-26 01:15:27 +0800 | 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 | |||
| 9 | ||||
| 10 | http://www.apache.org/licenses/LICENSE-2.0 | |||
| 11 | ||||
| 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:xsi="http://www.w3.org/2001/XMLSchema-instance" | |||
| dac81c45 TW |
Tommy Wang | 2010-07-27 10:06:16 +0800 | 19 | xmlns="http://maven.apache.org/POM/4.0.0" |
| 20 | xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> | |||
| 7e788128 TW |
Tommy Wang | 2010-07-26 01:15:27 +0800 | 21 | <modelVersion>4.0.0</modelVersion> |
| 22 | <parent> | |||
| 23 | <groupId>org.gaixie.jibu</groupId> | |||
| 24 | <artifactId>jibu-web</artifactId> | |||
| 25 | <version>1.0.0-SNAPSHOT</version> | |||
| 26 | </parent> | |||
| 27 | ||||
| 28 | <groupId>org.gaixie.jibu.web</groupId> | |||
| 29 | <artifactId>jibu-core-extjs</artifactId> | |||
| 30 | <name>Jibu Web :: Core (Extjs)</name> | |||
| 31 | <packaging>war</packaging> | |||
| 32 | ||||
| 33 | <properties> | |||
| 34 | <build.webappDirectory>${project.build.directory}/${project.build.finalName}</build.webappDirectory> | |||
| 35 | </properties> | |||
| 0e1dccd8 | Tommy Wang | 2010-07-28 19:25:38 +0800 | 36 | |
| 7e788128 | Tommy Wang | 2010-07-26 01:15:27 +0800 | 37 | <build> |
| dac81c45 TW |
Tommy Wang | 2010-07-27 10:06:16 +0800 | 38 | <resources> |
| 39 | <resource> | |||
| 40 | <directory>../../jibu-core/src/main/resources</directory> | |||
| 41 | </resource> | |||
| 42 | </resources> | |||
| 7e788128 TW |
Tommy Wang | 2010-07-26 01:15:27 +0800 | 43 | |
| 44 | <!-- | |||
| 45 | 重新指定编译后class文件的位置,否则每次mvn jetty:run之前都要mvn package | |||
| 46 | --> | |||
| 47 | <outputDirectory>${build.webappDirectory}/WEB-INF/classes</outputDirectory> | |||
| 48 | <plugins> | |||
| 49 | <plugin> | |||
| 50 | <artifactId>maven-war-plugin</artifactId> | |||
| dac81c45 TW |
Tommy Wang | 2010-07-27 10:06:16 +0800 | 51 | <configuration> |
| 52 | <warSourceExcludes>js/*.js</warSourceExcludes> | |||
| 53 | <overlays> | |||
| 54 | <overlay> | |||
| e61a1012 | Tommy Wang | 2010-07-28 17:30:40 +0800 | 55 | <groupId>org.gaixie.extjs-wrapped</groupId> |
| dac81c45 TW |
Tommy Wang | 2010-07-27 10:06:16 +0800 | 56 | <artifactId>extjs-wrapped</artifactId> |
| 57 | <type>zip</type> | |||
| 58 | </overlay> | |||
| 59 | </overlays> | |||
| 60 | </configuration> | |||
| 7e788128 TW |
Tommy Wang | 2010-07-26 01:15:27 +0800 | 61 | </plugin> |
| 62 | <plugin> | |||
| 63 | <groupId>org.mortbay.jetty</groupId> | |||
| 64 | <artifactId>jetty-maven-plugin</artifactId> | |||
| 65 | <configuration> | |||
| dac81c45 TW |
Tommy Wang | 2010-07-27 10:06:16 +0800 | 66 | <!-- |
| 67 | 增加webdefault.xml的配置,解决windows下jetty run时文件lock问题。 | |||
| 68 | 见http://docs.codehaus.org/display/JETTY/Files+locked+on+Windows (7.1.x的配置稍有不同) | |||
| 69 | 多个webapp配置 | |||
| 70 | 参考6.1.x配置:http://docs.codehaus.org/display/JETTY/Multiple+WebApp+Source+Directory | |||
| 71 | 如果7.1.x版本:implementation类不同, | |||
| 72 | 见http://download.eclipse.org/jetty/stable-7/apidocs/org/eclipse/jetty/util/resource/ResourceCollection.html | |||
| 73 | --> | |||
| 7e788128 | Tommy Wang | 2010-07-26 01:15:27 +0800 | 74 | <webAppConfig> |
| dac81c45 | Tommy Wang | 2010-07-27 10:06:16 +0800 | 75 | <defaultsDescriptor>src/test/resources/webdefault.xml</defaultsDescriptor> |
| 7e788128 TW |
Tommy Wang | 2010-07-26 01:15:27 +0800 | 76 | <baseResource implementation="org.eclipse.jetty.util.resource.ResourceCollection"> |
| 77 | <resourcesAsCSV>src/main/webapp,${build.webappDirectory}</resourcesAsCSV> | |||
| 78 | </baseResource> | |||
| 79 | </webAppConfig> | |||
| 80 | </configuration> | |||
| 81 | </plugin> | |||
| 82 | <plugin> | |||
| 0cd2867f | Tommy Wang | 2010-07-29 17:00:03 +0800 | 83 | <groupId>net.sf.alchim</groupId> |
| 7e788128 | Tommy Wang | 2010-07-26 01:15:27 +0800 | 84 | <artifactId>yuicompressor-maven-plugin</artifactId> |
| 0cd2867f | Tommy Wang | 2010-07-29 17:00:03 +0800 | 85 | <version>0.7.1</version> |
| 7e788128 TW |
Tommy Wang | 2010-07-26 01:15:27 +0800 | 86 | <executions> |
| 87 | <execution> | |||
| 88 | <goals> | |||
| 89 | <goal>compress</goal> | |||
| 90 | </goals> | |||
| 91 | </execution> | |||
| 92 | </executions> | |||
| 93 | <configuration> | |||
| 94 | <nosuffix>true</nosuffix> | |||
| 95 | <aggregations> | |||
| 96 | <aggregation> | |||
| dac81c45 | Tommy Wang | 2010-07-27 10:06:16 +0800 | 97 | <removeIncluded>true</removeIncluded> |
| 7e788128 TW |
Tommy Wang | 2010-07-26 01:15:27 +0800 | 98 | <output>${project.build.directory}/${project.build.finalName}/js/jibu-core-all.js</output> |
| 99 | <!-- files to include, path relative to output's directory or absolute path--> | |||
| 100 | <includes> | |||
| 7e788128 TW |
Tommy Wang | 2010-07-26 01:15:27 +0800 | 101 | <include>**/*.js</include> |
| 102 | </includes> | |||
| 103 | </aggregation> | |||
| 104 | </aggregations> | |||
| 105 | </configuration> | |||
| 106 | </plugin> | |||
| 107 | </plugins> | |||
| 108 | </build> | |||
| 109 | <dependencies> | |||
| 110 | <dependency> | |||
| dac81c45 TW |
Tommy Wang | 2010-07-27 10:06:16 +0800 | 111 | <groupId>junit</groupId> |
| 112 | <artifactId>junit</artifactId> | |||
| 113 | </dependency> | |||
| 114 | <dependency> | |||
| 115 | <groupId>org.easymock</groupId> | |||
| 116 | <artifactId>easymock</artifactId> | |||
| 117 | </dependency> | |||
| 118 | <dependency> | |||
| 90f3cfcc TW |
Tommy Wang | 2010-07-28 10:29:07 +0800 | 119 | <groupId>com.google.inject</groupId> |
| 120 | <artifactId>guice</artifactId> | |||
| 121 | </dependency> | |||
| 122 | <dependency> | |||
| 123 | <groupId>com.google.inject.extensions</groupId> | |||
| 124 | <artifactId>guice-servlet</artifactId> | |||
| 125 | </dependency> | |||
| 126 | <dependency> | |||
| 7e788128 TW |
Tommy Wang | 2010-07-26 01:15:27 +0800 | 127 | <groupId>org.mortbay.jetty</groupId> |
| 128 | <artifactId>servlet-api</artifactId> | |||
| 129 | </dependency> | |||
| 130 | <dependency> | |||
| 131 | <groupId>org.slf4j</groupId> | |||
| 132 | <artifactId>slf4j-api</artifactId> | |||
| 133 | </dependency> | |||
| 134 | <dependency> | |||
| 135 | <groupId>ch.qos.logback</groupId> | |||
| 136 | <artifactId>logback-core</artifactId> | |||
| 137 | </dependency> | |||
| 138 | <dependency> | |||
| 139 | <groupId>ch.qos.logback</groupId> | |||
| 140 | <artifactId>logback-classic</artifactId> | |||
| 141 | </dependency> | |||
| 142 | <dependency> | |||
| 143 | <groupId>org.gaixie.jibu</groupId> | |||
| 144 | <artifactId>jibu-core</artifactId> | |||
| 145 | </dependency> | |||
| 146 | <dependency> | |||
| e61a1012 | Tommy Wang | 2010-07-28 17:30:40 +0800 | 147 | <groupId>org.gaixie.extjs-wrapped</groupId> |
| 7e788128 | Tommy Wang | 2010-07-26 01:15:27 +0800 | 148 | <artifactId>extjs-wrapped</artifactId> |
| 0e1dccd8 | Tommy Wang | 2010-07-28 19:25:38 +0800 | 149 | <version>3.2.1</version> |
| 0cd2867f | Tommy Wang | 2010-07-29 17:00:03 +0800 | 150 | <type>zip</type> |
| 7e788128 TW |
Tommy Wang | 2010-07-26 01:15:27 +0800 | 151 | </dependency> |
| 152 | </dependencies> | |||
| 153 | </project> |