Questions tagged [maven-deploy-plugin]

The deploy plugin is primarily used during the deploy phase, to add your artifact(s) to a remote repository for sharing with other developers and projects.

The deploy plugin is primarily used during the deploy phase, to add your artifact(s) to a remote repository for sharing with other developers and projects.

This plugin has a default binding to the deploy phase, which is also the last phase of the default Maven lifecycle. Hence, Maven will firstly invoke any preceding phase, build the required artifact and lastly use this plugin to deploy it.

Check the official usage page for a first look at how to use it.

More Info

186 questions
3
votes
1 answer

Maven embedded deploy not working with org.apache.httpcomponents.httpclient version 4.4

Within my application I have to (mvn) deploy artifacts programmatically. I do this with the help of the maven-embedder artifact and some really simple code: MavenCli client = new MavenCli(); int result = client.doMain(new String[] { "deploy" },…
3
votes
0 answers

How to stop maven-deploy-plugin:deploy-file deploying source?

I have a WAR project that also produces some extra artefacts that I want to deploy to my artifact repo. So I have configured executions under the deploy plugin to deploy each of the extra artefacts deploy-exe
William
  • 20,150
  • 8
  • 49
  • 91
3
votes
4 answers

Deploying Maven assembly ZIP to nexus

I am using the assembly plugin to build a jar with dependancies and then zip the project. The zip should then be uploaded to nexus. The clean install works and generates the zip file as expected. The deploy command fails: [INFO] Scanning for…
3
votes
1 answer

Maven does not reference the settings.xml for a repository when deploying

I am trying to configure the deploy step in a Maven 3.0.4 POM using the tag. From XSD for POMs (line 1389), it suggests that merely providing the id should allow Maven too look up the corresponding values from the…
Sled
  • 18,541
  • 27
  • 119
  • 168
3
votes
1 answer

maven deploy jar to svn with a commit message

We use a maven repo managed in a SVN. I am built a jar newUtil-1.0.jar which I need to deploy it to the remote repo. I am using the following command, which results in build failure. mvn deploy:deploy-file -Dfile=/tmp/newUtil-1.0.jar…
mtk
  • 13,221
  • 16
  • 72
  • 112
3
votes
2 answers

Maven deploy plugin override error?

I am trying to override deploy plugin for maven and get the following error on some of my projects but not others: Execution default-deploy of goal org.apache.maven.plugins:maven-deploy-plugin:2.6:deploy failed: Cannot add two different pieces of…
Usman Ismail
  • 17,999
  • 14
  • 83
  • 165
3
votes
1 answer

mvn deploy to AWS (ssh via distributionManagement)

I am working on deploying the WAR file to AWS using Maven. I am planning to use 'mvn deploy' for the same which would ssh the war file to AWS. I am following http://maven.apache.org/plugins/maven-deploy-plugin/examples/deploy-ssh-external.html.…
Dexter
  • 1,621
  • 3
  • 18
  • 38
2
votes
3 answers

post maven artifact to file upload servlet

We have a servlet that we post a zip file to. I would like to automate building the zip and posting it to the servlet with maven. Is there a way to do that with maven plugins or should I just use external tools or ant tasks?
danb
  • 10,239
  • 14
  • 60
  • 76
2
votes
0 answers

What is maven variable to get full repository URL where artefact/jar is uploaded

We have git -> team city -> artifactoy for CICD pipeline where build job in team city uses maven plugins to build the jars and then deploy jars to artifactory server. I am already doing some custom processing in my CICD pipeline using team city…
Ishwar Jindal
  • 373
  • 1
  • 2
  • 10
2
votes
2 answers

Publish from internal nexus to maven central

I have an internal nexus that contains all the artifacts that we build. Once an artifact is tested, I want to take the sane artifact and deploy it to Maven Central without rebuilding it. I know that I might be able to do that using mvn…
nadavy
  • 1,755
  • 1
  • 18
  • 33
2
votes
2 answers

Maven deploy creates two different sonatype repositories

I'm trying to build a CI process with an automatic upload of release artifacts to Maven Central (Sonatype) from github using Travis CI. Basically, everything works fine, except at the end ; I get two different Nexus repositories from my maven deploy…
Romain VDK
  • 1,798
  • 1
  • 11
  • 9
2
votes
2 answers

Artifactory Maven example fails with 401 error code

I'm trying Artifactory on my localhost. Even though I've followed their tutorial to do their Maven example, I fail with 401 status code. Here is the error I get: [ERROR] Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:2.7:deploy…
Mahdi
  • 1,089
  • 1
  • 14
  • 27
2
votes
1 answer

maven deploy test.jar to nexus via command line

I am using below command for uploading the old artifacts to new nexus as they cannot be rebuild. mvn deploy:deploy-file --settings=~/.m2/settings_att_nexus.xml -DgroupId=com.org -Dsources=someone-3.3.1-SNAPSHOT-sources.jar …
Manan Kapoor
  • 675
  • 1
  • 11
  • 28
2
votes
1 answer

Nexus Artefact Upload Failure

using maven deploy command, I tried to upload artefacts of size (440 MB) in Nexus repository(Nexus Version : nexus-professional-2.13.0-01). Maven version is 3.5.2. Configured my proxy server details in settings.xml mvn -e -X deploy:deploy-file…
user2439278
  • 1,222
  • 7
  • 41
  • 75
2
votes
1 answer

nexus-staging-maven-plugin only upload artifacts that are explicitly set NOT to be uploaded

I'm deploying my project to maven central but encounter this quirky behaviour of nexus-staging-maven-plugin this is my project structure: spookystuff (want to release pom) |-spookystuff-core (want to release jar) |-spookystuff-example(DON'T want to…
tribbloid
  • 4,026
  • 14
  • 64
  • 103