C:\Users\defaultu\.m2\repository\...plugins\ maven-resources-plugin \ 2.5 \ maven-resources-plugin-2.5.pom。(系统无法找到指定的路径)

时间:2022-02-18 14:08:40

I converted my web project into maven using eclipse. I am getting following error in my pom.xml at line number one

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

C:\Users\defaultu.m2\repository\org\apache\maven\plugins\maven-resources-plugin\2.5\maven-resources-plugin-2.5.pom. (The system cannot find the path specified)

C:\Users\ defaultu.m2 \ maven存储库\ org \ apache \ \ plugins \ maven-resources-plugin \ 2.5 \ maven-resources-plugin-2.5.pom。(系统无法找到指定的路径)

My pom.xml is as follows

我砰的一声。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 个解决方案

#1


0  

did u set Maven environment variables? In command line mvn -version worked?

您是否设置了Maven环境变量?在命令行mvn -版本有效吗?

#1


0  

did u set Maven environment variables? In command line mvn -version worked?

您是否设置了Maven环境变量?在命令行mvn -版本有效吗?