Using Maven to download dependencies to a directory on the command line

后端 未结 3 835
借酒劲吻你
借酒劲吻你 2020-12-01 02:14

I need to download all transitive dependencies of a project to a directory on the command line without having a pom.xml file or other script. Ideally I woul

3条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-01 03:02

    According to my understanding you want to download all dependencies artifacts to one folder on your local computer (without search your local repository). The simple way to do it is to create a simple pom.xml (yes, please create the pom) that will create the WAR file and will depend on your artifact. After mvn clean package your will find all dependencies artifacts (include transitive) in the lib folder of the WAR.

    
    
        4.0.0
        testwar
        examplewar
        war
        1.0-SNAPSHOT
        examplewar Maven Webapp
        
            
                org.jclouds.provider
                rackspace-cloudservers-us
                1.5.8
            
        
    
    
    

提交回复
热议问题