maven常用的一些插件配置
2014-08-31 00:00
435 查看
<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>com.tliu</groupId> <artifactId>case</artifactId> <packaging>war</packaging> <version>1.1-SNAPSHOT</version> <name>case</name> <url>http://maven.apache.org</url> <properties> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> </properties> <!-- Subversion版本控制服务器地址 --> <scm> <connection>scm:svn:http://192.168.2.2:8082/svn/CASE2/trunk</connection> </scm> <!-- 构件发布到Nexus仓库 --> <distributionManagement> <repository> <id>nexus-releases</id> <url>http://192.168.2.2:8081/nexus/content/repositories/releases/</url> </repository> <snapshotRepository> <id>nexus-snapshots</id> <url>http://192.168.2.2:8081/nexus/content/repositories/snapshots/</url> </snapshotRepository> </distributionManagement> <build> <plugins> <!-- 编译插件 --> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <version>3.1</version> <configuration> <source>1.6</source> <target>1.6</target> </configuration> </plugin> <!-- 资源管理插件 --> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-resources-plugin</artifactId> <version>2.6</version> <configuration> <encoding>UTF-8</encoding> </configuration> </plugin> <!-- 测试插件 --> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-surefire-plugin</artifactId> <version>2.7.2</version> <configuration> <forkMode>once</forkMode> <argLine>-Dfile.encoding=UTF-8</argLine> </configuration> </plugin> <!-- 生成API文档插件 --> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-javadoc-plugin</artifactId> <version>2.9.1</version> <configuration> <show>private</show> <nohelp>true</nohelp> <encoding>utf-8</encoding> </configuration> <executions> <execution> <id>attach-javadocs</id> <goals> <goal>jar</goal> </goals> </execution> </executions> </plugin> <!-- 打包源代码插件 --> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-source-plugin</artifactId> <version>2.2.1</version> <executions> <execution> <id>attach-sources</id> <phase>verify</phase> <goals> <goal>jar-no-fork</goal> </goals> </execution> </executions> </plugin> <!-- JBoss远程部署插件 --> <plugin> <groupId>org.jboss.as.plugins</groupId> <artifactId>jboss-as-maven-plugin</artifactId> <version>7.1.1.Final</version> <configuration> <hostname>127.0.0.1</hostname> <port>9999</port> <username>Jack</username> <password>Jack1234</password> </configuration> <executions> <execution> <id>deploy</id> <phase>package</phase> <goals> <goal>deploy</goal> </goals> </execution> <execution> <id>undeploy</id> <phase>clean</phase> <goals> <goal>undeploy</goal> </goals> </execution> </executions> </plugin> <!-- SCM插件 --> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-scm-plugin</artifactId> <version>1.9.1</version> <configuration> <connectionType>connection</connectionType> </configuration> </plugin> <!-- 发布Release版本的插件 --> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-release-plugin</artifactId> <version>2.5</version> <configuration> <tagBase>http://192.168.2.2:8082/svn/CASE2/tags</tagBase> <branchBase>http://192.168.2.2:8082/svn/CASE2/branches</branchBase> <checkModificationExcludes> <!-- 过滤不提交到SVN的文件 --> <checkModificationExclude>.project</checkModificationExclude> <checkModificationExclude>.classpath</checkModificationExclude> <checkModificationExclude>.settings</checkModificationExclude> </checkModificationExcludes> <username>Tliu</username> <password>Tliu</password> <releaseProfiles>release</releaseProfiles> </configuration> </plugin> </plugins> <!-- 打包时包含.xml文件和.properties文件,maven默认情况不包含 --> <resources> <resource> <directory>src/main/java</directory> <includes> <include>**/*.xml</include> </includes> </resource> <resource> <directory>src/main/resources</directory> <includes> <include>**/*.xml</include> <include>**/*.properties</include> </includes> </resource> </resources> </build> </project>
相关文章推荐
- maven常用插件配置和使用
- Maven的安装配置及常用插件技巧
- Maven学习笔记——常用插件配置详解
- Maven常用插件简单配置
- Maven常用插件配置详解
- Maven常用插件配置 --->以后自己用到再更新
- Maven常用插件配置和使用
- myeclipse10配置maven和一些常用命令
- maven 常用插件配置详解
- 常用maven配置(打入依赖包,编译插件,ojdbc)
- maven的一些常用标签 和 m2eclipse插件的安装
- Maven的发布常用插件配置
- java开发 IDE安装一些插件的地址以及MAVEN的安装配置
- maven常用插件pom配置
- 常用maven插件配置收集
- Maven中测试插件(surefire)的相关配置及常用方法
- 在项目中遇到的 maven 插件常用的配置
- Maven常用插件配置和使用
- 【maven】之开发pom配置常用插件
- maven常用插件配置