美文网首页
Description Resource Path Locati

Description Resource Path Locati

作者: 一个冬季 | 来源:发表于2018-07-23 22:02 被阅读143次

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 

解决办法如下:


解决办法1.png

在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>
解决办法2.png

修改工作环境


解决办法3.png

修改java Compiler


解决办法4_右键项目名.png
右键项目,找到Project Facets
解决办法5.png

相关文章

网友评论

      本文标题:Description Resource Path Locati

      本文链接:https://www.haomeiwen.com/subject/qwrsmftx.html