编译失败执行javac失败,但无法解析错误:系统找不到指定的路径

时间:2013-05-20 09:39:09

标签: spring hibernate maven

    <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>data-access-framework</groupId>
                <artifactId>data-access-framework</artifactId>
                <version>${version.snapshot}</version>
                <packaging>jar</packaging>

      <name>2402: data-access-framework</name>
      <url>http://maven.apache.org</url>
      <properties>
        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
        </properties>

         <build>
        <plugins>
            <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-compiler-plugin</artifactId>
                    <configuration>
                        <source>${java-version}</source>
                        <target>${java-version}</target>
                        <type>jar</type>
                    </configuration>
            </plugin>
             <plugin>
                  <groupId>org.apache.maven.plugins</groupId>
                  <artifactId>maven-surefire-plugin</artifactId>
                  <version>2.10</version>
                  <configuration>
                    <reportsDirectory>${project.build.directory}/reports</reportsDirectory>
                  </configuration>
             </plugin> 
        </plugins>
      </build>  


      <parent>
            <groupId>data-access-layer</groupId>
            <artifactId>data-access-layer</artifactId>
            <version>0.0.1-SNAPSHOT</version>
        </parent>



        <dependencies> 

         <dependency>
            <groupId>junit</groupId>
            <artifactId>junit</artifactId>
            <version>4.4</version>
             <type>jar</type>
            <scope>test</scope>
        </dependency> 


        </dependencies>



    </project>

when i am running mvn clean install command then it gives this error i have plugin its compiler and all and every thing but it still gives this error

所有其他依赖项都是从其父pom管理的,而父pom并没有给出任何错误,但它给出了这个错误。 在它的父pom中,我添加了与其相同的插件 请给我一些建议如何解决这个问题,我已设置所有环境变量,我还有其他p [oms也只有这个pom给出错误

0 个答案:

没有答案