日期:2014-05-17  浏览次数:20785 次

maven 使用项目中web-inf/lib 中的jar包
将一个普通的web 项目改成maven项目,原来的Jar 包都在lib下面,jar包太多,有没有什么方法,可以配置后使用lib下面的jar包,
java? maven

------解决方案--------------------

<build>
        <plugins>
            <plugin>
              <artifactId>maven-compiler-plugin</artifactId>
              <configuration>
                  <source>1.6</source>
                  <target>1.6</target>
                  <encoding>UTF-8</encoding>
                  <compilerArguments>
                   <extdirs>src\main\webapp\WEB-INF\lib</extdirs>
                 </compilerArguments>
              </configuration>
            </plugin>
        </plugins>
    </build>