导入自己的jar包到maven依赖库中

来源:互联网 发布:东方航空 算法工程师 编辑:程序博客网 时间:2024/06/11 20:14

导入自己的jar包到maven依赖库中

      mvn install:install-file -DgroupId=javax.jms -DartifactId=jms -Dversion=1.1 -Dfile=E:\jms-1.1.jar -Dpackaging=jar


<dependency>
<groupId>javax.jms</groupId>
<artifactId>jms</artifactId>
<version>1.1</version>
</dependency>

        

mvn install:install-file

-DgroupId=javax.jms      这个和自己的pom.xml中的中的一样就行

-DartifactId=jms         这个和自己的pom.xml中的中的一样就行

-Dversion=1.1          这个和自己的pom.xml中的中的一样就行

-Dfile=E:\jms-1.1.jar   (自己要添加的jar包,我暂时放在E盘下)

-Dpackaging=jar


经过上面这句话就可以把自己的jar包导入到maven中的repository中

0 0
原创粉丝点击