As does it fail when I try running it from C:\.

But as I stated in my initial post, it does not fail if I run it in C:\Widows 
or C:\Windows\System32!!!

I'm not sure why it should be failing from any directory from which it's 
started.

Does Maven assume that the directory when you are launching it from is 1)either 
already a project or 2)going to be a project?

Mike

Michael Tarullo
Contractor (Engility Corp)
Enterprise Architect
NSRR System Administrator
FAA WJH Technical Center
(609)485-5294

-----Original Message-----
From: Bernd Eckenfels [mailto:e...@zusammenkunft.net] 
Sent: Friday, April 17, 2015 4:30 PM
To: users@maven.apache.org
Subject: Re: Problem Running Maven

Hello,

hm, the problem is the \ in the .multiModuleProjectDirectory (caused by the 
fact that you run it in a toplevel directory I guess).

I guess this could be fixed, but then again, does it work when you use a subdir 
of the h:\ drive? IS this really a project directory?

I just tried it and can reproduce it, when I am in "C:\" it fails, also. 

Gruss
Bernd


 Am Fri, 17 Apr 2015 20:10:17
+0000 schrieb <michael.ctr.taru...@faa.gov>:
> H:\>cd ..
> > H:\>IF "H:\" == "H:\" goto baseDirNotFound
> H:\>set MAVEN_PROJECTBASEDIR=H:\
> H:\>cd "H:\"
...
> H:\>"C:\Program Files\Java\jdk1.8.0_31\bin\java.exe"    -classpath
> "C:\Apache\Ma
> ven\apache-maven-3.3.1\boot\plexus-classworlds-2.5.2.jar"
> "-Dclassworlds.conf=C: \Apache\Maven\apache-maven-3.3.1\bin\m2.conf"
> "-Dmaven.home=C:\Apache\Maven\apac he-maven-3.3.1"
> "-Dmaven.multiModuleProjectDirectory=H:\" org.codehaus.plexus.cl 
> assworlds.launcher.Launcher --version
                              


 Usage: java [-options] class
> [args...] (to execute a class) or  java [-options] -jar jarfile 
> [args...] (to execute a jar file) where options include:
>     -d32          use a 32-bit data model if available
>     -d64          use a 64-bit data model if available
>     -server       to select the "server" VM
>                   The default VM is server.
> 
>     -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 | -no-jre-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 with specified granularity
>     -da[:<packagename>...|:<classname>]
>     -disableassertions[:<packagename>...|:<classname>]
>                   disable assertions with specified granularity
>     -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
> 
>     -splash:<imagepath>
>                   show splash screen with specified image See 
> http://www.oracle.com/technetwork/java/javase/documentation/index.html
> for m ore details.
> 
> H:\>if ERRORLEVEL 1 goto error
> 
> H:\>set ERROR_CODE=1
> 
> H:\>if not "on" == "" goto skipRcPost
> 
> H:\>if "" == "on" pause
> 
> H:\>if "" == "on" exit 1
> 
> H:\>exit /B 1
> 
> H:\>
> 
> Michael Tarullo
> Contractor (Engility Corp)
> Enterprise Architect
> NSRR System Administrator
> FAA WJH Technical Center
> (609)485-5294
> 
> -----Original Message-----
> From: Bernd Eckenfels [mailto:e...@zusammenkunft.net]
> Sent: Friday, April 17, 2015 3:53 PM
> To: users@maven.apache.org
> Subject: Re: Problem Running Maven
> 
> Hello,
> 
> you can try to set "MAVEN_BATCH_ECHO=ON" and "MAVEN_SKIP_RC=On" to see 
> the commands the batch are executing and make sure you have no old 
> config laying around.
> 
> What is your JAVA_HOME actually set to? Does it end in a \? 
> 
> I suspect it is related to the new .mvn\ directory handling. It should 
> be visible if you enable command echos. Paste the output to some 
> pastebin where you can show it.
> 
>  Do you have any .mvn\ directories? What does "where java" and "where  
> mvn" tell you (outside the directories where it works).
> 
> Gruss
> Bernd
> 
> 
>  Am
> Fri, 17 Apr 2015 19:34:10 +0000 schrieb <michael.ctr.taru...@faa.gov>:
> 
> > I have recently downloaded and unzipped Maven 3.3.1 in Windows 7.
> > 
> > I updated my path environment variable to include 
> > C:\Apache\Maven\apache-maven-3.3.1\bin.  I also added a JAVA_HOME 
> > environment variable that points to my Java 8 JDK.  And created both 
> > an M2_HOME and M2 environment variable.
> > 
> > When I enter mvn - -version on the command line I get the following:
> > 
> > H:\>mvn --version
> > Usage: java [-options] class [args...]
> >            (to execute a class)
> >    or  java [-options] -jar jarfile [args...]
> >            (to execute a jar file)
> > where options include:
> >     -d32          use a 32-bit data model if available
> >     -d64          use a 64-bit data model if available
> >     -server       to select the "server" VM
> >                   The default VM is server.
> > 
> >     -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 | -no-jre-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 with specified granularity
> >     -da[:<packagename>...|:<classname>]
> >     -disableassertions[:<packagename>...|:<classname>]
> >                   disable assertions with specified granularity
> >     -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
> > 
> >     -splash:<imagepath>
> >                   show splash screen with specified image See 
> > http://www.oracle.com/technetwork/java/javase/documentation/index.ht
> > ml
> > for more details.
> > 
> > However, when I change to any of the following three directories:
> > 
> > C:\Windows
> > C:\Windows\System32
> > C:\Apache\Maven\apache-maven-3.3.1\bin
> > 
> > and enter mvn - -version on the command line I get the following:
> > 
> > C:\Apache\Maven\apache-maven-3.3.1\bin>mvn --version Apache Maven
> > 3.3.1 (cab6659f9874fa96462afef40fcf6bc033d58c1c;
> > 2015-03-13T16:10:27-04:00) Maven home:
> > C:\Apache\Maven\apache-maven-3.3.1\bin\.. Java version: 1.8.0_31,
> > vendor: Oracle Corporation Java home: C:\Program 
> > Files\Java\jdk1.8.0_31\jre Default locale: en_US, platform encoding:
> > Cp1252 OS name: "windows 7", version: "6.1", arch: "amd64", family:
> > "dos"
> > 
> > If I run mvn - -version from any other directory I get the same 
> > results as reported when I run from H:\.
> > 
> > 
> > Michael Tarullo
> > Contractor (Engility Corp)
> > Enterprise Architect
> > NSRR System Administrator
> > FAA WJH Technical Center
> > (609)485-5294
> > 
> > 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
> 


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


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

Reply via email to