maven compilerArguments extdirs配置多个值

有时候要用的WEB-INF下面的lib里面的sdk,另外一方面又要用的jce加密的jar。

参考如下:

<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-compiler-plugin</artifactId>
				<version>3.3</version>
				<configuration>
					<source>1.7</source>
					<target>1.7</target>
					<encoding>utf8</encoding>
					<compilerArguments>
						<extdirs>${basedir}/src/main/webapp/WEB-INF/lib:${env.JAVA_HOME}/jre/lib/ext</extdirs>
					</compilerArguments>
				</configuration>
</plugin>

注意:

A.<bootclasspath><extdirs>两个标签,如果配置多个数据,mac,linux用冒号(:),而windows用分号(;)

B.<bootclasspath><extdirs>两个标签,windows路径用\,mac,linux用/

猜你喜欢

转载自blog.csdn.net/plm609337931/article/details/84139497