`

关于maven的种种诡异问题

 
阅读更多
  1. maven 编译BUG 打war

         [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile (default-compile) on project seaglasslookandfeel: Compilation failure 

[ERROR] Failure executing javac, but could not parse the error:
[ERROR] Fatal Error: Unable to find package java.lang in classpath or bootclasspath

 

解决:

 

<plugin>

<artifactId>maven-compiler-plugin</artifactId>

<version>2.0</version>

<configuration>

<source>${jdkVersion}</source>

<target>${jdkVersion}</target>

<encoding>UTF-8</encoding>

<compilerArguments>

<bootclasspath>C:\Program Files\Java\jdk1.6.0_33\jre\lib\rt.jar</bootclasspath>

</compilerArguments>                 

</configuration>

</plugin>

注:红色bootclasspath 配置成本地环境对应物理位置。

 

  1.  

 

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics