我正在尝试从 svn 签出代码。我写了一个 pom.xml 来做同样的事情。下面是我的代码。
<scm>
<connection>scm:svn:http://10.6.15.103/svn/PLM_Windchill_MidMarket/PLM_Windchill_MidMarket</connection>
<developerConnection>scm:svn:http://10.6.15.103/svn/PLM_Windchill_MidMarket/PLM_Windchill_MidMarket</developerConnection>
</scm>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-scm-plugin</artifactId>
<version>1.7</version>
<configuration>
<checkoutDirectory>${project.basedir}/src/svn</checkoutDirectory>
<workingDirectory>${project.basedir}/src/svn</workingDirectory>
</configuration>
</plugin>
</plugins>
</build>
当我运行 mvn scm:checkout install 时,出现以下错误:
Failed to execute goal org.apache.maven.plugins:maven-scm-plugin:1.7:checkout (default-cli) on project test_project1: Cannot run checkout command : Can't load the scm provider. Guice provision errors:
1) Error in custom provider, java.lang.TypeNotPresentException: Type org.apache.maven.scm.provider.cvslib.cvsjava.CvsJavaScmProvider not present
at ClassRealm[plugin>org.apache.maven.plugins:maven-scm-plugin:1.7, parent: sun.misc.Launcher$AppClassLoader@5acac268]
at ClassRealm[plugin>org.apache.maven.plugins:maven-scm-plugin:1.7, parent: sun.misc.Launcher$AppClassLoader@5acac268]
while locating org.apache.maven.scm.provider.ScmProvider annotated with @com.google.inject.name.Named(value=cvs)
1 error: org/apache/maven/scm/provider/cvslib/AbstractCvsScmProvider: org.apache.maven.scm.provider.cvslib.AbstractCvsScmProvider
我可以知道如何解决这个问题吗?