问题:代码中使用了sun公司的第三方私有库,导致本地编译不通过,加上如下这段,编译就ok了,但是在linux环境中把rt.jar 拷贝到lib下还是编译不通过,仔细查看报错是路径的问题统一使用/。
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<encoding>UTF-8</encoding>
<compilerArguments>
<verbose />
<bootclasspath>${JAVA_HOME}/lib/rt.jar</bootclasspath>
</compilerArguments>
</configuration>
</plugin>