Maven: Trying to Deploy with credentials in settings.xml file

前端 未结 2 1619
萌比男神i
萌比男神i 2021-02-01 02:23

This seemed to be working last week and now it doesn\'t.

  • We use Artifactory as our Maven repository.
  • I am deploying a jar and pom using the deploy:d
2条回答
  •  名媛妹妹
    2021-02-01 02:44

    You need to provide the repositoryId=VeggieCorp (not id) property so that maven knows from which configuration it has to read the credentials.

    $ mvn deploy:deploy-file \
     -Durl=http://repo.veggiecorp.com/artifactory/ext-release-local \
     -Dfile=crypto.jar \
     -DpomFile=pom.xml \
     -DrepositoryId=VeggieCorp
    

    See http://maven.apache.org/plugins/maven-deploy-plugin/deploy-file-mojo.html

提交回复
热议问题