maven 中bootclasspath多个jar包

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/u011008029/article/details/72956751

在windows下用;分隔,linux下用:分隔。

windows下:

<plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-compiler-plugin</artifactId>
                    <version>2.3.2</version>
                    <configuration>
                        <source>1.7</source>
                        <target>1.7</target>
                        <encoding>UTF-8</encoding>
                        <compilerArguments>
                            <verbose />
                            <bootclasspath>${java.home}/lib/rt.jar;${java.home}/lib/jce.jar</bootclasspath>
                            <extdirs>${basedir}/WebRoot/WEB-INF/lib</extdirs>
                        </compilerArguments>
                    </configuration>
                </plugin>

Linux下

<plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-compiler-plugin</artifactId>
                    <version>2.3.2</version>
                    <configuration>
                        <source>1.7</source>
                        <target>1.7</target>
                        <encoding>UTF-8</encoding>
                        <compilerArguments>
                            <verbose />
                            <bootclasspath>${java.home}/lib/rt.jar:${java.home}/lib/jce.jar</bootclasspath>
                            <extdirs>${basedir}/WebRoot/WEB-INF/lib</extdirs>
                        </compilerArguments>
                    </configuration>
                </plugin>

没有更多推荐了,返回首页