In my eclipse, I created a new project as a project New → Other-> Spring → Spring Template Project → Spring MVC.
In pom, I get below error:
A few annotations found on this line: - The execution of the plugin does not extend to the configuration of the life cycle: org.apache.maven.plugins: maven-compiler-plugin: 2.5.1: compile (execution: default- compilation, phase: compilation) - CoreException : failed to calculate assembly plan: plugin org.apache.maven.plugins: maven-compiler-plugin: 2.5.1 or one of its dependencies could not be resolved: could not read the artifact descriptor for org.apache.maven.plugins: maven- compiler-plugin: jar: 2.5.1: ArtifactResolutionException: failure to transfer org.apache.maven.plugins: maven-compiler-plugin: pom: 2.5.1 from
repo.maven.apache.org/maven2 has been cached in the local repository, the permission will not be retried until the refresh interval of the central item has expired or is not forced to be updated. Original error: Unable to transfer artifact to org.apache.maven.plugins: maven- compiler-plugin: pom: 2.5.1 from / to central repo.maven.apache.org/maven2): null for repo.maven.apache.org / maven2 / org / apache / maven / plugins / Maven-compiler plugin / 2.5.1 / Maven-compiler-plugin-2.5.1.pom - The execution of the plugin does not extend to the life cycle configuration: org.apache.maven.plugins: maven -compiler-plugin: 2.5.1: testCompile (execution: default- testCompile, phase: test compilation) - CoreException: failed to calculate assembly plan: plugin org.apache.maven.plugins: maven-compiler-plugin: 2.5.1 or one of its dependencies could not be resolved: could not read the descriptor artifact for org.apache.maven.plugins: maven-compiler-plugin: jar: 2.5.1: ArtifactResolutionException: failed to transfer artifact org.apache.maven.plugins: maven-compiler-plugin: pom: 2.5.1 from / to central (repo.maven.apache.org/maven2): null repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-compiler-plugin/2.5.1/maven-compiler-plugin-2.5. 1.pom
I deleted the repository folder and Maven -> Update Project. But nothing happened.
The error appears in the tag below:
<plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <version>2.5.1</version> <configuration> <source>1.6</source> <target>1.6</target> <compilerArgument>-Xlint:all</compilerArgument> <showWarnings>true</showWarnings> <showDeprecation>true</showDeprecation> </configuration> </plugin>
source share