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
4
votes
0 answers

Maven deploy:file step: automatically deploy to snapshot or to release repository

I have the following sections in my pom.xml maven-booking-snapshots https://artifactory.booking.com/maven-booking-snapshots maven-booking-releases
alexlipa
  • 1,131
  • 2
  • 12
  • 27
4
votes
2 answers

How to speed up maven-deploy-plugin to deploy artifacts to the Artifactroy?

I'm using Maven version 3.5.4 with maven-deploy-plugin version 2.8.2 to deploy my artifacts to Artifactory version 6.3.2. When I execute the mvn deploy -DdeployAtEnd=true, it takes times for each module around 2+ minutes. I have 15 modules which…
Charlee Chitsuk
  • 8,847
  • 2
  • 56
  • 71
4
votes
1 answer

When should generatePom for maven deploy-file be set to false?

I am calling deploy-file like this to load some JARs into my corporate repository: mvn org.apache.maven.plugins:maven-deploy-plugin:2.8.2:deploy-file \ -Dfile=lib/SomeLib.jar \ -DrepositoryId=mycompany-central \ …
Freiheit
  • 8,408
  • 6
  • 59
  • 101
4
votes
1 answer

How to compile all modules but install/deploy only selected modules?

I've a typical multi-module maven project. There's a Jenkins job which builds and deploys all snapshots to the internal repository. There's another Jenkins build which checks out code, updates all pom versions, and builds & deploys versioned…
phanin
  • 5,327
  • 5
  • 32
  • 50
4
votes
1 answer

Connecting maven with putty

I'm having issues using putty with the mvn-deploy-plugin. I execute: mvn deploy This is what my settings.xml look like: website user
Drew
  • 4,683
  • 4
  • 35
  • 50
3
votes
2 answers

How do I deploy just the sources jar from a maven project?

We made a number of releases to our nexus repository without source jars attached. I would like to backfill the source jars for these releases. What I tried to do was checkout the tagged version that I wanted to upload sources for update the pom…
Caoilte
  • 2,381
  • 1
  • 21
  • 27
3
votes
1 answer

Maven Shade Plugin: deploy both artifacts but make shaded one the main

I use maven shade plugin in the package phase and I want that the shaded jar becomes the main jar my-app.jar the original jar is not renamed to original-my-app.jar but a custom classifier is applied to it, in particular my-app:no-deps.jar finally…
alexlipa
  • 1,131
  • 2
  • 12
  • 27
3
votes
0 answers

Maven deploys previously deployed artifact on reattempt

I have a maven build and artifactory(pretty unstable for now), so sometimes it returns 'Failed to respond' error. I increased 'retryFailedDeploymentCount' parameter, but still have issues. The snippet from my build log below: [INFO] Uploading:…
Vasilii Ruzov
  • 554
  • 1
  • 10
  • 27
3
votes
0 answers

maven-release-plugin fails downloading maven-metadata.xml from non-existing SNAPSHOT

when trying to execute the maven-release-plugin's step perform, maven-deploy-plugin tries to download the maven-metadata.xml from SNAPSHOT and fails with Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:2.7:deploy…
woezelmann
  • 1,355
  • 2
  • 19
  • 39
3
votes
1 answer

Deploying multiple files in single pom

I have a pom which gets some zip, unpacks and deploys the 5 artifacts (jar + pom) that are inside. It looks something like: org.apache.maven.plugins
orepor
  • 905
  • 2
  • 13
  • 23
3
votes
0 answers

Maven - activating profiles based on phase/goal

Is it possible to activate profile in Maven based on executed phase or goal? For example when I execute: mvn deploy I want my profile activate.
jjack
  • 136
  • 1
  • 1
  • 7
3
votes
2 answers

Disable distributionManagement in Maven POM

I am trying to run a mvn deploy goal with maven on my Liferay portlet but am getting the following error [ERROR] Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:2.8. 2:deploy (default-deploy) on project MyPortlet: Deployment…
Clay Banks
  • 4,483
  • 15
  • 71
  • 143
3
votes
0 answers

How to stop maven deploying test jar files

Maven has a useful facility to create jar files for tests that can be depended on by other projects. We use the "easy way" from this page. This all works fine, and produces files of the name foo-1.0.0-tests.jar. By default, these test jar files are…
JodaStephen
  • 60,927
  • 15
  • 95
  • 117
3
votes
1 answer

Jenkins: too many logs when maven deploy called

In jenkins log, there are too many logs when maven plugin maven-deploy-plugin:2.8.2:deploy is called. For example, when I try to upload a 50MB war to Nexus, there are: Uploading: ... 2/51018 KB 4/51018 KB 6/51018 KB ... 25412/51018…
Nelson G.
  • 5,145
  • 4
  • 43
  • 54
3
votes
2 answers

How could I deploy multiple maven artifacts to multiple nexus repositories including snapshot repositories without having to specify a profile?

We have a gateway-client project that is part of a multi-module maven project. The gateway-client pom.xml is configured to create two main artifacts: gateway-client.jar and gateway-services-client.jar and deploy them to two separate Nexus…
Sheparzo
  • 533
  • 6
  • 13
1 2
3
12 13