lucene-dev mailing list archives

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


Steven Rowe commented on LUCENE-2657:

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

BuildListener has hooks for build task onset and completion events (inter alia).  ant2ide
listens for Javac task completion, and captures from it the source and target directories,
as well as the build classpath.  You have to invoke compilation from an Ant build in order
for this to work.

Seems kinda magical to me :)

The missing part here is figuring out the maven groupId/artifactId/version, and I *think*
this can be dealt with by looking at the manifest in the jar.  Maven-produced jars also contain
their POMs, and pulling from there would be even simpler.

> 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