maven编译,使用WEB-INFO/lib下的Jar包
来源:互联网 发布:crossover16破解版mac 编辑:程序博客网 时间:2024/05/16 01:33
修改pom.xm 增加
<plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <version>3.1</version> <configuration> <source>1.7</source> <target>1.7</target> <encoding>UTF-8</encoding> <compilerArguments> <verbose /> <bootclasspath>${env.JAVA_HOME}/jre/lib/rt.jar</bootclasspath> <extdirs>${project.basedir}/src/main/webapp/WEB-INF/lib</extdirs> </compilerArguments> </configuration></plugin>
阅读全文