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/08/27 13:04:43 UTC

[jira] Commented: (MAVEN-1420) Maven shared via Samba-Share

The following comment has been added to this issue:

     Author: Christian Mouttet
    Created: Fri, 27 Aug 2004 7:04 AM
       Body:
I did some debugging and found out that it hasn't anything to do with Samba, but in the way I configured it.

The maven-bins are mounted to M: on the Windows machine. MAVEN_HOME is uses in PATH - looks like (...);%MAVEN_HOME%\bin;(...)

The 2nd 'if' in MavenJellyContext.resolveRelativePath(File, String) for 'maven.home' reports this directory as invalid and inserts the working directory at the beginning of the String. => something like C:\working-dir\M:\ is set.

The cause why it's running on Linux is that the path for 'maven.home' starts with '/'. This doesn't adds the working-dir.


My workaround is setting MAVEN_HOME=M:\\

Now I'm getting an entry M:\\bin in the path. That's not quite pretty but it works anyway.
---------------------------------------------------------------------
View this comment:
  http://jira.codehaus.org/browse/MAVEN-1420?page=comments#action_23547

---------------------------------------------------------------------
View the issue:
  http://jira.codehaus.org/browse/MAVEN-1420

Here is an overview of the issue:
---------------------------------------------------------------------
        Key: MAVEN-1420
    Summary: Maven shared via Samba-Share
       Type: Bug

     Status: Unassigned
   Priority: Major

 Original Estimate: Unknown
 Time Spent: Unknown
  Remaining: Unknown

    Project: maven
   Versions:
             1.0

   Assignee: 
   Reporter: Christian Mouttet

    Created: Mon, 9 Aug 2004 3:49 AM
    Updated: Fri, 27 Aug 2004 7:04 AM
Environment: Server: SuSE 8.1 prof. (2.4.19-4GB #1 Fri Sep 13 13:14:56 UTC 2002 i686), Samba 2.2.5
Client: Windows 2000 or XP

Description:
The Maven installation directory lives on a Linux box and is shared via NFS and Samba. Working with Linux everything is o.k. but running Maven on a Windows machine shows me the following error message ('maven -X -e'.  'maven --info' prints the same
lines):

-%<--
 __  __
|  \/  |__ _Apache__ ___
| |\/| / _` \ V / -_) ' \  ~ intelligent projects ~
|_|  |_\__,_|\_/\___|_||_|  v. 1.0

org.apache.maven.MavenException: Maven was badly installed. Please
reinstall it.
        at org.apache.maven.plugin.PluginManager.initialize(PluginManager.java:240)
        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. Please help us to
correct
this problem by following these simple steps:
- read the Maven FAQ at http://maven.apache.org/faq.html
- run the same command again with the '-e' parameter, eg maven -e jar
- search the maven-user archives for the error at
http://nagoya.apache.org/eyebrowse/SummarizeList?listName=users@maven.apache.org
- post the output of maven -e to JIRA at
http://jira.codehaus.org/BrowseProject.jspa?id=10030 (you must sign up
first)
- run 'maven --info' and post the output as the environment to the bug
above


Total time: 24 seconds
-%<--


This is my smb.conf:
-%<--
[maven-1.0]
        path = /opt/maven-1.0
        guest ok = Yes
-%<--



---------------------------------------------------------------------
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