When I packaged the project, I reported an error:
Failure to find com.st:oscarJDBC16:pom:1.0.0 in http://maven.aliyun.com/nexus/content/groups/public/ was cached in the local repository, resolution will not be reattempted until the update interval of public has elapsed or updates are forced
In order to solve this problem, a lot of information was consulted as follows:
1,
Go to your own .m2 folder and delete all the xxx.lastUpdated files, run maven again, ok!
Or add the -U parameter when using maven, you can ignore xxx.lastUpdated..
Here, a simple investigation is not caused by this reason
2,
Change the version, or change the source to try
I’ve changed it several times, but it still gives an error
3,
Added updatePolicy property to release or snapshots version of repository, where updatePolicy can be set to “always”, “daily” (default), “interval:XXX” (minutes) or “never”
<repositories> <repository> <id>io.spring.repo.maven.release</id> <url>http://repo.spring.io/release/</url> <releases> <enabled>true</enabled> <updatePolicy>always</updatePolicy> </releases> <snapshots><enabled>false</enabled></snapshots> </repository> </repositories>
still error
final solution
previous pom configuration
Modified to direct reading jar package
problem solved!!!
Similar Posts:
- Maven: How to uses tomcat8 Maven plugin
- [Solved] Gradle Error: Could not resolve all dependencies for configuration ‘:detachedConfiguration7
- Maven Error: Failure to transfer org.apache.maven.plugins:maven-surefire-plugin:pom:3.0.0-M1 [How to Solve]
- Maven: idea cannot download the source code Issue [How to Solve]
- Installing iperf on CentOS
- [Solved] Centos-Yum Error: Cannot retrieve repository metadata (repomd.xml) for repository:
- Maven’s Non-resolvable parent POM Problem
- How to Enable EPEL Repository for CentOS 7.x/6.x/5.x
- [Solved] Missing artifact com. oracle:ojdbc6 : jar:11.2.0.1.0 Problem solving ojdbc package pom.xml error
- [Solved] Plugin ‘org.springframework.boot:spring-boot-maven-plugin:’not found