Today I was prompted with an error message when compiling a maven project using the command mvn compile:
was cached in the local repository, resolution will not be reattempted until the update interval of
Cause of the problem :
By default, Maven will use the local cached repository to compile the project, for the last failed library download, maven will create xxx.lastUpdated file in ~/.m2/repository/<group>/<artifact>/<version>/
directory. Once this file exists, the dependencies will not be updated until the next nexus update. Add the following. <repositories> <repository> <id>public</id> <url>地址</url> <releases> <enabled>true</enabled> <updatePolicy>always</updatePolicy> </releases> <snapshots> <enabled>true</enabled> <updatePolicy>always</updatePolicy> </snapshots> </repository> </repositories>
Read More:
- Local repository upload to remote repository error: failed to push some refs to ‘https://hub.fastgit.org/zhizhangxuezhang/ui-test.git‘
- How to Solve “Status bar could not find cached time string image. Rendering in-process.” in Xcode
- [Solved] NDK JNI DETECTED ERROR IN APPLICATION: use of deleted local reference
- AAR Call Error: only jar-type local dependencies are supported
- [Solved] Maven Error: parent.relativePath points at wrong local POM
- [Solved] Remote URL test failed: Could not read from remote repository.
- Lumen Error: Class ‘League\Flysystem\Adapter\Local‘ not found
- [Solved] FreeBSD PKG error: pkg: repository meta /var/db/pkg/FreeBSD.meta has wrong version 2
- GoLand import the local package Error [How to Solve]
- Appcompatactivity Error: WARNING: Local History will be also cleared.
- [Solved] MYSQLD: Can‘t create directory ‘/usr/local/mysql/data/’(Errcode:2 -No such file or directory)
- Git Pull error: Your local changes to the following files would be overwritten by merge:
- [Solved] git Error: error: Your local changes to the following files would be overwritten by merge
- [Solved] QT error: //usr/local/lib/libvtkCommonCore-9.1.so.1: error adding symbols: DSO missing from command
- How to Solve npm Error: unable to get local issuer certificate
- git submodule add Error: SSL certificate problem unable to get local issuer certificate
- Taro Install Error: permission denied, symlink ‘../lib/node_modules/@tarojs/cli/bin/taro‘ -> ‘/usr/local/bin/tar
- Go declares that the local variable does not use command line arguments. Main. Go: 4:6: a declared but not used
- Clickhouse error: XXXX.XXXX_local20211009 (8fdb18e9-bb4c-42d8-8fdb-18e9bb4c02d8): auto…
- [Solved] Error: error C2601: ‘b‘ : local function definitions are illegal error C2063: ‘b‘ : not a function