Along the same lines, I've been putting together a project that uses
Turbine and the amount of dependencies Turbine requires is quite large.
I was thinking that instead of having to include any Turbine-related
dependency, plus all the dependencies of Turbine's dependencies, and on
down the line explicitly in the project.xml file, what if Maven could
automatically track dependencies?

My idea is a lot like James's option B, which is certainly very cool,
but I'd like to see it work for any jar you'd want to use, not just
Maven-enabled projects.

Perhaps not automatically; the HTTP repository could have something like
a dependencies.xml that would look like:

<dependencies>
  ...
  <jar name="turbine-xxx.jar">
    <dependency>stratum-xxx.jar</dependency>
    ...
    <dependency>velocitry-xxx.jar</dependency>
  </jar>
  ..
</dependencies>

So that whenever turbine-xxx.jar (or any other jar in the repository)
was listed as a root dependency of a project, Maven could find out it
also needed to include the stratum and velocity jars.

And perhaps automatically; e.g. whenever a ClassNotFoundException
occurs, Maven could skim the missing class from the compiler's error
output and scan the lib.repo and HTTP repository for the missing class.

I don't know about the validity of skimming idea; it just came to me.
But it'd be cool in that then no one would have to worry about
maintaining a dependencies.xml-type file.

Any files Maven subsequently finds in the dependency list could then be
mapped out in the documentation as a dependency tree.

I can't be as generous as James and offer to submit patches for these as
I haven't looked at the code base for Maven yet. Though it sounds
intriguing and I could take a stab at implementing it if the group likes
the idea and it ferments a little bit.

- Stephen




--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to