We often encounter such problems when using MAVEN to compile a project.
Could not get the value for parameter encoding for plugin execution default-resources
Pluginorg.Apache.maven.Plugins:maven-Resources-plugin:2.6Or one of its dependencies could isn't be resolved: FailureTo find org.Codehaus.plexus:plexus-Utils:Jar:1.1In http://nexusserver:8081/nexus/content/groups/public/was cached in the local repository, resolution won't be reattempte D until the update interval of MIRR ...
was cached in the local repository, resolution will not be reattempted until the update interval of nexus has elapsed or updates are forced ->
The general meaning is that the jar package is not fully downloaded, but it has to be in two different cases.
One possibility is that the local did not download the complete, here the reason may be the first download because the network reason is unsuccessful, then Maven is not trying.
References
This is often a false positive. Imagine You has a connection issue lasting only 5 seconds when Maven 3 tries to download a dependency, it'll mark this Dependency as unavailable for a delay. And thus would prevent you to replaying the build command even if the network issue is fixed.
Just Run the command with THE-U option. Even if it description applies to snapshots, it seems to also fix the error if it occurred on a release.
example:mvn-u Clean Package
In addition, we can increase the Updatepolicy strategy in Setting.xml
Setting.xml Guide http://maven.apache.org/ref/3.3.1/maven-settings/settings.html
There is such a description in the schema of Setting.xml
Schemahttp://maven.apache.org/xsd/settings-1.0.0.xsd
Another scenario is that the nexus we rely on is not fully downloaded, and it may be that the configured Central Warehouse agent repository does not exist at all, or it needs to be found in a third-party repository, and we should try to check and configure the agent repository.
Maven dependency similar to is cached in the local repository-like error