Reputation: 2773
Now I use mvn deploy:deploy-file to deploy my binary files to Nexus automatically:
mvn deploy:deploy-file -Dfile=temp/my-api-1.1.2.jar -DpomFile=temp/my-api-1.1.2.pom -Dfiles=temp/my-api-1.1.2-sources.jar,temp/my-api-1.1.2-javadoc.jar -Dclassifiers=sources,javadoc -Dtypes=jar,jar -Durl=https://***.com/content/repositories/releases/ -DrepositoryId=RemoteNexus --settings settings.xml
I don't want to use Bintray plugin for maven/gradle since my artifacts are already built and stored in my internal repository, I want to deploy to Bintray the same artifacts that I've tested.
Upvotes: 1
Views: 314
Reputation: 22893
Two simple steps:
settings.xml
file.-DrepositoryID=
parameter.You can copy paste the <server/>
tag of the settings.xml
part from the Set Me Up
help in your repository:
Upvotes: 5