Downloading Maven jars inside a project folder

Sometimes our environment will not support maven repo to download jars. So we can use our project’s root directory as repo and add our jars over there by using the structure mentioned in the below in our pom.xml

<repository>
    <id>in-project</id>
    <name>In Project Repo</name>
    <url>file://${project.basedir}/libs</url>
</repository>

<dependency>
    <groupId>dropbox</groupId>
    <artifactId>dropbox-sdk</artifactId>
    <version>1.3.1</version>
</dependency>

Enter fullscreen mode Exit fullscreen mode

原文链接:Downloading Maven jars inside a project folder

© 版权声明
THE END
喜欢就支持一下吧
点赞11 分享
评论 抢沙发

请登录后发表评论

    暂无评论内容