lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Robert Muir (JIRA)" <>
Subject [jira] Commented: (LUCENE-2657) Auto-generate POM templates from Ant builds
Date Mon, 20 Sep 2010 14:59:33 GMT


Robert Muir commented on LUCENE-2657:

How would the BuildListener interface know about dependencies? Does it have some magic way
to know this?

As an example, lets take modules/analysis/icu which has 3 dependencies:
* Lucene core itself (implicit from contrib-build.xml)
* external dependency: ICU
* internal dependency: modules/analysis/common

take a look at modules/analysis/icu's pom.xml which has:

However, our ant builds (that depend on common-build/contrib-build) declare their dependencies
in a semi-standard way:
* External dependencies:
<path id="additional.dependencies">
  <fileset dir="lib" includes="icu4j-*.jar"/>
* Internal dependencies:
<module-uptodate name="analysis/common" jarfile="../build/common/lucene-analyzers-common-${version}.jar"

The contrib-build.xml already has a 'dist-maven' target, that is called recursively. Perhaps
an alternative would be to improve contrib-build.xml for it to have a 'generate-maven' target,
also called recursively.
I've already prototyped/proposed in SOLR-2002 that we migrate the solr build to extend the
lucene build, so everywhere would use it.

Furthermore, couldnt we also make a recursive 'test-maven' target, that generates a maven
project to 'download' or whatever it needs, then tries to run all the tests?
If somehow the maven is broken, the tests simply won't pass.

I realize that running all of a modules tests again redundantly via 'maven' might not be the
most elegant solution, but it seems like it would test that everything is working.

> Auto-generate POM templates from Ant builds
> -------------------------------------------
>                 Key: LUCENE-2657
>                 URL:
>             Project: Lucene - Java
>          Issue Type: Improvement
>          Components: Build
>            Reporter: Steven Rowe
>            Priority: Minor
>             Fix For: 3.1, 4.0
> Lucene and Solr modules' POM templates are manually maintained, and so are not always
in sync with the dependencies used by the Ant build. 
> It should be possible to auto-generate POM templates using build tools extending Ant's
[BuildListener|] interface,
similarly to how the [ant2ide|] project generates eclipse
project files.

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message