添加本地jar包到maven倉庫

在cmd窗口中執行apache

mvn install:install-file -Dfile=D:\project\libs\activemq-all-5.10.0.jar -DgroupId=org.apache.activemq  -DartifactId=activemq-all  -Dversion=5.10.0 -Dpackaging=jarui

執行結果如圖:xml

執行後,看到 build success.cmd

而後就能夠去 pom.xml 添加依賴了.io

<dependency>
    <groupId>org.apache.activemq</groupId>
    <artifactId>activemq-all</artifactId>
    <version>5.10.0</version>
</dependency>
相關文章
相關標籤/搜索