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

mvn deploy:file to different repositories for snapshot and release version

Is it possible to in some way tell the maven deploy:file goal to deploy to two independent artifactories based on whether the version of the project is a snapshot / release? I'm hoping there might be a property which indicates the fact the version…
extorn
  • 611
  • 1
  • 5
  • 11
23
votes
5 answers

How to use GPG key in github actions?

I am trying to do a maven deploy via GitHub actions and i am getting the below error:- gpg: directory '/home/runner/.gnupg' created gpg: keybox '/home/runner/.gnupg/pubring.kbx' created gpg: no default secret key: No secret key gpg: signing failed:…
Rishab Prasad
  • 771
  • 1
  • 8
  • 21
19
votes
1 answer

Difference between altDeploymentRepository and altReleaseDeploymentRepository

I use swagger to generate web services clients on my project. The generated code produce a library that can be use as a Maven lib. I already successfully deploy release version into my private sonatype-nexus. I wonder what is the difference between…
Lionel Briand
  • 1,732
  • 2
  • 13
  • 21
17
votes
1 answer

Maven maven-deploy-plugin always upload twice

I've a problem when publishing component to a Nexus repository, Maven upload the file twice: first time with maven-deploy-plugin groupId/artifactId/version parameters (that's what I want) second time with pom groupId/artifactId/version parameters…
pierrefevrier
  • 1,570
  • 4
  • 22
  • 33
16
votes
4 answers

How can I deploy only the pom file to my snapshot repository in Maven?

I would like to be able to deploy only the POM artifact (file) without the main artifact (JAR, WAR, etc), when running mvn deploy and version is a SNAPSHOT version. Why? We several developers working on multiple Maven projects. We have a Hudson…
Asaf Mesika
  • 1,643
  • 4
  • 20
  • 33
14
votes
1 answer

maven-metadata.xml is not updated when deploying to nexus

i am using Apache Maven 3.0 Nexus Open Source Edition, Version: 1.8.0.1 this is part of my pom.xml maven-deploy-plugin 2.5
Janning Vygen
  • 8,877
  • 9
  • 71
  • 102
13
votes
1 answer

change deployed artifact name based on profile

I have in a web application's pom file, a build profile, which does some necessary things (in my code) for qa testing. I have this code on svn and this code is compiled in Hudson, which deploys artifacts in nexus.. Hudson has two jobs, one for qa…
Alexandros
  • 733
  • 2
  • 10
  • 24
13
votes
3 answers

How to restructure Maven multi-module project?

I appologize for the length of this post, but I had trouble making it more concise without presenting the picture. I've recently inherited the job of build-master for a maven 3.0 multi-module project. The problem is that the structure of the…
Eric B.
  • 23,425
  • 50
  • 169
  • 316
12
votes
5 answers

Connector for maven deployment?

I have created a working maven archetype for a Vaadin/Hibernate/Spring project. I am able to install this archetype to my local repository and use it to generate new maven projects. Now I want to deploy the archetype to my companies internal…
diestl
  • 2,020
  • 4
  • 23
  • 37
12
votes
3 answers

Can I modify the Maven deploy phase to replace the maven-deploy-plugin with my own plugin?

I'm pretty new to Maven... What I'm trying to do is skip the maven-deploy-plugin during the deploy phase, while replacing it with my own plugin (i.e. I'm deploying to a non-repository location). I realize I could do this in multiple other ways, but…
jbeck
  • 2,184
  • 1
  • 19
  • 21
10
votes
2 answers

Maven deploy plugin - deployAtEnd not working

I'm using maven-deploy-plugin in multi-module project with deployAtEnd property set to true. After executing mvn deploy in root project, deploy plugin is executed for each subproject - I can see something like: [INFO] ---…
9
votes
2 answers

How to deploy locally already installed artifact with Maven

Story I know, that maven deploy command runs through the whole lifecycle. My problem, that it takes to much time in my case. Let me explain: There is an application built up from a Server, and a single sourced Eclipse RAP&RCP client The…
Gábor Lipták
  • 9,646
  • 2
  • 59
  • 113
8
votes
3 answers

How can I deploy a zip file created with the maven-antrun-plugin?

I'm using the maven-antrun-plugin to do a bunch of work with Ant, which ultimately results in a zip file. I'd like to deploy the zip file to our maven server (Artifactory). The maven-antrun-portion works as intended and successfully creates the…
Justin Garrick
  • 14,767
  • 7
  • 41
  • 66
8
votes
4 answers

How to upload maven plugin to Github packages?

Consider I have a maven plugin project and I want to publish it to Github's public maven repository called "Github Packages". I've done everything by instruction and for normal projects everything works fine out of the box. But for maven plugin…
Kivan
  • 1,712
  • 1
  • 14
  • 30
8
votes
1 answer

Why does mvn release:perform always create a new snapshot version and upload that to the repository instead of the non-snapshot release version?

I have created a public repo in Bitbucket to hold all the releases and snapshot releases for me. I am using wagon-git to upload the jar to the releases repository. Here are my entries in pom.xml:
user1790625
  • 271
  • 4
  • 8
1
2 3
12 13