Re: [m2] [mojo-dev] Re: Terracotta Maven plugin(s), anyone?

2007-02-21 Thread Jim Bethancourt

I've started / moved the discussion over to the terracotta-dev mailing list
(you can find it on www.terracotta.org)  It looks like the first thing we'll
need to do before we move forward is to first Mavenize the Terracotta build
and post them on a repository, and then write plugins that make it easy to
use in Maven. If we didn't, it would be a pain for users to use any plugins
that were developed since they'd need to upload the jars to their local
repository.

Feel free to jump in if you'd like on the tc-dev mailing list.  I'll get a
discussion going again about developing plugins for Terracotta once the
build is Mavenized.  I must say, the ideas that came out of this discussion
were quite impressive.  Thanks to all who contributed!


Thanks,
Jim

On 2/19/07, Eric-Ellis <[EMAIL PROTECTED]> wrote:



A Maven plugin could be written to configure and deploy a clustered system
test scenario. Imagine you want to write JUnit tests to verify that data
is
being shared correctly across your cluster. We currently have several ways
of doing this in our own code base; take a look at: AbstractTransparentApp
and AbstractAppServerTestCase. Just last night I completed the initial
stages of the Lucene index cluster support which when merged with trunk
will
behave similarly to what the plugin may want to do.

As for using Maven as our build system; we'd like to move forward but it's
more of a cost/benefit decision that management will eventually make.
Essentially, our current system, in which I have few good things to
mention,
does get the job done and there is a huge backlog of features, platforms,
and software that we'd like to implement/support in the near future; i.e.,
our hands are a bit full.

Not to sound hopeless though, we could be moving to Maven in the next few
months. It would actually help the cause if you (anyone interested in this
posting) were to join our "dev" mailing list and post a few thoughts about
the contributor learning curve and the type of technical advice, related
to
Maven implementation, that our build engineers would receive from the
community.


Thanks,
Eric
--Terracotta, Software Engineer



Jim Bethancourt-2 wrote:
>
> Hi all,
> It's great to see such fast response so far, even on a weekend.  Please
> continue to write to this thread if you're interested in such a plugin
or
> want to help develop it.
>
> Eric -- I definitely see where you're coming from and understand
> completely
> with regards to Terracotta being a platform vs. a module.  I was
thinking
> more along the lines of having a plugin that would bind to a build
> lifecycle
> phase (such as the install or deploy phase) and perform the bytecode
> enhancement at that point.  But as Eugene mentioned, that probably
> wouldn't
> work so well for doing anything other than testing the bytecode-enhanced
> code during the test phase of the Maven build cycle.  However, it would
> certainly be a start to try that out. :-)  Would that seem like a
> reasonable
> goal for now (write a surefire-terracotta / terracotta-surefire
plugin?),
> or
> do you think it would it be best to wait until Terracotta is Mavenized?
>
> As far as rewriting/Mavenizing Terracotta's build system goes, it would
> definitely be helpful for folks who would be interested in adding to
> Terracotta's codebase to get up to speed quickly.  Any ideas on what
kind
> of
> timeline you're looking at?  You could start out with a multi-pom
project
> with nonstanard directories to get things going and then refactor to a
> multi-pom project with standard directory structures once you feel
> confident.  I've done the first half of what I mentioned to demo Maven 2
> on
> an established codebase and it worked really well.  Let me know and I'd
be
> happy to try and help with the effort.
>
> Thanks,
> Jim
>
>
>
> On 2/18/07, Eric-Ellis <[EMAIL PROTECTED]> wrote:
>>
>>
>>
>> Raphaël Piéroni-3 wrote:
>> >
>> > Hi Jim,
>> >
>> > I think the Mojo community would like to host your plugin.
>> >
>> > Just ask for at : dev@mojo.codehaus.org
>> >
>> > Raphaël
>> >
>> > 2007/2/18, Scott Ryan <[EMAIL PROTECTED]>:
>> >>
>> >> I would love to work with you on developing the plugin.  I heard
>> >> about their presentation at the Denver Java User's Group and would
>> >> love to look at their technology deeper.  I have developed some
>> >> plugins already for weblogic and appfuse.
>> >>
>> >> Scott Ryan
>> >> [EMAIL PROTECTED]
>> >>
>> >>
>> >> On Feb 18, 2007, at 1:08 PM, Jim Bethancourt wrote:
>> >>
>> >> > Hi all,
>> >> > I was wondering if anyone would be interested in developing a
Maven
>> >> > 2 plugin
>> >> > / plugins that would allow for developers to apply Terracotta
>> bytecode
>> >> > enhancement to their Java code through Maven.  I've only worked
>> >> > through the
>> >> > Terracotta DSO tutorial, but it seems like a Maven plugin would
>> >> > make a lot
>> >> > of sense to automate the bytecode enhancement through the Maven
>> >> > build life
>> >> > cycle.  I can email the Terracotta fol

