You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Andrew Birchall <ap...@yahoo.co.uk> on 2006/08/10 22:35:17 UTC

Using Maven 1.0.2 with JDK 1.5

Hello,
I'm having trouble running Maven 1.0.2 with the latest version of Java 
(1.5.0_08) on Windows XP
Maven resides in C:\maven-1.0.2 and Java is in C:\java\jdk1.5.0_08
I have set MAVEN_HOME to maven-1.0.2 and JAVA_HOME to JDK 1.5.0_08
And I have set maven-1.0.2\bin in my PATH
However when I run "maven -version" it just prints out the usage 
instructions for Java (???!!!)

Is maven 1.x supposed to work with the latest version of Java?
I can't find any documentation on this on the Maven website
I have no problems with Maven 2. However I need to used Maven 1 for an old 
project.
Thanks for any help anyone can give
Andy Birchall

See below for what is displayed when I run maven -version

C:\>maven -version
Usage: java [-options] class [args...]
           (to execute a class)
   or  java [-options] -jar jarfile [args...]
           (to execute a jar file)

where options include:
    -client       to select the "client" VM
    -server       to select the "server" VM
    -hotspot      is a synonym for the "client" VM  [deprecated]
                  The default VM is client.

    -cp <class search path of directories and zip/jar files>
    -classpath <class search path of directories and zip/jar files>
                  A ; separated list of directories, JAR archives,
                  and ZIP archives to search for class files.
    -D<name>=<value>
                  set a system property
    -verbose[:class|gc|jni]
                  enable verbose output
    -version      print product version and exit
    -version:<value>
                  require the specified version to run
    -showversion  print product version and continue
    -jre-restrict-search | -jre-no-restrict-search
                  include/exclude user private JREs in the version search
    -? -help      print this help message
    -X            print help on non-standard options
    -ea[:<packagename>...|:<classname>]
    -enableassertions[:<packagename>...|:<classname>]
                  enable assertions
    -da[:<packagename>...|:<classname>]
    -disableassertions[:<packagename>...|:<classname>]
                  disable assertions
    -esa | -enablesystemassertions
                  enable system assertions
    -dsa | -disablesystemassertions
                  disable system assertions
    -agentlib:<libname>[=<options>]
                  load native agent library <libname>, e.g. -agentlib:hprof
                    see also, -agentlib:jdwp=help and -agentlib:hprof=help
    -agentpath:<pathname>[=<options>]
                  load native agent library by full pathname
    -javaagent:<jarpath>[=<options>]
                  load Java programming language agent, see 
java.lang.instrument

C:\> 


		
___________________________________________________________ 
The all-new Yahoo! Mail goes wherever you go - free your email address from your Internet provider. http://uk.docs.yahoo.com/nowyoucan.html

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org