What about creating a stub pom that has practically nothing in it and
doesn't correspond to any JAR? It's not really broken dependencies, just a
POM that exists solely for the purpose of triggering transient dependencies
to other artifacts. I don't think this is an issue with the transitive
functionality, but rather an assumption made by the JAR resolution.
Obviously I could be totally off base on that (knowing almost nothing about
the code), but from what I've seen, that seems to be more the case. I would
be willing to write up an RSpec for this, except for the fact that I a)
don't know RSpec, and b) don't know maven. :-) Anyway, aside from those
two limitations I'd love to help out!
Daniel
On Fri, Apr 11, 2008 at 9:11 PM, Assaf Arkin <arkin@intalio.com> wrote:
> On Fri, Apr 11, 2008 at 6:41 PM, Daniel Spiewak <djspiewak@gmail.com>
> wrote:
>
> > repositories.remote << 'http://databinder.net/repo/'
> > repositories.remote << 'http://download.java.net/maven/2/'
> > repositories.remote << 'http://repo1.maven.org/maven2/'
> >
> > define 'TestProject' do
> > project.version = '0.1'
> >
> > compile.with transitive('net.databinder:databinder-app-ao:1.2-alpha1')
> >
> > package :jar
> > end
> >
> > If you run that, Buildr eventually complains and gives up when it tries
> to
> > download *databinder-parent-1.2-alpha1.jar *(I think that's the file
> > anyway). It's 100% repeatable for me.
>
>
> The problem is we can't put this in the test suite. We need the tests to
> run quickly and not depend on a public repository, that way we can run
> them
> often. I typically run the full test suite several time before making a
> commit. Here's what my history file looks like:
>
> ~/work/buildr $ history|awk '{print $2}'|sort|uniq -c|sort -rn|head
> 232 spec
> 50 rake
> 32 sudo
> 29 git
> 19 svn
> 19 cd
> 18 gem
> 17 ls
> 9 irb
> 8 vim
>
> To get a failing test we need to mock the repository with broken
> dependencies. Unfortunately, bugs like this take longer to test than to
> fix, but it will be done.
>
> Assaf
>
>
> >
> >
> > Daniel
> >
> >
>
|