完整的自定义目录结构的maven配置文件。
<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">
<modelVersion>4.0.0</modelVersion>
<groupId>ttt</groupId>
<artifactId>ttt</artifactId>
<packaging>war</packaging>
<name>ttt</name>
<version>0.0.1</version>
<build>
<sourceDirectory>${basedir}/src</sourceDirectory>
<outputDirectory>${basedir}/WebContent/WEB-INF/classes</outputDirectory>
<resources>
<resource>
<directory>${basedir}/src</directory>
<excludes>
<exclude>**/*.java</exclude>
</excludes>
</resource>
</resources>
<pluginManagement>
<plugins>
</plugins>
</pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-resources-plugin</artifactId>
<configuration>
<encoding>UTF-8</encoding>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>1.5</source>
<target>1.5</target>
<encoding>UTF-8</encoding>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<configuration>
<archive>
<addMavenDescriptor>false</addMavenDescriptor>
</archive>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
<configuration>
<webappDirectory>${basedir}/WebContent</webappDirectory>
<warSourceDirectory>${basedir}/WebContent</warSourceDirectory>
<archive>
<addMavenDescriptor>false</addMavenDescriptor>
</archive>
</configuration>
</plugin>
<plugin>
<groupId>org.mortbay.jetty</groupId>
<artifactId>jetty-maven-plugin</artifactId>
<version>7.0.0.v20091005</version>
<configuration>
<scanIntervalSeconds>10</scanIntervalSeconds>
<stopKey>foo</stopKey>
<stopPort>9999</stopPort>
<webAppSourceDirectory>${basedir}/WebContent</webAppSourceDirectory>
<webAppConfig>
<contextPath>/test</contextPath>
<tempDirectory>${project.build.directory}/</tempDirectory>
<!--
<defaultsDescriptor>src/main/resources/webdefault.xml</defaultsDescriptor>
-->
<!--
<overrideDescriptor>src/main/resources/override-web.xml</overrideDescriptor>
-->
</webAppConfig>
</configuration>
<executions>
<execution>
<id>start-jetty</id>
<phase>pre-integration-test</phase>
<goals>
<goal>run</goal>
</goals>
<configuration>
<scanIntervalSeconds>0</scanIntervalSeconds>
<daemon>true</daemon>
</configuration>
</execution>
<execution>
<id>stop-jetty</id>
<phase>post-integration-test</phase>
<goals>
<goal>stop</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
<dependencies>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring</artifactId>
<version>2.5.6</version>
</dependency>
<dependency>
<groupId>org.apache.poi</groupId>
<artifactId>poi</artifactId>
<version>3.5-FINAL</version>
</dependency>
</dependencies>
</project>
分享到:
相关推荐
Maven配置文件Maven配置文件
阿里巴巴仓库的maven配置文件,链接国内仓库,下载速度快,只需要配置一下本地仓库地址;阿里巴巴仓库的maven配置文件,链接国内仓库,下载速度快,只需要配置一下本地仓库地址;
maven配置文件(阿里云)
maven配置文件配置国内阿里云镜像
配置本地仓库 中央仓库的镜像配置成了阿里的公共镜像 希望对大家有帮助,谢谢
在做springBoot项目时,下载了一堆Maven,此文件使用很稳定,记录一下
maven配置文件settings.xml
使用eclipse整合maven时所需要使用的配置文件;只需修改文件中的本地仓库路径即可完成整合,java初学者必选。
maven配置文件,已配置好阿里云链接,可下载jar包
阿里云maven配置文件,maven下载包的配置文件,使用阿里云速度更快。
国内阿里云公有仓库的maven配置文件,配置阿里云公仓连接的文件
maven 配置文件
使maven在没有私服依然可以快速依赖资源包,其中配置了国内多个镜像仓库地址
maven配置文件pom.xml
maven配置文件,配置了下载路径,使用阿里仓库下载,配置了jdk版本。
Maven阿里云配置文件,并且默认配置仓库在E:\JAVA\Maven
maven配置文件-阿里云镜像版