App version: Eclipse luna4.4.1
jdk:1.8
maven:3.2.5
Problem phenomenon:
1. The following two errors are always displayed after compiling the project:
One or more constraints has not been satisfied.
Deployment assembly and Java version do not match
Solution:
Add the following to the Pom.xml, and also solve the problem of Maven->update project default JDK
<profiles>
<profile>
<id>jdk-1.8</id>
<!--Another way to activate--
<activation>
<activeByDefault>true</activeByDefault>
<jdk>1.8</jdk>
</activation>
<properties>
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
<maven.compiler.compilerVersion>1.8</maven.compiler.compilerVersion>
</properties>
</profile>
</prof
2. Failed to update jar package using Eclipse automatic Maven plugin (Nexus Warehouse configuration is OK), prompt the following error:
[INFO] Scanning for projects ...
[INFO]
[INFO] Using the builder Org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder with a thread Count of 1
[INFO]
[INFO]------------------------------------------------------------------------
[INFO] Building 0.0.1-snapshot
[INFO]------------------------------------------------------------------------
[WARNING] The POM for org.apache.maven.plugins:maven-resources-plugin:jar:2.6 is missing, no dependency information available
[INFO]------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO]------------------------------------------------------------------------
[INFO] Total time:1.148 S
[INFO] Finished at:2014-12-30t17:38:07+08:00
[INFO] Final memory:4m/15m
[INFO]------------------------------------------------------------------------
[ERROR] Plugin org.apache.maven.plugins:maven-resources-plugin:2.6 or one of its dependencies could not being resolved:failure to fi nd org.apache.maven.plugins:maven-resources-plugin:jar:2.6 in Http://localhost:8082/nexus/content/groups/public was cached in the local repository, resolution won't be reattempted until the update interval of nexus have elapsed or u Pdates is forced [help 1]
[ERROR]
[ERROR] The full stack trace of the errors, re-run Maven with THE-E switch.
[ERROR] Re-run Maven using The-x switch to enable full debug logging.
[ERROR]
[ERROR] For more information on the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginResolutionException
Huige 18:06:21
Could not resolve archetype org.apache.maven.archetypes:maven-archetype-quickstart:release from any of the configured Repositories.
......
Solution:
Update MAVEN package to the latest version (Jdk1.8+eclipse luna4.4.1 with Recommended update Maven to 3.2. After version 5)
preferences-"maven-" installations choose the latest Maven address
Fix Eclipse+maven tip One or more constraints has not been satisfied.