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
8
votes
3 answers

How to deploy only zip artifacts in maven

I have done some zip packaging in maven using the below descriptor and pom file. But in maven by default it created both jar and zip in target folder. Now i want to deploy only zip contents where i am using deploy:deploy-file plugin. but it is not…
divakar.scm
  • 1,256
  • 5
  • 21
  • 32
7
votes
1 answer

Keeping the maven deploy plugin from deploying on test failures

I'm a long time user of the maven-release-plugin which will not release (aka deploy jars to maven repo) if there are unit test failures. For various reasons I want to use only the maven deploy plugin but apparently will still deploy even if there…
Adam Gent
  • 47,843
  • 23
  • 153
  • 203
6
votes
1 answer

Can I change the timestamp of a snapshot to the build number?

We've been seeing a bug recently where Maven tries to retrieve a SNAPSHOT that doesn't exist. As you can see the build number (whatever that is, because it's not our build number) matches, but the timestamp doesn't, causing the build to fail. This…
Alex
  • 2,953
  • 1
  • 27
  • 37
6
votes
3 answers

determine repository URL for maven deploy-file

I am using Maven to build a particular project, and within the POM I am building 3 different variants of the primary artifact using the maven shade plugin (I'm creating uber jars with various combinations of included logging frameworks). The shade…
Richard Sand
  • 642
  • 6
  • 20
6
votes
3 answers

Why is Maven (incorrectly?) deploying my SNAPSHOT to both the release and snapshot repositories?

I'm currently experiencing a problem while trying to set up a project to deploy to an internal nexus repository. Since I'm rather new to Maven in general, I expect that there is just something that I'm not really comprehending in how to set up…
imaginaryboy
  • 5,979
  • 1
  • 32
  • 27
6
votes
1 answer

Maven deploy:deploy-file removes extension from file

I am trying to deploy signature files separately using deploy-file goal to Nexus staging repository, but I noticed that mvn deploy plugin removes the extension. My file is something like: azerty-0.1.jar.asc but the file that gets deployed is:…
zakaria amine
  • 3,412
  • 2
  • 20
  • 35
6
votes
1 answer

Maven: release plugin doesn't see my in

To make Maven "deploy" to a directory, I use this: http://code.google.com/p/junitdiff/downloads/list local-hack-repo LocalDir
Ondra Žižka
  • 43,948
  • 41
  • 217
  • 277
5
votes
1 answer

Deploy SNAPSHOT artifact and sources to Nexus from Maven command line

I am trying to deploy one EXE file and it's zipped source file to Sonatype Nexus using maven command line. Files must be deployed as SNAPSHOTs. So, I have 2 files: -testXYZ.exe and source file -testXYZ.zip Using maven 2.2.1 and command described…
b0ss
  • 61
  • 1
  • 1
  • 3
5
votes
3 answers

How can I embed Maven into my application?

I'd like to embed Maven or the library that does all the magic into my Java application. The keypoints : They are two tasks I want to perform : 1/ Publishing a jar in local repository 2/ Publishing a jar in a private enterprise repository…
Stephan
  • 41,764
  • 65
  • 238
  • 329
5
votes
1 answer

Execution default-deploy of goal org.apache.maven.plugins:maven-deploy-plugin deploy failed. NullPointerException

While running command mvn -X clean deploy I am getting following error [INFO] --- maven-deploy-plugin:2.7:deploy (default-deploy) @ something --- [DEBUG] [buildinfo] Resolved artifact:…
5
votes
1 answer

Obtaining Generated Unique Version from Maven Snapshots

As per the manual, with Maven 3 we're forced to use uniqueSnapshots=true. This means that each deployment of 1.0-SNAPSHOT is actually backed by some unique, canonical ID e.g. 1.0-20080207-230803-1. As a result, invoking mvn deploy produces artifacts…
jwa
  • 3,239
  • 2
  • 23
  • 54
5
votes
3 answers

How to make the Maven Deploy Plugin only upload a specific file?

I want to add two zips to an already published version in Nexus. Essentially, they are a zipped up demo of the application and an extended version of the same application, also zipped. Using the Deploy plugin, I defined two executions in my pom, one…
Urs Reupke
  • 6,791
  • 3
  • 35
  • 49
5
votes
1 answer

Unable to mvn release:prepare, server certificate has failed verification

I'm trying to run an mvn release:prepare release:perform on a project, which has previously worked on a number of occassions without problems, however I'm seeing the following output: [INFO] BUILD FAILURE [INFO]…
Jimmy
  • 16,123
  • 39
  • 133
  • 213
4
votes
1 answer

How to generate and upload checksums with maven deploy plugin 3.0.0-M1?

The feature to generate checksums seems to have moved from install to deploy plugin (see MDEPLOY-231). There seems to be no parameter to control the generation and the deployment of checksums any more, neither in install plugin 3.0.0-M1 (the…
Gustave
  • 3,359
  • 4
  • 31
  • 64
4
votes
2 answers

Failed to deploy artifacts using maven, error code 409

I am using azure devops, and trying to building code and upload using maven, but i am getting following error message. [ERROR] Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:2.7:deploy-file (default-cli) on project ojdbc7:…
Ashish-BeJovial
  • 1,829
  • 3
  • 38
  • 62
1
2
3
12 13