Maven doesn't use Java 7

后端 未结 2 1325
我在风中等你
我在风中等你 2020-12-23 12:59

I want to package a maven-(multi)module, the parent POM includes:


  org.apache.maven.         


        
相关标签:
2条回答
  • 2020-12-23 13:12

    This may not work in maven 2.2.1, but with Maven 3.0.4, simply adding the two properties to the pom's properties enables Java 7 for me:

    <properties>
      <maven.compiler.source>1.7</maven.compiler.source>
      <maven.compiler.target>1.7</maven.compiler.target>
    </properties>
    
    0 讨论(0)
  • 2020-12-23 13:27

    perfectly nice explanation on the compatibility issue of jdk 1.7 with maven 2.2.1 given by Mark Peters Maven "could not parse error message" (Java 7 + Maven 2)

    0 讨论(0)
提交回复
热议问题