jira.codehaus.org

  • Log In Access more options
    • Online Help
    • Keyboard Shortcuts
    • About JIRA
    • JIRA Credits
    • What?s New
  • Dashboards Access more options (Alt+d)
  • Projects Access more options (Alt+p)
  • Issues Access more options (Alt+i)
  • Maven 2.x Ant Plugin
  • MANT-12

Generated Ant script does not work unless mvn has previously been run to create the repo directory structure

  • Log In
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Cannot Reproduce
  • Affects Version/s: 2.0-beta-1
  • Fix Version/s: 2.0
  • Labels:
    None
  • Environment:
    Windows XP

Description

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.

Activity

Ascending order - Click to sort in descending order
  • All
  • Comments
  • Work Log
  • History
  • Activity
Hide
Permalink
Jon Tayler added a comment - 12/Jul/06 11:13 AM

Looks like the plugin will have to generate something like:
<dirname property="groupId.artifactId" file="${maven.repo.local}/org/votech/ds6/plastic/plastic-window-frame/0.5.2-SNAPSHOT/plastic-window-frame-0.5.2-SNAPSHOT.jar"/> <!-property name will have to be some mangled version of the artifact and group id->
<mkdir dir="${groupId.artifactId}"/>
<get verbose="on" src="http://www.astrogrid.org/maven/org/votech/ds6/plastic/plastic-window-frame/0.5.2-SNAPSHOT/plastic-window-frame-0.5.2-SNAPSHOT.jar" dest="${maven.repo.local}/org/votech/ds6/plastic/plastic-window-frame/0.5.2-SNAPSHOT/plastic-window-frame-0.5.2-SNAPSHOT.jar" usetimestamp="true" ignoreerrors="true"/>

for each depdency.

Show
Jon Tayler added a comment - 12/Jul/06 11:13 AM Looks like the plugin will have to generate something like: <dirname property="groupId.artifactId" file="${maven.repo.local}/org/votech/ds6/plastic/plastic-window-frame/0.5.2-SNAPSHOT/plastic-window-frame-0.5.2-SNAPSHOT.jar"/> <!-property name will have to be some mangled version of the artifact and group id-> <mkdir dir="${groupId.artifactId}"/> <get verbose="on" src="http://www.astrogrid.org/maven/org/votech/ds6/plastic/plastic-window-frame/0.5.2-SNAPSHOT/plastic-window-frame-0.5.2-SNAPSHOT.jar" dest="${maven.repo.local}/org/votech/ds6/plastic/plastic-window-frame/0.5.2-SNAPSHOT/plastic-window-frame-0.5.2-SNAPSHOT.jar" usetimestamp="true" ignoreerrors="true"/> for each depdency.
Hide
Permalink
Vincent Siveton added a comment - 24/Sep/06 9:14 AM

Cannot reproduce

Show
Vincent Siveton added a comment - 24/Sep/06 9:14 AM Cannot reproduce
Hide
Permalink
Keith Long added a comment - 28/Jun/07 5:18 AM

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.

Show
Keith Long added a comment - 28/Jun/07 5:18 AM 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.

People

  • Assignee:
    Vincent Siveton
    Reporter:
    Jon Tayler
Vote (0)
Watch (0)

Dates

  • Created:
    12/Jul/06 9:37 AM
    Updated:
    28/Jun/07 5:18 AM
    Resolved:
    24/Sep/06 9:14 AM
  • Atlassian JIRA (v5.0.4#731-sha1:3aa7374)
  • Report a problem
  • Powered by a free Atlassian JIRA open source license for Codehaus. Try JIRA - bug tracking software for your team.