You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by ji...@codehaus.org on 2004/06/30 14:02:09 UTC
[jira] Closed: (MAVEN-1351) maven prints exception but no useful information if maven.home.local is set to a directory that does not exist
Message:
The following issue has been closed.
Resolver: Emmanuel Venisse
Date: Wed, 30 Jun 2004 8:00 AM
Fixed.
---------------------------------------------------------------------
View the issue:
http://jira.codehaus.org/browse/MAVEN-1351
Here is an overview of the issue:
---------------------------------------------------------------------
Key: MAVEN-1351
Summary: maven prints exception but no useful information if maven.home.local is set to a directory that does not exist
Type: Bug
Status: Closed
Priority: Major
Resolution: FIXED
Original Estimate: Unknown
Time Spent: Unknown
Remaining: Unknown
Project: maven
Fix Fors:
1.0
Versions:
1.0-rc4
Assignee:
Reporter: Patrick Moore
Created: Tue, 29 Jun 2004 6:47 PM
Updated: Wed, 30 Jun 2004 8:00 AM
Environment: Debian Linux (sarge release -- sorry if this isn't enough; I really don't know about linux versions)
JDK 1.4.2_02
Description:
In my ~/build.properties file I had an old directory set:
maven.home.local=/usr/local/maven-1.0-rc1
A simple enough error, but as can be seen the resulting error is incredibly useless. Since this is the type of error that a beginner would encounter, quickly frustrate and convince them not to use maven, I marked it as major. I should also add that 'maven --info' also has this same problem - which also adds to the frustration.
The error message:
~/projects/rbook$ maven -X
__ __
| \/ |__ _Apache__ ___
| |\/| / _` \ V / -_) ' \ ~ intelligent projects ~
|_| |_\__,_|\_/\___|_||_| v. 1.0-rc4
Initializing Plugins!
Set plugin source directory to /usr/local/maven-storage/plugin
Set unpacked plugin directory to /usr/local/mavenddd/cache
Set user plugin directory to /usr/local/mavenddd/plugins
Plugin cache will be regenerated
Now mapping cached plugins
Now loading uncached plugins
Locking /usr/local/mavenddd/cache/lock.cache
java.io.IOException: No such file or directory
at java.io.UnixFileSystem.createFileExclusively(Native Method)
at java.io.File.createNewFile(File.java:828)
at org.apache.maven.plugin.PluginCacheManager.saveCache(PluginCacheManager.java:181)
at org.apache.maven.plugin.PluginManager.initialize(PluginManager.java:265)
at org.apache.maven.MavenSession.initializePluginManager(MavenSession.java:207)
at org.apache.maven.MavenSession.initialize(MavenSession.java:174)
at org.apache.maven.cli.App.doMain(App.java:473)
at org.apache.maven.cli.App.main(App.java:1215)
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:324)
at com.werken.forehead.Forehead.run(Forehead.java:551)
at com.werken.forehead.Forehead.main(Forehead.java:581)
You have encountered an unknown error running Maven.
---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org