maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Herve Boutemy (JIRA)" <>
Subject [jira] Closed: (MANTTASKS-11) antlib + http based repository + version range errors badly
Date Sun, 17 Jun 2007 19:33:57 GMT


Herve Boutemy closed MANTTASKS-11.

       Resolution: Cannot Reproduce
    Fix Version/s: 2.0.7

I just tried to add {{<dependency groupId="org.apache.maven" artifactId="maven-artifact"
version="[2.0,2.1)"/>}} to test-deps target in, and found everything ok
(Maven Ant Tasks version is 2.0.7-SNAPSHOT)

Please reopen the issue if you still have a problem: we'll work together to reproduce it.

> antlib + http based repository + version range errors badly
> -----------------------------------------------------------
>                 Key: MANTTASKS-11
>                 URL:
>             Project: Maven 2.x Ant Tasks
>          Issue Type: Bug
>         Environment: maven 2.0 (release), antlib, ant, apache 2 webserver on windows
>            Reporter: spencer portee
>            Priority: Critical
>             Fix For: 2.0.7
> In my pom file, I have a dependency, it has no child dependencies beyond that looks like
>  <dependency>
>    <groupId>org.sporty</groupId>
>    <artifactId>xwork</artifactId>
>    <version>[1.0.5,1.1)</version>
>    <scope>runtime</scope>
>  </dependency>
> and use the following in my build script:
> <artifact:dependencies verbose="true" useScope="runtime" pathId="project.classpath.runtime">
>                 <artifact:pom file="pom.xml" />
>                 <artifact:remoteRepository url="${project.repository} " layout="default"
> </artifact:dependencies>
> The variable I have above is being set right per tests 1-3.  The last test.. it gets
> I deployed xwork, as an empty jar by accident, so don't be surprised there's nothing
in the jar.  But the dependency downloading from the webserver breaks horribly.  I tested
4 scenarios:
> 1. If I put in my pom as my remote repository as file://c:/temp/repository and deploy
to there, the above pom works flawlessly.  
> 2 & 3. If I replace the range w/ a simple: <version>1.0.5</version> and
set my repository to, it downloads fine as well.  It works
with the filesystem remote repository of my c:/temp... directory.
> 4. If I use the http repository AND use a range version as I originally wanted, I get
an ugly error:
> C:\development\eclipse 3.0\workspace\hibernate-3\common.xml:4: Unable to resolve
>  artifact: Unable to get dependency information: Unable to read local copy of me
> tadata: Cannot read metadata from 'C:\Documents and Settings\sportee\.m2\reposit
> ory\org\sporty\xwork\maven-metadata-remote.xml': end tag name </pre> must match
> start tag name <hr> from line 11 (position: START_TAG seen ...</a>
>      11-Oct-2005 17:52    -   \n<hr></pre>... @11:11)
>   org.sporty:xwork:null:jar
> from the specified remote repositories:
>   remote ( )
> Path to dependency:
>         1) org.sporty:xdoclet-xwork:jar:1.0-SNAPSHOT
> --
> The contents of the ...-remote.xml file, I see a directory listing, and not the contents
of the repository file on the server. My naive guess is the repository file to look for is
getting lost, or not passed, if it's in a hashmap, not being referenced properly...
> Thanks,
> -s

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
For more information on JIRA, see:


View raw message