美文网首页
Maven项目使用本地Jar

Maven项目使用本地Jar

作者: jsjack_wang | 来源:发表于2018-01-15 15:01 被阅读0次
mvn install:install-file -Dfile=mySelfFilePath -DgroupId=customDefineGroupId -DartifactId=customArtifactId -Dversion=customVersion -Dpackaging=jar

mySelfFilePath: Jar包本地地址
customDefineGroupId: 给Jar定义的GroupId
customArtifactId: 给Jar定义的ArtifactId
customVersion: 给Jar定义的Version

<dependency>
    <groupId>customDefineGroupId</groupId>
    <artifactId>customArtifactId</artifactId>
    <version>customVersion</version>
</dependency>

相关文章

网友评论

      本文标题:Maven项目使用本地Jar

      本文链接:https://www.haomeiwen.com/subject/kffdoxtx.html