如何将 maven 工件部署到 Google 代码 svn?
I. 创建包含发布和快照子文件夹的 m2 文件夹
II. 向 maven-svn-wagon 添加依赖项
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-deploy-plugin</artifactId>
<version>2.5</version>
<dependencies>
<dependency>
<groupId>com.google.code.maven-svn-wagon</groupId>
<artifactId>maven-svn-wagon</artifactId>
<version>1.4</version>
</dependency>
</dependencies>
</plugin>
三、添加发布路径和快照仓库
<distributionManagement>
<repository>
<id>project-name.googlecode.com</id>
<url>svn:https://project-name.googlecode.com/svn/m2/releases</url>
</repository>
<snapshotRepository>
<id>project-name.googlecode.com</id>
<url>svn:https://project-name.googlecode.com/svn/m2/snapshots</url>
</snapshotRepository>
</distributionManagement>
IV. 不要忘记添加到设置.xml您的授权代码
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0
http://maven.apache.org/xsd/settings-1.0.0.xsd">
<servers>
<server>
<id>project-name.googlecode.com</id>
<username>yourlogin</username>
<password>yoursvpassword</password>
</server>
</servers>
</settings>
V.做你通常为生成站点所做的工作(你可以考虑查看maven-svn-wagon pom文件,其中包含maven-site-plugin的设置)
六。mvn clean deploy
这种pom的例子
另外,可能会有所帮助:maven-repository-for-google-code-project,maven svn wagon,MavenRepositoryInsideGoogleCode