maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jy hu <huj...@gmail.com>
Subject Re: Delivery Status Notification (Failure)
Date Tue, 05 Apr 2011 07:57:38 GMT
HI,

Yes, I re-download the maven (latest version apache-maven-3.0.3), and
re-config the environment variables.
the same problem as below:

C:\Users\hujunying>mvn --version
javac: invalid flag: -Dclassworlds.conf=Q:\my
work\apache-maven-3.0.3\bin\m2.con
f
Usage: javac <options> <source files>
use -help for a list of possible options

 But I copy the Maven to another machine, I can get the correct info with
the same way.

C:\Users\administrator>mvn --version
Apache Maven 3.0.3 (r1075438; 2011-03-01 01:31:09+0800)
Maven home: C:\apache-maven-3.0.3
Java version: 1.6.0_02, vendor: Sun Microsystems Inc.
Java home: C:\Program Files\Java\jdk1.6.0_02\jre
Default locale: en_GB, platform encoding: Cp1252
OS name: "windows vista", version: "6.1", arch: "x86", family: "windows"

Best,
Jaina


On Tue, Apr 5, 2011 at 12:06 PM, Wayne Fay <waynefay@gmail.com> wrote:

> >> >   I just set a MAVEN_OPTS: -Xmx1024m -Xms512m, an error was given like
> >> last
> >> >  time.Has anyone ever met this?  added that the MAVEN_OPTS was not set
> >> when
> >> >  mvn worked before.Please,
> >> >  C:\Users\lenovo>mvn --version
> >> >   javac: invalid flag: -Xmx1024m
>
> If you open mvn.bat in Notepad, you will not find the word "javac"
> anywhere in the file. Unless of course you edited this file and broke
> it. There is only mention of "java.exe" in my mvn.bat file.
>
> I suggest re-downloading and re-installing Maven, and then not playing
> with the batch files.
>
> Wayne
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>


-- 
**
*Warm wishes,*
*Jaina(hu jun ying)*

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message