我正在尝试使用maven-dependency-plugin将依赖项复制到另一个位置,但是,当从私有nexus服务器检索特定org.codehaus.plexus:plexus-container-default:pom:1.0-alpha-30
的传递依赖项时,它在校验和验证时失败。
Failed to execute goal org.apache.maven.plugins:maven-dependency-plugin:2.8:copy-dependencies (copy-dependencies) on project myapp: Execution copy-dependencies of goal org.apache.maven.plugins:maven-dependency-plugin:2.8:copy-dependencies failed: Plugin org.apache.maven.plugins:maven-dependency-plugin:2.8 or one of its dependencies could not be resolved: Failed to collect dependencies for org.apache.maven.plugins:maven-dependency-plugin:jar:2.8 (): Failed to read artifact descriptor for org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-30: Could not transfer artifact org.codehaus.plexus:plexus-container-default:pom:1.0-alpha-30 from/to mycompany.nexus (http://nexus.mycompany.com/content/groups/public): Checksum validation failed, expected aa1efeb7ed05a3c5037cc194b9e8fbf97e52268a but is 351451aebadb3a5dfa07ea8bdf9e4e336d299054
我试图强制使用plexus-container-default依赖的版本而没有运气。 如果有人能够解决我如何解决这个noob问题,我们将不胜感激
谢谢!
这是我朋友的相关片段:
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<version>2.8</version>
<dependencies>
<dependency>
<groupId>org.codehaus.plexus</groupId>
<artifactId>plexus-container-default</artifactId>
<version>1.5.5</version>
</dependency>
</dependencies>
<executions>
<execution>
<id>copy-dependencies</id>
<phase>package</phase>
<goals>
<goal>copy-dependencies</goal>
</goals>
<configuration>
<outputDirectory>${project.build.outputDirectory}/${build.dir}/lib</outputDirectory>
<overWriteIfNewer>true</overWriteIfNewer>
<stripVersion>true</stripVersion>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>