mvn.py: Explicitly specify version in mvn deploy command

When deploying to Maven Central via Sonatype it's OK to omit the
version from the command line and it just takes the version that's
specified in the generated pom.xml.

Some repositories, however, will reject the deploy in this case.

Update the deploy command to explicitly specify the version.

Note that we already do this for the install command.

Change-Id: Ia804da1c4317e7e6ea7571e0c1e4970a5b03c599
Signed-off-by: Dariusz Luksza <dluksza@collab.net>
Signed-off-by: David Pursehouse <dpursehouse@collab.net>
This commit is contained in:
Dariusz Luksza
2015-06-02 09:58:06 +02:00
committed by David Pursehouse
parent 41385b1a00
commit 509cbb4242

View File

@@ -46,6 +46,7 @@ elif 'deploy' == args.a:
cmd = [
'mvn',
'gpg:sign-and-deploy-file',
'-Dversion=%s' % args.v,
'-DrepositoryId=%s' % args.repository,
'-Durl=%s' % args.url,
]