Re: [m2] [mojo-dev] Re: Terracotta Maven plugin(s), anyone?

2007-02-19 Thread Wayne Fay

First off, I know nothing about Terracotta.

You can already do "a" by simply creating a pom.xml for Terracotta,
packaging a bundle (please include compiled jar, source jar, and
javadocs jar), and uploading it to JIRA. This is all documented so you
should be able to follow the steps:
http://maven.apache.org/guides/mini/guide-ibiblio-upload.html

For "b", I'd expect a simply terracotta-maven-plugin could perhaps be
created which would build the boot jar when the plugin is specified in
a projects' pom.

Arguably this same plugin could perhaps also be responsible for "c".
But now you're talking about interacting with Surefire and that's
outside my area of expertise. You could probably take a look at
Cobertura M2 plugin code and figure things out.

Wayne

On 2/19/07, Steven Harris <[EMAIL PROTECTED]> wrote:

A few things. First I ask you all to bare with me because I'm not an
experienced
maven person but...

I think it would be really cool if at first maven could have the
ability to:

a) Automagically download and install Terracotta like it does with
everything else
b) Know how and when to build a boot jar
c) Know how to put the proper command line stuff in for running tests/
apps with terracotta etc

Just that would be really neat in my book.

On the other side of things. What we would like to do on the maven
front for building
our stuff would be to have a parallel (this wasn't my idea it was
jason's but I think
it is a good idea so I'm repeating it) build system that we can
mature until it has every
thing we need to take over for our custom system. This allows the
timeline to be less of an
issue.

I also think it would be really cool to cluster parts of maven at
some point. Just doing coordination
and sharing poms might be a fun start. The first thing we wrote in
Terracotta dso was a distributed testing
framework for Terracotta dso in Terracotta dso.

We, of course, are not in the business of writing testing frameworks
and build systems which is why we like
the idea of moving to maven. We do it because it is necessary. I
might be able to convince the powers that
be to turn that distributed testing framework over to the community
under a more permissive license at some
point if interest exists in moving it to a level that is more
productized.

Anyway, this is all very interesting.

Cheers,
Steve




Hi all,
It's great to see such fast response so far, even on a weekend.  Please
continue to write to this thread if you're interested in such a
plugin or
want to help develop it.

Eric -- I definitely see where you're coming from and understand
completely
with regards to Terracotta being a platform vs. a module.  I was
thinking
more along the lines of having a plugin that would bind to a build
lifecycle
phase (such as the install or deploy phase) and perform the bytecode
enhancement at that point.  But as Eugene mentioned, that probably
wouldn't
work so well for doing anything other than testing the bytecode-enhanced
code during the test phase of the Maven build cycle.  However, it would
certainly be a start to try that out. :-)  Would that seem like a
reasonable
goal for now (write a surefire-terracotta / terracotta-surefire
plugin?), or
do you think it would it be best to wait until Terracotta is Mavenized?

As far as rewriting/Mavenizing Terracotta's build system goes, it would
definitely be helpful for folks who would be interested in adding to
Terracotta's codebase to get up to speed quickly.  Any ideas on what
kind of
timeline you're looking at?  You could start out with a multi-pom
project
with nonstanard directories to get things going and then refactor to a
multi-pom project with standard directory structures once you feel
confident.  I've done the first half of what I mentioned to demo
Maven 2 on
an established codebase and it worked really well.  Let me know and
I'd be
happy to try and help with the effort.

Thanks,
Jim



On 2/18/07, Eric-Ellis <[EMAIL PROTECTED]> wrote:
 >
 >
 >
 > Raphal Pironi-3 wrote:
 > >
 > > Hi Jim,
 > >
 > > I think the Mojo community would like to host your plugin.
 > >
 > > Just ask for at : dev@mojo.codehaus.org
 > >
 > > Raphal
 > >
 > > 2007/2/18, Scott Ryan <[EMAIL PROTECTED]>:
 > >>
 > >> I would love to work with you on developing the plugin.  I heard
 > >> about their presentation at the Denver Java User's Group and would
 > >> love to look at their technology deeper.  I have developed some
 > >> plugins already for weblogic and appfuse.
 > >>
 > >> Scott Ryan
 > >> [EMAIL PROTECTED]
 > >>
 > >>
 > >> On Feb 18, 2007, at 1:08 PM, Jim Bethancourt wrote:
 > >>
 > >> > Hi all,
 > >> > I was wondering if anyone would be interested in developing a
