From 52c5c2144e5acb5df58eb04f3f41389ea3eb4e43 Mon Sep 17 00:00:00 2001 From: parrt Date: Thu, 8 Nov 2018 12:41:46 -0800 Subject: [PATCH] tweak --- doc/releasing-antlr.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/doc/releasing-antlr.md b/doc/releasing-antlr.md index 84f1695b9..a44e48e7d 100644 --- a/doc/releasing-antlr.md +++ b/doc/releasing-antlr.md @@ -150,13 +150,13 @@ Uploaded: https://oss.sonatype.org/content/repositories/snapshots/org/antlr/antl The maven deploy lifecycle phased deploys the artifacts and the poms for the ANTLR project to the [sonatype remote staging server](https://oss.sonatype.org/content/repositories/snapshots/). ```bash -mvn -Dmaven.compiler.executable=`/usr/libexec/java_home -v 1.7` deploy -DskipTests +export JAVA_HOME=`/usr/libexec/java_home -v 1.7`; mvn deploy -DskipTests ``` With JDK 1.7 (not 6 or 8), do this: ```bash -mvn -Dmaven.compiler.executable=`/usr/libexec/java_home -v 1.7` release:prepare -Darguments="-DskipTests" +export JAVA_HOME=`/usr/libexec/java_home -v 1.7`; mvn release:prepare -Darguments="-DskipTests" ``` Hm...per https://github.com/keybase/keybase-issues/issues/1712 we need this to make gpg work: @@ -175,10 +175,10 @@ alias jar='/Library/Java/JavaVirtualMachines/jdk1.7.0_21.jdk/Contents/Home/bin/j export JAVA_HOME=`/usr/libexec/java_home -v 1.7` ``` -But I think that this option on mvn works: +But I think just this on front of mvn works: ``` --Dmaven.compiler.executable=`/usr/libexec/java_home -v 1.7` +export JAVA_HOME=`/usr/libexec/java_home -v 1.7`; mvn ... ``` You should see 0x33 in generated .class files after 0xCAFEBABE; see [Java SE 7 = 51 (0x33 hex)](https://en.wikipedia.org/wiki/Java_class_file):