maven 引用自己的jar

<build>
    <plugins>
        <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-compiler-plugin</artifactId>
            <configuration>
                <source>1.6</source>
                <target>1.6</target>
                <encoding>UTF-8</encoding>
                <compilerArguments>
                   <extdirs>srcmainwebappWEB-INFlib</extdirs>
              </compilerArguments>
            </configuration>
        </plugin>
        无关配置省略...
    </plugins>
</build>
原文地址:https://www.cnblogs.com/123a/p/4630158.html