首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 其他教程 > 其他相关 >

关于maven的种种诡异有关问题

2013-10-27 
关于maven的种种诡异问题maven 编译BUG 打war? ? ? ? ?[ERROR] Failed to execute goal org.apache.maven.

关于maven的种种诡异问题

    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 配置成本地环境对应物理位置。

?

    ?

?

热点排行