Maven
 > >> > 2 plugin
 > >> > / plugins that would allow for developers to apply Terracotta
 > bytecode
 > >> > enhancement to their Java code through Maven.  I've only worked
 > >> > through the
 > >> > Terracotta DSO tutorial, but it seems like a Maven plugin would
 > >> > make a lot
 > >> > of sense to automate the by

Re: [m2] [mojo-dev] Re: Terracotta Maven plugin(s), anyone?

2007-02-19 Thread Steven Harris
A few things. First I ask you all to bare with me because I'm not an  
experienced

maven person but...

I think it would be really cool if at first maven could have the  
ability to:


a) Automagically download and install Terracotta like it does with  
everything else

b) Know how and when to build a boot jar
c) Know how to put the proper command line stuff in for running tests/ 
apps with terracotta etc


Just that would be really neat in my book.

On the other side of things. What we would like to do on the maven  
front for building
our stuff would be to have a parallel (this wasn't my idea it was  
jason's but I think
it is a good idea so I'm repeating it) build system that we can  
mature until it has every
thing we need to take over for our custom system. This allows the  
timeline to be less of an

issue.

I also think it would be really cool to cluster parts of maven at  
some point. Just doing coordination
and sharing poms might be a fun start. The first thing we wrote in  
Terracotta dso was a distributed testing

framework for Terracotta dso in Terracotta dso.

We, of course, are not in the business of writing testing frameworks  
and build systems which is why we like
the idea of moving to maven. We do it because it is necessary. I  
might be able to convince the powers that
be to turn that distributed testing framework over to the community  
under a more permissive license at some
point if interest exists in moving it to a level that is more  
productized.


Anyway, this is all very interesting.

Cheers,
Steve




Hi all,
It's great to see such fast response so far, even on a weekend.  Please
continue to write to this thread if you're interested in such a  
plugin or

want to help develop it.

Eric -- I definitely see where you're coming from and understand  
completely
with regards to Terracotta being a platform vs. a module.  I was  
thinking
more along the lines of having a plugin that would bind to a build  
lifecycle

phase (such as the install or deploy phase) and perform the bytecode
enhancement at that point.  But as Eugene mentioned, that probably  
wouldn't

work so well for doing anything other than testing the bytecode-enhanced
code during the test phase of the Maven build cycle.  However, it would
certainly be a start to try that out. :-)  Would that seem like a  
reasonable
goal for now (write a surefire-terracotta / terracotta-surefire  
plugin?), or

do you think it would it be best to wait until Terracotta is Mavenized?

As far as rewriting/Mavenizing Terracotta's build system goes, it would
definitely be helpful for folks who would be interested in adding to
Terracotta's codebase to get up to speed quickly.  Any ideas on what  
kind of
timeline you're looking at?  You could start out with a multi-pom  
project

with nonstanard directories to get things going and then refactor to a
multi-pom project with standard directory structures once you feel
confident.  I've done the first half of what I mentioned to demo  
Maven 2 on
an established codebase and it worked really well.  Let me know and  
I'd be

happy to try and help with the effort.

Thanks,
Jim



On 2/18/07, Eric-Ellis <[EMAIL PROTECTED]> wrote:
>
>
>
> Raphal Pironi-3 wrote:
> >
> > Hi Jim,
> >
> > I think the Mojo community would like to host your plugin.
> >
> > Just ask for at : dev@mojo.codehaus.org
> >
> > Raphal
> >
> > 2007/2/18, Scott Ryan <[EMAIL PROTECTED]>:
> >>
> >> I would love to work with you on developing the plugin.  I heard
> >> about their presentation at the Denver Java User's Group and would
> >> love to look at their technology deeper.  I have developed some
> >> plugins already for weblogic and appfuse.
> >>
> >> Scott Ryan
> >> [EMAIL PROTECTED]
> >>
> >>
> >> On Feb 18, 2007, at 1:08 PM, Jim Bethancourt wrote:
> >>
> >> > Hi all,
> >> > I was wondering if anyone would be interested in developing a  
Maven

> >> > 2 plugin
> >> > / plugins that would allow for developers to apply Terracotta
> bytecode
> >> > enhancement to their Java code through Maven.  I've only worked
> >> > through the
> >> > Terracotta DSO tutorial, but it seems like a Maven plugin would
> >> > make a lot
> >> > of sense to automate the bytecode enhancement through the Maven
> >> > build life
> >> > cycle.  I can email the Terracotta folks and ask them if they  
would

