Menu
  • HOME
  • TAGS

How to deploy additional artifacts in maven without hardcoding a repository?

maven,release,snapshot,maven-deploy-plugin,deploying

This sounds more like a second execution of maven-jar-plugin (after removing things) and this will result in automatic upload via mvn deploy no need to do such weird things... Or may be using maven-assembly-plugin which creates a supplemental artifacts (one or more)...or maybe maven-shade-plugin. I'm not sure how you stripping...

deploy:deploy-file not finding artifact, group, etc. from pom file

maven,maven-deploy-plugin

tl;dr: the deploy-file mojo doesn't inherit the version number from the parent project, so it must be in the pom directly or specified as -Dversion=... parameter. Depending on how you look at it, this is either a bug or a lack in the documentation. The source for the deploy plugin...

Strip Pom during Publish?

maven,maven-release-plugin,maven-deploy-plugin

You should take a look into flatten-maven-plugin which seemed to be the right direction.