我正在尝试使用 Subversion 作为 Maven repo 使用Maven wagon。如果我使用 http 作为协议声明快照位置,我会在尝试部署时从服务器返回 409 错误(mvn clean deploy)
<snapshotRepository>
<uniqueVersion>false</uniqueVersion>
<id>engtools_snapshots</id>
<name>EngTools Maven Repository</name>
<url>http://continuum.td.com/svn_repos/maven/snapshots</url>
</snapshotRepository>
当我将协议更改为 scm:svn:http 时,事情变得更加奇怪 - 我遇到了几个似乎与领域相关的错误
<snapshotRepository>
<uniqueVersion>false</uniqueVersion>
<id>engtools_snapshots</id>
<name>EngTools Maven Repository</name>
<url>scm:svn:http://continuum.td.com/svn_repos/maven/snapshots</url>
</snapshotRepository>
单片机配置
<extensions>
<extension>
<groupId>org.apache.maven.wagon</groupId>
<artifactId>wagon-scm</artifactId>
<version>1.0-beta-6</version>
</extension>
<extension>
<groupId>org.apache.maven.scm</groupId>
<artifactId>maven-scm-manager-plexus</artifactId>
<version>1.3-SNAPSHOT</version>
</extension>
<extension>
<groupId>org.apache.maven.scm</groupId>
<artifactId>maven-scm-provider-svnexe</artifactId>
<version>1.3-SNAPSHOT</version>
</extension>
</extensions>
由 (mvn deploy) 产生的部分堆栈跟踪
[INFO] [deploy:deploy {execution: default-deploy}]
[INFO] Retrieving previous build number from engtools_snapshots
[FATAL ERROR] org.apache.maven.plugin.deploy.DeployMojo#execute() caused a
linkage error (java.lang.AbstractMethodError) and may be out-of-date. Check
the realms:
[FATAL ERROR] Plugin realm =
app0.child-container[org.apache.maven.plugins:maven-deploy-plugin:2.4]
urls[0] = file:/C:/Documents and Settings/boo/.m2/repository/org/apache/
maven/plugins/maven-deploy-plugin/2.4/maven-deploy-plugin-2.4.jar
urls[1] = file:/C:/Documents and Settings/boo/.m2/repository/org/codehaus/
plexus/plexus-utils/1.1/plexus-utils-1.1.jar
[FATAL ERROR] Container realm = plexus.core
urls[0] = file:/C:/java/apache-maven-2.2.0/bin/../lib/maven-2.2.0-uber.jar
[INFO] ------------------------------------------------------------------------
[ERROR] FATAL ERROR
[INFO] ------------------------------------------------------------------------
[INFO] org.apache.maven.scm.command.checkout.AbstractCheckOutCommand.
executeCheckOutCommand(Lorg/apache/maven/scm/provider/ScmProviderRepository;
Lorg/apache/maven/scm/ScmFileSet;Lorg/apache/maven/scm/ScmVersion;)
Lorg/apache/maven/scm/command/checkout/CheckOutScmResult;
[INFO] ------------------------------------------------------------------------
[INFO] Trace
java.lang.AbstractMethodError: org.apache.maven.scm.command.checkout.AbstractCheckOutCommand.
executeCheckOutCommand(Lorg/apache/maven/scm/provider/ScmProviderRepository;
Lorg/apache/maven/scm/ScmFileSet;Lorg/apache/maven/scm/ScmVersion;)Lorg/apache/maven/scm/command/checkout/CheckOutScmResult;
at org.apache.maven.scm.command.checkout.AbstractCheckOutCommand.executeCommand(
AbstractCheckOutCommand.java:49)
at org.apache.maven.scm.command.AbstractCommand.execute(AbstractCommand.java:58)