Cannot construct org.apache.maven.plugin.war.util.WebappStructure as it does not have a no-args constructor

后端 未结 14 872
执念已碎
执念已碎 2021-01-30 12:27
[INFO] [war:war {execution: default-war}]
[INFO] Packaging webapp
[INFO] ------------------------------------------------------------------------
[ERROR] FATAL ERROR
[IN         


        
14条回答
  •  遇见更好的自我
    2021-01-30 12:45

    Make sure to have the JDK version in your Build path and the version specified in the source tag match the same.

    
        org.apache.maven.plugins
        maven-compiler-plugin
        2.1
        
         **1.7**
           1.7
           true
        
     `
    

    I had the build path pointing to jdk 1.7 and "1.6" in the source tag, when I corrected the version to 1.7 in source tag the issue got resolved.

    Execute mnv clean and mvn package.

提交回复
热议问题