Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Example command lines

...

Before the first time Maven is used to build ANTLR 3 from source, the following command should be executed in the top-level directory of the source tree.

mvn -N install

Examples

Each of these examples is written as a "quick start" case, and assumes the following:

  • You do not have GPG installed or configured
  • You are building the project with Maven 3+ and JDK 6+
  • You have a copy of Java 6 installed
  • You may or may not have a copy of Java 5 installed

Windows

With Java 5 installed
mvn -Dgpg.skip=true -Duser.name="Your Name" -DskipTests=true "-Djava5.home=C:\Program Files (x86)\Java\jre5" "-Djava6.home=C:\Program Files (x86)\Java\jre6"
Without Java 5 installed
mvn -Dgpg.skip=true -Duser.name="Your Name" -DskipTests=true "-Dbootclasspath.compile=C:\Program Files (x86)\Java\jre6\lib\rt.jar" "-Djava6.home=C:\Program Files (x86)\Java\jre6"

Linux

With Java 5 installed
mvn -Dgpg.skip=true -Duser.name="Your Name" -DskipTests=true -Djava5.home=/path/to/jre5 -Djava6.home=/path/to/jre6 install
Without Java 5 installed
mvn -Dgpg.skip=true -Duser.name="Your Name" -DskipTests=true -Dbootclasspath.compile=/path/to/jre6/lib/rt.jar -Djava6.home=/path/to/jre6 install

Mac OSX

With Java 5 installed
mvn -Dgpg.skip=true -Dbootclasspath.java5=/System/Library/Frameworks/JavaVM.framework/Versions/1.5/Classes/classes.jar -Dbootclasspath.java6=/System/Library/Frameworks/JavaVM.framework/Versions/1.6/Classes/classes.jar -DskipTests install
Without Java 5 installed
mvn -Dgpg.skip=true -Dbootclasspath.compile=/System/Library/Frameworks/JavaVM.framework/Versions/1.6/Classes/classes.jar -Dbootclasspath.java6=/System/Library/Frameworks/JavaVM.framework/Versions/1.6/Classes/classes.jar -DskipTests install

Artifact signing (GPG)

By default Maven will sign the build artifacts with GPG, and assumes you have your system configured according to Sonatype's Blog entry "How to Generate PGP Signatures with Maven". One of the following should be used each time Maven is used to build the project.

...