I did not have project URL in pom and the maven deploy failed again.

This commit is contained in:
Terence Parr 2015-01-23 15:33:01 -08:00
parent 2065644b4a
commit 4cc275ab52
3 changed files with 11 additions and 12 deletions

View File

@ -65,7 +65,7 @@ def mvn_snapshot(): # assumes that you have ~/.m2/settings.xml set up
# deploy to maven central
def mvn_staging(): # assumes that you have ~/.m2/settings.xml set up
def mvn_deploy(): # assumes that you have ~/.m2/settings.xml set up
"""
mvn gpg:sign-and-deploy-file \
-Durl=https://oss.sonatype.org/service/local/staging/deploy/maven2/ \
@ -89,22 +89,19 @@ def mvn_staging(): # assumes that you have ~/.m2/settings.xml set up
binjar = uniformpath("dist/antlr4-%s-complete.jar" % VERSION)
docjar = uniformpath("dist/antlr4-%s-complete-javadoc.jar" % VERSION)
srcjar = uniformpath("dist/antlr4-%s-complete-sources.jar" % VERSION)
mvn_deploy("gpg:sign-and-deploy-file",
binjar, docjar, srcjar, repositoryid="ossrh",
pomfile="tool/pom.xml", url="https://oss.sonatype.org/service/local/staging/deploy/maven2/")
mvn("gpg:sign-and-deploy-file",
binjar, docjar, srcjar, repositoryid="ossrh",
pomfile="tool/pom.xml",
url="https://oss.sonatype.org/service/local/staging/deploy/maven2/")
# deploy the runtime, it becomes antlr4-runtime artifact at maven
binjar = uniformpath("dist/antlr4-%s.jar" % VERSION)
docjar = uniformpath("dist/antlr4-%s-javadoc.jar" % VERSION)
srcjar = uniformpath("dist/antlr4-%s-sources.jar" % VERSION)
mvn_deploy("gpg:sign-and-deploy-file",
binjar, docjar, srcjar, repositoryid="ossrh",
pomfile="runtime/Java/pom.xml",
url="https://oss.sonatype.org/service/local/staging/deploy/maven2/")
def mvn(): # TODO
pass
mvn("gpg:sign-and-deploy-file",
binjar, docjar, srcjar, repositoryid="ossrh",
pomfile="runtime/Java/pom.xml",
url="https://oss.sonatype.org/service/local/staging/deploy/maven2/")
def pypi(): # assumes that you have ~/.pypirc set up
cmd = ["python", "setup.py", "register", "-r", "pypi"]

View File

@ -6,6 +6,7 @@
<artifactId>antlr4-runtime</artifactId>
<version>4.5</version>
<packaging>jar</packaging>
<url>http://www.antlr.org</url>
<name>ANTLR 4 Runtime</name>
<description>The ANTLR 4 Runtime</description>

View File

@ -5,6 +5,7 @@
<artifactId>antlr4</artifactId>
<version>4.5</version>
<packaging>jar</packaging>
<url>http://www.antlr.org</url>
<name>ANTLR 4 Tool</name>
<description>The ANTLR 4 grammar compiler.</description>