The following comment has been added to this issue:

     Author: Brett Porter
    Created: Wed, 30 Jul 2003 5:27 PM
       Body:
Thanks for your comment Brian - there's some good points.

> 1)it seems more natural to me to look for a user-specific global 
> properties file in $HOME. 

We should at least rename it then - its a very generic name to have to put in $HOME. I 
personally don't like to clutter $HOME up much and would like the option to contain 
everthing under .maven

> 2)In a multi-user environment one might want all users to share a 
> local repository and so instruct each user to use the same setting 
> for $MAVEN_HOME_LOCAL. If MAVEN-605 is implemented then these users 
> won't be able to have personal build.properties files.

I'm not suggesting moving it, but adding a new location as the preferred one. If you 
are sharing a repository, you can set maven.repo.local instead. I've found in a 
multi-user environment that its best not to. You certainly don't want to share the 
extracted plugins directory though, because setting up the groups and umasks on Unix 
is a pain, and even then you can have contention with other users. This is perhaps a 
limitation of the plugin extraction in Maven.

> 3) I like to view $MAVEN_HOME_LOCAL as a location that I can delete 
> freely with no risk of data loss. If build.properties were kept 
> here, I could no longer freely delete this location.

This is the most compelling point, but I think if you have the option to use either 
then its your choice which way to go. I don't think rm -rf ~/.maven/plugins 
~/.maven/repository is that much harder than rm -rf ~/.maven

Thanks!
---------------------------------------------------------------------
View the issue:

  http://jira.codehaus.org/secure/ViewIssue.jspa?key=MAVEN-605


Here is an overview of the issue:
---------------------------------------------------------------------
        Key: MAVEN-605
    Summary: maven should load $MAVEN_HOME_LOCAL/build.properties by default
       Type: Improvement

     Status: Unassigned
   Priority: Major

 Time Spent: Unknown
  Remaining: Unknown

    Project: maven
 Components: 
             core

   Assignee: 
   Reporter: Brett Porter

    Created: Thu, 24 Jul 2003 1:45 AM
    Updated: Thu, 24 Jul 2003 1:45 AM

Description:
for consistency with other defaults, maven should load build.properties from 
$MAVEN_HOME_LOCAL (which by default is $HOME/.maven), instead of 
$HOME/build.properties.

The main issue I see with this is that maven.home.local can be specified in the 
build.properties, which if you move it makes it hard to find :) Resolutions to this 
are requiring they use the env. var, requiring they add -Dmaven.home.local=... to 
MAVEN_OPTS, or allowing a load from $HOME/build.properties first, and then from 
${maven.home.local}/build.properties.

I suggest the last as it allows the other options as well, but we should rename it to 
${user.home}/maven.properties instead of build.properties


---------------------------------------------------------------------
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to