When building a project directly with maven or using Jenkins, you often encounter an error that avalon-framework-api-4.1.5-dev.pom cannot be downloaded. This is because the central repository does not have the jar package of version 4.1.4-dev and POM file, the solution for this file is as follows:
1. Modify the xml file in the local warehouse, put all the xml files in .m2/repository/avalon-framework/avalon-framework-api/, and put <version>4.1 .5-dev</version> is deleted and the version is changed to 4.3.
<metadata>
<groupId>avalon-framework</groupId>
<artifactId>avalon-framework-api</artifactId>
<version>4.3</version> <!--This is modified to version 4.3-->
<versioning>
<versions>
<version>4.1.5</version>
<version>4.1.5-RC2</version>
<version>4.1.5-RC3< /version>
<!-- <version>4.1.5-dev</version>-->
< version>4.2.0</version>
<version>4.3</version>
</versions>
</versioning>
</metadata>
2. Delete the m2/repository/avalon-framework/avalon-framework-api/4.1.5-dev/ folder under the repository.
3. Refresh the maven configuration.
Note: This method can also be used to solve other similar problems.
avalon-framework-api-4.1.5-dev cannot be downloaded or an error is reported when Jenkins or Maven builds
Guess you like
Origin http://43.154.161.224:23101/article/api/json?id=326042705&siteId=291194637
Recommended
Ranking