linux平台和windows下maven编译问题

来源:互联网 发布:张敏周星驰关系知乎 编辑:程序博客网 时间:2024/05/19 13:43

        问题:代码中使用了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>


0 0
原创粉丝点击