123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180 |
- <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/xsd/maven-4.0.0.xsd">
- <modelVersion>4.0.0</modelVersion>
- <groupId>cn.nosum.vip.mvc</groupId>
- <artifactId>nosum-spring</artifactId>
- <version>1.0</version>
- <packaging>war</packaging>
- <dependencies>
- <dependency>
- <groupId>javax.servlet</groupId>
- <artifactId>servlet-api</artifactId>
- <version>2.4</version>
- <scope>provided</scope>
- </dependency>
- </dependencies>
- <build>
- <finalName>${artifactId}</finalName>
- <resources>
- <resource>
- <directory>${basedir}/src/main/resources</directory>
- <includes>
- <include>**/*</include>
- </includes>
- </resource>
- <resource>
- <directory>${basedir}/src/main/java</directory>
- <excludes>
- <exclude>**/*.java</exclude>
- <exclude>**/*.class</exclude>
- </excludes>
- </resource>
- </resources>
- <plugins>
- <plugin>
- <artifactId>maven-compiler-plugin</artifactId>
- <version>2.3.2</version>
- <configuration>
- <source>1.6</source>
- <target>1.6</target>
- <encoding>UTF-8</encoding>
- <compilerArguments>
- <verbose />
- <bootclasspath>${java.home}/lib/rt.jar</bootclasspath>
- </compilerArguments>
- </configuration>
- </plugin>
- <plugin>
- <artifactId>maven-resources-plugin</artifactId>
- <version>2.5</version>
- <executions>
- <execution>
- <id>copy-resources</id>
- <!-- here the phase you need -->
- <phase>validate</phase>
- <goals>
- <goal>copy-resources</goal>
- </goals>
- <configuration>
- <encoding>UTF-8</encoding>
- <outputDirectory>${basedir}/target/classes</outputDirectory>
- <resources>
- <resource>
- <directory>src/main/resources</directory>
- <includes>
- <include>**/*.*</include>
- </includes>
- <filtering>true</filtering>
- </resource>
- </resources>
- </configuration>
- </execution>
- </executions>
- </plugin>
- <plugin>
- <groupId>org.mortbay.jetty</groupId>
- <artifactId>maven-jetty-plugin</artifactId>
- <version>6.1.26</version>
- <configuration>
- <webDefaultXml>src/main/resources/webdefault.xml</webDefaultXml>
- <contextPath>/</contextPath>
- <connectors>
- <connector implementation="org.mortbay.jetty.nio.SelectChannelConnector">
- <port>8080</port>
- </connector>
- </connectors>
- <scanIntervalSeconds>0</scanIntervalSeconds>
- <scanTargetPatterns>
- <scanTargetPattern>
- <directory>src/main/webapp</directory>
- <includes>
- <include>**/*.xml</include>
- <include>**/*.properties</include>
- </includes>
- </scanTargetPattern>
- </scanTargetPatterns>
- <systemProperties>
- <systemProperty>
- <name>
- javax.xml.parsers.DocumentBuilderFactory
- </name>
- <value>
- com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderFactoryImpl
- </value>
- </systemProperty>
- <systemProperty>
- <name>
- javax.xml.parsers.SAXParserFactory
- </name>
- <value>
- com.sun.org.apache.xerces.internal.jaxp.SAXParserFactoryImpl
- </value>
- </systemProperty>
- <systemProperty>
- <name>
- javax.xml.transform.TransformerFactory
- </name>
- <value>
- com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl
- </value>
- </systemProperty>
- <systemProperty>
- <name>org.eclipse.jetty.util.URI.charset</name>
- <value>UTF-8</value>
- </systemProperty>
- </systemProperties>
- </configuration>
- </plugin>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-war-plugin</artifactId>
- <version>2.2</version>
- <configuration>
- <archive>
- <addMavenDescriptor>false</addMavenDescriptor>
- </archive>
- <webResources>
- <resource>
- <!-- this is relative to the pom.xml directory -->
- <directory>src/main/resources/</directory>
- <targetPath>WEB-INF/classes</targetPath>
- <includes>
- <include>**/*.*</include>
- </includes>
- <!-- <excludes>
- <exclude>**/local</exclude>
- <exclude>**/test</exclude>
- <exclude>**/product</exclude>
- </excludes> -->
- <filtering>true</filtering>
- </resource>
- <resource>
- <!-- this is relative to the pom.xml directory -->
- <directory>src/main/resources</directory>
- <targetPath>WEB-INF/classes</targetPath>
- <filtering>true</filtering>
- </resource>
- </webResources>
- </configuration>
- </plugin>
- <plugin>
- <groupId>org.zeroturnaround</groupId>
- <artifactId>javarebel-maven-plugin</artifactId>
- <executions>
- <execution>
- <id>generate-rebel-xml</id>
- <phase>process-resources</phase>
- <goals>
- <goal>generate</goal>
- </goals>
- </execution>
- </executions>
- <version>1.0.5</version>
- </plugin>
- </plugins>
- </build>
- </project>
|