Karl Trygve Kalleberg wrote:

> On Sat, Jan 10, 2004 at 04:29:04PM -0800, jkw wrote:
>> 
>> for a maven-using project the project.xml is the only logical place
>> for dependency info, which means the portage info would have to
>> extracted from that.  that could be done as part of the process of
>> making the ebuild. it's possible the whole ebuild could be
>> automatically generated based on a template and a transform on the
>> project.xml; after all the maven project and the gentoo ebuild are
>> functionally similar.
>> 
>> to support maven as a build tool, after download the dependent jars
>> could be symlinked into a temporary maven-style repository, which
>> maven would be instructed to use during build.
> 
> I was hoping for something like this.
> 
> It appears that the repository on ibiblio that maven uses does not
> provide source code for the various 'modules', so we'll still have to
> package the various dependencies in the old-fashioned way.

Yes, not having the source is a major hassle. Especially if a snapshot has
to be used, somteimes it would be great to have a look in the corresponding
code. Maybe the malfunction of your own app is more related to a bug in
such an untested release.

But if a package maintainer creates such an ebuild, it would be nice to have
a tool that recognizes the infos in project.xml, even if he has to create
the corresponding source package later on on his own.

> Without having looked at Maven, I also suspect we could patch it to have
> a 'Gentoo-mode' where it just stopped with an error whenever it ended up
> actually doing any downloading while being used inside Portage as a
> build tool, but this must of course never interfere with regular
> end-user usage of Maven.

Basically it should be possible to eliminate the problem with an own plugin
for Gentoo that replaces the default reaction. Maven has recently factured
the complete auto-download stuff out into an own subproject called
Maven-wagon. Although it is currently beyond my knowledge I assume, that
adding here an alternative download mechanism that fits into the Gentoo
(and Debian) way, is possible.

Regards,
J�rg


--
[EMAIL PROTECTED] mailing list

Reply via email to