maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Christopher Cobb" <christopher.c...@wfinet.com>
Subject [m201] cygwin: Failed to initialize environment variable resolver. Skipping environment substitution in settings.
Date Wed, 14 Dec 2005 14:02:59 GMT
Using 2.0.1 under cygwin, I get this with every command:

$ mvn clean
[WARNING] Failed to initialize environment variable resolver. Skipping
environment substitution in settings.
[WARNING] Failed to initialize environment variable resolver. Skipping
environment substitution in settings.
[INFO] Scanning for projects...
[INFO]
----------------------------------------------------------------------------
[ERROR] FATAL ERROR
[INFO]
----------------------------------------------------------------------------
[INFO] String index out of range: -1
[INFO]
----------------------------------------------------------------------------
[INFO] Trace
java.lang.StringIndexOutOfBoundsException: String index out of range: -1
        at java.lang.String.substring(String.java:1768)
        at
org.codehaus.plexus.util.cli.CommandLineUtils.getSystemEnvVars(CommandLineUt
ils.java:188)
        at
org.codehaus.plexus.util.interpolation.EnvarBasedValueSource.<init>(EnvarBas
edValueSource.java:16)
        at
org.apache.maven.project.interpolation.RegexBasedModelInterpolator.interpola
te(RegexBasedModelInterpolator.java:86)
        at
org.apache.maven.project.DefaultMavenProjectBuilder.processProjectLogic(Defa
ultMavenProjectBuilder.java:725)
        at
org.apache.maven.project.DefaultMavenProjectBuilder.build(DefaultMavenProjec
tBuilder.java:632)
        at
org.apache.maven.project.DefaultMavenProjectBuilder.buildFromSourceFile(Defa
ultMavenProjectBuilder.java:304)
        at
org.apache.maven.project.DefaultMavenProjectBuilder.build(DefaultMavenProjec
tBuilder.java:274)
        at org.apache.maven.DefaultMaven.getProject(DefaultMaven.java:515)
        at
org.apache.maven.DefaultMaven.collectProjects(DefaultMaven.java:447)
        at org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:351)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:278)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:249)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at
org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
        at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
        at
org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
        at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
[INFO]
----------------------------------------------------------------------------
[INFO] Total time: < 1 second
[INFO] Finished at: Wed Dec 14 08:33:09 EST 2005
[INFO] Final Memory: 1M/2M
[INFO]
----------------------------------------------------------------------------

The actual line of java that mvn is invoking is:

+ exec /c/Program Files/Java/jdk1.5.0_03/bin/java -classpath
C:\downloads\maven-2.0.1/core/boot/classworlds-1.1-alpha-2.jar
-Dclassworlds.conf=C:\downloads\maven-2.0.1/bin/m2.conf
-Dmaven.home=C:\downloads\maven-2.0.1 org.codehaus.classworlds.Launcher




-----------------------------------------
Attention:
Any views expressed in this message are those of the individual sender,
except where the message states otherwise and the sender is authorized
to state them to be the views of any such entity. The information
contained in this message and or attachments is intended only for the
person or entity to which it is addressed and may contain confidential
and/or privileged material.  If you received this in error, please
contact the sender and delete the material from any system and destroy
any copies.


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


Mime
View raw message