The following comment has been added to this issue:

     Author: Chuck Daniels
    Created: Thu, 2 Dec 2004 6:51 AM
       Body:
What do you mean by "detecting resources"?  As far as I know, maven doesn't do 
anything with respect to resources when it is dealing with dependencies.

As far as the location of the local maven repository goes, maven doesn't have 
to be installed in order to determine where a local repository would be.  Just 
use the default, which is ${user.home}/.maven/repository.  I would be surprised 
if the majority of maven users use something other than this.  You could even 
add a property (say maven.ant.local.repo) to the maven ant plugin that would 
allow you to override this default value.

Even if a user of the generated ant script were to migrate to maven and use a 
different location for their local maven repository, at least while they use 
the ant script they would avoid re-downloading all dependencies after doing a 
'clean' (which deletes target/lib).

I don't see any harm in using ${user.home}/.maven/repository instead of 
target/lib, and users of the ant script avoid the annoyance of re-downloading 
dependencies after a 'clean'.
---------------------------------------------------------------------
View this comment:
  http://jira.codehaus.org/browse/MPANT-21?page=comments#action_27373

---------------------------------------------------------------------
View the issue:
  http://jira.codehaus.org/browse/MPANT-21

Here is an overview of the issue:
---------------------------------------------------------------------
        Key: MPANT-21
    Summary: get-deps target should download to local maven repo
       Type: Improvement

     Status: Open
   Priority: Minor

 Original Estimate: Unknown
 Time Spent: Unknown
  Remaining: Unknown

    Project: maven-ant-plugin
   Fix Fors:
             1.8.1

   Assignee: Arnaud HERITIER
   Reporter: Chuck Daniels

    Created: Wed, 1 Dec 2004 11:44 AM
    Updated: Thu, 2 Dec 2004 6:51 AM
Environment: All

Description:
The get-deps target downloads dependencies to target/lib.  This is problematic 
since it forces downloads to occur after a 'clean' is performed.  I suggest 
downloading to the local maven repository, regardless of whether or not maven 
has been installed.  This avoids unnecessary downloads after a 'clean' and also 
makes migration to maven easier.  Once a user migrates to maven, dependencies 
will already exist in the local repo.


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