pom.xml错误日志
Multiple annotations found at this line:
- Execution default-cli of goal org.apache.maven.plugins:maven-resources-plugin:2.6:copy-resources failed: Plugin org.apache.maven.plugins:maven-
resources-plugin:2.6 or one of its dependencies could not be resolved: Cannot access alimaven (http://maven.aliyun.com/nexus/content/groups/public/) in
offline mode and the artifact org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-9-stable-1 has not been downloaded from it before.
(org.apache.maven.plugins:maven-war-plugin:2.2:war:default-war:package) org.apache.maven.plugin.PluginExecutionException: Execution default-cli of goal
org.apache.maven.plugins:maven-resources-plugin:2.6:copy-resources failed: Plugin org.apache.maven.plugins:maven-resources-plugin:2.6 or one of its
dependencies could not be resolved: Cannot access alimaven (http://maven.aliyun.com/nexus/content/groups/public/) in offline mode and the artifact
org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-9-stable-1 has not been downloaded from it before. at
org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:106) at
org.eclipse.m2e.core.internal.embedder.MavenImpl.execute(MavenImpl.java:331) at
org.eclipse.m2e.wtp.internal.filtering.ResourceFilteringBuildParticipant.executeCopyResources(ResourceFilteringBuildParticipant.java:278) at
org.eclipse.m2e.wtp.internal.filtering.ResourceFilteringBuildParticipant.build(ResourceFilteringBuildParticipant.java:97) at
org.eclipse.m2e.wtp.internal.build.WarProjectBuildParticipant.build(WarProjectBuildParticipant.java:50) at
org.eclipse.m2e.core.internal.builder.MavenBuilderImpl.build(MavenBuilderImpl.java:137) at org.eclipse.m2e.core.internal.builder.MavenBuilder
$1.method(MavenBuilder.java:184) at org.eclipse.m2e.core.internal.builder.MavenBuilder$1.method(MavenBuilder.java:1) at
解决办法如下:

在pom.xml里面写
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.1</version>
<configuration>
<source>1.8</source> <!-- Java版本号 -->
<target>1.8</target>
</configuration>
</plugin>
</plugins>
</build>

修改工作环境

修改java Compiler

右键项目,找到Project Facets

网友评论