C:\ Users \用户defaultu \ .m2目录\库\ ...插件\ Maven的资源 - 插件\ 2.5 \ Maven的资源 - 插件 - 2.5.pom。 (该系统找不到指定的路径)

时间:2014-07-17 18:38:33

标签: eclipse maven

我使用eclipse将我的web项目转换为maven。我在第一行的pom.xml中收到以下错误

C:\用户\ defaultu.m2 \库\组织\阿帕奇\行家\插件\行家资源-插件\ 2.5 \行家资源-插件-2.5.pom。 (系统找不到指定的路径)

我的pom.xml如下

       <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
       <modelVersion>4.0.0</modelVersion>
       <groupId>AppName</groupId>
       <artifactId>FRC</artifactId>
       <version>0.0.1-SNAPSHOT</version>
        <build>
        <sourceDirectory>src</sourceDirectory>
    <resources>
     <resource>
       <directory>src</directory>
       <excludes>
         <exclude>**/*.java</exclude>
       </excludes>
     </resource>
   </resources>
    <plugins>
  <plugin>
    <artifactId>maven-compiler-plugin</artifactId>
    <version>3.0</version>
    <configuration>
      <source>1.6</source>
      <target>1.6</target>
    </configuration>
  </plugin>
</plugins>
   <pluginManagement>
    <plugins>
        <!--This plugin's configuration is used to store Eclipse m2e settings only. It has no influence on the Maven build itself.-->
        <plugin>
            <groupId>org.eclipse.m2e</groupId>
            <artifactId>lifecycle-mapping</artifactId>
            <version>1.0.0</version>
            <configuration>
                <lifecycleMappingMetadata>
                    <pluginExecutions>
                        <pluginExecution>
                            <pluginExecutionFilter>
                                <groupId>
                                    org.apache.maven.plugins
                                </groupId>
                                <artifactId>
                                    maven-compiler-plugin
                                </artifactId>
                                <versionRange>[3.0,)</versionRange>
                                <goals>
                                    <goal>compile</goal>
                                </goals>
                            </pluginExecutionFilter>
                            <action>
                                <ignore></ignore>
                            </action>
                        </pluginExecution>
                    </pluginExecutions>
                </lifecycleMappingMetadata>
            </configuration>
        </plugin>
    </plugins>
     </pluginManagement>
      </build> 

 </project>

1 个答案:

答案 0 :(得分:0)

你设置了Maven环境变量吗? 在命令行mvn -version工作?