您好,欢迎来到赴品旅游。
搜索
您的当前位置:首页maven打包过程中,报第三方jar包不存在

maven打包过程中,报第三方jar包不存在

来源:赴品旅游

maven打包过程中,报第三方jar包不存在

maven打包过程用的是maven-compiler-plugin插件进行编译,但是由于项目中存在第三方jar包,maven-compiler-plugin无法获知第三方jar包的位置,因此报错“程序包xxx不存在”,解决方法:

    <build>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-compiler-plugin</artifactId>
                <configuration>
                    <source>1.8</source>
                    <target>1.8</target>
                    <compilerArguments>
			  <extdirs>${project.basedir}/src/main/webapp/WEB-INF/lib</extdirs>
                      <!-- <extdirs>${project.basedir}/lib</extdirs>-->
                    </compilerArguments>
                </configuration>
            </plugin>
        </plugins>
    </build>

因篇幅问题不能全部显示,请点此查看更多更全内容

Copyright © 2019- fupindai.com 版权所有 赣ICP备2024042792号-2

违法及侵权请联系:TEL:199 1889 7713 E-MAIL:2724546146@qq.com

本站由北京市万商天勤律师事务所王兴未律师提供法律服务