码迷,mamicode.com
首页 > 编程语言 > 详细

maven依赖本地jar包

时间:2020-11-25 12:05:27      阅读:6      评论:0      收藏:0      [点我收藏+]

标签:bsp   ati   com   pen   rect   snapshot   pre   jar包   maven   

     <dependency>
            <groupId>com.demo</groupId>
            <artifactId>demo</artifactId>
            <version>1.0.1-SNAPSHOT</version>
            <scope>system</scope>
            <systemPath>${basedir}/src/main/resources/lib/core-1.0.1-SNAPSHOT.jar</systemPath>
        </dependency>
<plugins>   
        <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-war-plugin</artifactId>
                <configuration>
                    <webResources>
                        <resource>
                            <directory>${basedir}/src/main/resources/lib</directory>
                            <targetPath>WEB-INF/lib</targetPath>
                            <includes>
                                <include>**/*.jar</include>
                            </includes>
                        </resource>
                    </webResources>
                </configuration>
            </plugin>
        </plugins>

 

maven依赖本地jar包

标签:bsp   ati   com   pen   rect   snapshot   pre   jar包   maven   

原文地址:https://www.cnblogs.com/hsiaochinchin/p/14013218.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!