maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Keith Long (JIRA)" <j...@codehaus.org>
Subject [jira] Commented: (MANT-12) Generated Ant script does not work unless mvn has previously been run to create the repo directory structure
Date Thu, 28 Jun 2007 10:20:13 GMT

    [ http://jira.codehaus.org/browse/MANT-12?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_100767
] 

Keith Long commented on MANT-12:
--------------------------------

I agree with Jon, this is definetly a problem, I have reproduced this on my system and it
acutally prevents me from using the Maven Ant TASK

The ANT GET Task on the version I have tested 1.6.0 and 1.7.0 do not automatically create
directories if missing, hence the download fails on each occurance.

If you call ANT with 
ANT -Duser.home=C:\TESTHOME
i.e. to set a new blank repository

The following structure will be created 
.C:\TESTHOME\m2\repository with no files in it

If I create the empty directories for each dependency, the files get downloaded correctly.




> Generated Ant script does not work unless mvn has previously been run to create the repo
directory structure
> ------------------------------------------------------------------------------------------------------------
>
>                 Key: MANT-12
>                 URL: http://jira.codehaus.org/browse/MANT-12
>             Project: Maven 2.x Ant Plugin
>          Issue Type: Bug
>    Affects Versions: 2.0-beta-1
>         Environment: Windows XP
>            Reporter: Jon Tayler
>            Assignee: Vincent Siveton
>             Fix For: 2.0
>
>
> This is for version 2.0-beta-1
> The generated ant script creates a get-deps target that is a list of get tasks downloading
dependencies from remote repos into the local repos. It attempts to create the maven 2 directory
structure.  Unfortunately if this structure does not exist, then the script will fail silently
(due to the ignoreErrors flag) since the ant get task doesn't automatically create the missing
folders.

-- 
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
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message