1. 程式人生 > >Maven錯誤:'build.plugins.plugin.version' for org.apache.maven.plugins:maven-compiler-plugin is missing

Maven錯誤:'build.plugins.plugin.version' for org.apache.maven.plugins:maven-compiler-plugin is missing

配置maven compiler的時候加上對應的Servlet版本號即可解決。

  1. <plugin>
  2.     <groupId>org.apache.maven.plugins</groupId>
  3.     <artifactId>maven-compiler-plugin</artifactId>
  4.     <!-- 與Servlet版本對應 -->
  5.     <version>3.1</version>
  6.     <configuration>
  7.         <source>1.8
    </source>
  8.         <target>1.8</target>
  9.         <encoding>UTF-8</encoding>
  10.     </configuration>
  11. </plugin>

文章轉自:http://blog.csdn.net/huwei0518/article/details/45054803