maven发布Release版本之maven-release-plugin插件配置
2014-08-31 00:00
633 查看
<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> <!-- 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> </build> </project>
相关文章推荐
- CI - Jenkins安装- maven release插件将一版本发布到仓库中时Return code is: 401, ReasonPhrase:Unauthorized
- maven release插件将一版本发布到仓库中时Return code is: 401, ReasonPhrase:Unauthorized
- 使用eclipse执行maven-release-plugin插件发布jar异常问题(.project)(Cannot prepare the release because you have local modifications )
- eclipse maven plugin 插件 安装 和 配置
- eclipse maven plugin 插件 安装 和 配置
- eclipse maven plugin 插件 安装 和 配置
- eclipse maven plugin link 插件 安装 和 配置
- eclipse maven plugin 插件 安装 和 配置
- maven-compiler-plugin 插件版本信息错误提示的解决方法
- eclipse maven plugin 插件 安装 和 配置
- eclipse maven plugin 插件 安装 和 配置
- eclipse maven plugin 插件 安装 和 配置
- eclipse maven plugin link 插件 安装 和 配置
- eclipse maven plugin 插件 安装 和 配置
- eclipse maven plugin 插件 安装 和 配置
- eclipse + maven + plugin 插件 安装和配置
- eclipse maven plugin 插件 安装 和 配置
- eclipse maven plugin 插件 安装 和 配置
- eclipse maven plugin 插件 安装 和 配置
- eclipse maven plugin 插件 安装 和 配置