How to simply download a JAR using Maven?

后端 未结 12 594
轮回少年
轮回少年 2020-12-04 10:14

How do I download JAR during a build in Maven script?

12条回答
  •  情歌与酒
    2020-12-04 10:45

    Note: This answer is for downloading the jars directly from maven without any scripts [That is how Google directed me here]

    Assuming mvn dependency is like this:

    
        com.zaxxer
        HikariCP
        2.4.7
    
    

    Goto http://search.maven.org and search for g:"com.zaxxer" AND a:"HikariCP" AND v:"2.4.7" (simply searching for HikariCP also works. You may need to select the appropriate GroupId and Version from the results)

    In the Search Results -> Download column, you should see jar javadoc.jar sources.jar available for direct download

提交回复
热议问题