解决方案

  1. <plugin>
  2. <groupId>org.apache.maven.plugins</groupId>
  3. <artifactId>maven-compiler-plugin</artifactId>
  4. <configuration>
  5. <encoding>UTF-8</encoding>
  6. <source>1.8</source>
  7. <target>1.8</target>
  8. <compilerArguments>
  9. <verbose/>
  10. <!-- 该地址设置为三方jar放置的位置 -->
  11. <extdirs>${project.basedir}/lib</extdirs>
  12. </compilerArguments>
  13. </configuration>
  14. </plugin>