[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Maven in Debian [was: Re: Reg. Apache Excalibur]

Kumar Appaiah wrote:
On Thu, Aug 23, 2007 at 02:33:08PM +0100, Paul Cager wrote:
And can we just build them using
a custom build.xml written for ant?
That's the approach I've taken for some of Maven's build-depends - a
custom debian/build.xml. You could have a look at doxia or wagon for

But consider the maven-resources plugin. The source jar has the


I created a build.xml, and can copy your idea to make a deb. But is it
worth creating a single deb just for these, or do you think a
maven-plugins package with all the plugins assorted and a single
build.xml would be better? I ask this, since we have to repackage the
things anyway, for the source is provided as jars. But this would mean
that if some one plugin's version is bumped up, it would require a
rebuild of the whole thing. So, what is the right way?

For anything requiring Maven to build you can use the maven-ant-helper package that is in the pkg-java Subversion repository. It includes an Ant build.xml that mimics the normal Maven build process.

The problem with that build.xml is that it can only build simple stuff, not more complicated stuff like Maven plugins. Each Maven plugin is processed by the "Maven Plugin Plugin" and other tools to generate the proper XML files that will be included into the JAR.

PS: download the proper jar file from repo1.maven.org/maven2 and compare the contents of the files.

The strategy that I'm fairly sure that has to be followed is to use Michael's package to rebuild the plugins and once a full set of plugins is built Maven can be rebuilt with itself.


Reply to: