Clifton | 27 Jun 21:09

[groovy-dev] Gant runs from Maven!


Ok, I was stuck on stoopid the other day! Trying to throw together a GAnt
plugin using GMaven which should have been sooo simple if I had studied my
art! My problem was a dependency conflict! Not thinking to actually look at
the Gant pom I declared as a dependency I naively included Maven-ant-tasks
as well as Ivy. After taking some time to pay attention I sidestepped my
conflicts by removing the redundant dependencies and using the Exclusions
tag in the Gant dependency to filter the maven-ant-tasks dependency.
(Apparently I believe the GMaven mojo support or something else in the mix
already brings in Maven-ant-tasks.) The net result, a lot less garbage in my
pom and a simple one line integration of Gant. We're talking straight
delegation here. I have it working as of five minutes ago. Now I'm looking
for a place to put it. Should it be a Groovy module? A subproject of GMaven?
Does it go in the Maven project? Mojo incubator? What's the next steps?
--

-- 
View this message in context: http://www.nabble.com/Gant-runs-from-Maven%21-tp18162030p18162030.html
Sent from the groovy - dev mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email

Clifton | 27 Jun 22:39

Re: [groovy-dev] Gant runs from Maven!


Spoke a little soon. I do have it running but currently there's a conflict
with maven-ant-tasks. This may only be an edge case in my particularly
strange scenario so I'll explain. Using my new Gant Maven plugin to launch
gant from the command line Eg.:

mvn gant:run

on a Gant build that just so happens to call Maven right? Ok, the Maven
build wrappers an Ant build. (You with me so far?) From within the Ant build
we invoke the Maven Ant tasks jar to pull in Maven dependencies. Right here
is where the error jumps out, claiming that the antlib.xml for the
Maven-ant-tasks.jar could not be found which is nonsense because the typedef
declares a path to the jar on the filesystem! I understand this is
particularly awkward and I assure you there is a valid reason for such an
awkward twist of Maven calling Gant calling Maven calling Ant pulling Maven
dependencies... more on this later.

-Cliff
http://codeforfun.wordpress.com

Clifton wrote:
> 
> Ok, I was stuck on stoopid the other day! Trying to throw together a GAnt
> plugin using GMaven which should have been sooo simple if I had studied my
> art! My problem was a dependency conflict! Not thinking to actually look
> at the Gant pom I declared as a dependency I naively included
> Maven-ant-tasks as well as Ivy. After taking some time to pay attention I
> sidestepped my conflicts by removing the redundant dependencies and using
> the Exclusions tag in the Gant dependency to filter the maven-ant-tasks
(Continue reading)

Russel Winder | 28 Jun 07:49

Re: [groovy-dev] Gant runs from Maven!

On Fri, 2008-06-27 at 12:14 -0700, Clifton wrote:

> delegation here. I have it working as of five minutes ago. Now I'm looking
> for a place to put it. Should it be a Groovy module? A subproject of GMaven?
> Does it go in the Maven project? Mojo incubator? What's the next steps?

The obvious options are:

1.  Subproject of GMaven so the source would sit somewhere in the GMaven
repository.  This would require access to the repository of GMaven which
is actually the Groovy repository so this is a Guillaume as well as a
Jason issue.

2.  Subproject of Gant so the source would sit in the Gant repository.
My only hesitation is that it is really more of a GMaven addition than a
Gant addition, so 1 seems more appropriate than 2.

3.  Create a Bazaar branch and have it hosted on Launchpad under either
or both of the Gant project or the Groovy project.  This would allow the
work to get out there without having to decide between 1 and 2. 

I don't think this is a Groovy module or contribute package per se since
it is tied strongly to GMaven and Gant.  Nor is it really a separate
project on its own, it really is strongly tied to GMaven and Gant.

Hopefully these thoughts help.

--

-- 
Russel.
====================================================
(Continue reading)

Peter Ledbrook | 4 Jul 11:41

Re: [groovy-dev] Gant runs from Maven!


Russel Winder-4 wrote:
> 
> 1.  Subproject of GMaven so the source would sit somewhere in the GMaven
> repository.  This would require access to the repository of GMaven which
> is actually the Groovy repository so this is a Guillaume as well as a
> Jason issue.
> 

This gets my vote. I would even be tempted to make it part of GMaven itself,
rather than a sub-project but that's really up to others.

Cheers,

Peter
--

-- 
View this message in context: http://www.nabble.com/Gant-runs-from-Maven%21-tp18162030p18276250.html
Sent from the groovy - dev mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email

Clifton | 8 Jul 20:17

Re: [groovy-dev] Gant runs from Maven!


I really need to follow up on this. I've been busy. I think Jason Dillon is
the guy I need to talk to.

Peter Ledbrook wrote:
> 
> 
> Russel Winder-4 wrote:
>> 
>> 1.  Subproject of GMaven so the source would sit somewhere in the GMaven
>> repository.  This would require access to the repository of GMaven which
>> is actually the Groovy repository so this is a Guillaume as well as a
>> Jason issue.
>> 
> 
> This gets my vote. I would even be tempted to make it part of GMaven
> itself, rather than a sub-project but that's really up to others.
> 
> Cheers,
> 
> Peter
> 

--

-- 
View this message in context: http://www.nabble.com/Gant-runs-from-Maven%21-tp18162030p18345660.html
Sent from the groovy - dev mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

(Continue reading)


Gmane