Saturday, 25 May 2013

How to do Maven install or deploy only, without re-package/re-test?

How to do Maven install or deploy only, without re-package/re-test?

Sometimes I wanted to deploy, but I typed mvn package.
Sometimes I want to deploy to another alternative repository (using mvn deploy -DaltDeploymentRepository=...), immediately after the default deploy.
So I really don't want to package and test them again, because they are just succeeded. The result jars are just there, in the target/ directory. I hope I can deploy them.
I know there is deploy:deploy-file, but that's inconvenient to use, I don't want to specify groupId, artifactId again on the command line. It doesn't work for large project which contains a lot of jars to deploy, too.

No comments:

Post a Comment