> >> > be able
> >> > to post the Terracotta files on Ibiblio since Maven 2.0.5 now
> supports
> >> > different licenses.
> >> >
> >> > I've dabbled in plugin authoring before as well, but I don't  
know

> >> > exactly
> >> > what all it would entail in this case.
> >> >
> >> > Please write back and let me know
> >> > 1) If you would find the plugin useful
> >> > and/or
> >> > 2) If you would be interested in helping develop such a plugin
> >> >
> >> > Thanks,
> >> > Jim
> >>
> >>
> >>  
-

> >> To unsubscribe, e-mail: [EMAIL PROTECTED]
> >> For additional commands, e-mail: [EMAI

Re: [m2] [mojo-dev] Re: Terracotta Maven plugin(s), anyone?

2007-02-18 Thread Jim Bethancourt

Hi all,
It's great to see such fast response so far, even on a weekend.  Please
continue to write to this thread if you're interested in such a plugin or
want to help develop it.

Eric -- I definitely see where you're coming from and understand completely
with regards to Terracotta being a platform vs. a module.  I was thinking
more along the lines of having a plugin that would bind to a build lifecycle
phase (such as the install or deploy phase) and perform the bytecode
enhancement at that point.  But as Eugene mentioned, that probably wouldn't
work so well for doing anything other than testing the bytecode-enhanced
code during the test phase of the Maven build cycle.  However, it would
certainly be a start to try that out. :-)  Would that seem like a reasonable
goal for now (write a surefire-terracotta / terracotta-surefire plugin?), or
do you think it would it be best to wait until Terracotta is Mavenized?

As far as rewriting/Mavenizing Terracotta's build system goes, it would
definitely be helpful for folks who would be interested in adding to
Terracotta's codebase to get up to speed quickly.  Any ideas on what kind of
timeline you're looking at?  You could start out with a multi-pom project
with nonstanard directories to get things going and then refactor to a
multi-pom project with standard directory structures once you feel
confident.  I've done the first half of what I mentioned to demo Maven 2 on
an established codebase and it worked really well.  Let me know and I'd be
happy to try and help with the effort.

Thanks,
Jim



On 2/18/07, Eric-Ellis <[EMAIL PROTECTED]> wrote:




Raphaël Piéroni-3 wrote:
>
> Hi Jim,
>
> I think the Mojo community would like to host your plugin.
>
> Just ask for at : dev@mojo.codehaus.org
>
> Raphaël
>
> 2007/2/18, Scott Ryan <[EMAIL PROTECTED]>:
>>
>> I would love to work with you on developing the plugin.  I heard
>> about their presentation at the Denver Java User's Group and would
>> love to look at their technology deeper.  I have developed some
>> plugins already for weblogic and appfuse.
>>
>> Scott Ryan
>> [EMAIL PROTECTED]
>>
>>
>> On Feb 18, 2007, at 1:08 PM, Jim Bethancourt wrote:
>>
>> > Hi all,
>> > I was wondering if anyone would be interested in developing a Maven
>> > 2 plugin
>> > / plugins that would allow for developers to apply Terracotta
bytecode
>> > enhancement to their Java code through Maven.  I've only worked
>> > through the
>> > Terracotta DSO tutorial, but it seems like a Maven plugin would
>> > make a lot
>> > of sense to automate the bytecode enhancement through the Maven
>> > build life
>> > cycle.  I can email the Terracotta folks and ask them if they would
>> > be able
>> > to post the Terracotta files on Ibiblio since Maven 2.0.5 now
supports
>> > different licenses.
>> >
>> > I've dabbled in plugin authoring before as well, but I don't know
>> > exactly
>> > what all it would entail in this case.
>> >
>> > Please write back and let me know
>> > 1) If you would find the plugin useful
>> > and/or
>> > 2) If you would be interested in helping develop such a plugin
>> >
>> > Thanks,
>> > Jim
>>
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>
>


Hi guys,

Eugene and I work for Terracotta as software engineers. As Eugene has
mentioned, our DSO implementation instruments bytecode at runtime so
integrating the product into a build cycle wont be possible. We're really
working to develop Terracotta as a platform as opposed to a module like
Apache Commons. We do think that Maven is the right way to go though and
are
interested in rewriting our own custom build system to use it.
--
View this message in context:
http://www.nabble.com/Terracotta-Maven-plugin%28s%29%2C-anyone--tf3249559s177.html#a9036598
Sent from the Maven - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]