You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by Mauro Talevi <ma...@aquilonia.org> on 2003/04/24 21:31:34 UTC

sar plugin

Hello,

I would like write a plugin for maven to create Avalon Phoenix SARs
(SARs are WAR-like archives for deployment in Avalon Phoenix instead of
Tomcat.)

There is no functionality at present and I've tested the goals in the my
project maven.xml, but it would be useful to have them as a plugin.
It would be essentially similar to the war-plugin.

Questions:
1.  Is this plugin of interest?  Ie, if I submit it as a patch, will it
get included in a next release.
2.  I've tried out added the src to src/plugin-build/sar and it all 
builds smoothly (from build-bootstrap.xml) and the reactor seems to pick 
up all it needs.

Anything else that needs doing to add a new plugin?

Cheers, Mauro





---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


Re: sar plugin

Posted by Peter Donald <pe...@realityforge.org>.
Unfortunately - yep. They are completely different beasts.

On Fri, 25 Apr 2003 05:38, James Ward wrote:
> Are these sar's different from the sar's JBoss uses to deploy Service's?
>
> -James
>
> On Thu, 2003-04-24 at 13:31, Mauro Talevi wrote:
> > Hello,
> >
> > I would like write a plugin for maven to create Avalon Phoenix SARs
> > (SARs are WAR-like archives for deployment in Avalon Phoenix instead of
> > Tomcat.)
> >
> > There is no functionality at present and I've tested the goals in the my
> > project maven.xml, but it would be useful to have them as a plugin.
> > It would be essentially similar to the war-plugin.
> >
> > Questions:
> > 1.  Is this plugin of interest?  Ie, if I submit it as a patch, will it
> > get included in a next release.
> > 2.  I've tried out added the src to src/plugin-build/sar and it all
> > builds smoothly (from build-bootstrap.xml) and the reactor seems to pick
> > up all it needs.
> >
> > Anything else that needs doing to add a new plugin?
> >
> > Cheers, Mauro
> >
> >
> >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
> > For additional commands, e-mail: dev-help@maven.apache.org
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
> For additional commands, e-mail: dev-help@maven.apache.org

-- 
Cheers,

Peter Donald
*----------------------------------------------------*
|    "the mother of idiots is always pregnant."      |
*----------------------------------------------------*


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


Re: sar plugin

Posted by James Ward <ja...@ectropic.com>.
Are these sar's different from the sar's JBoss uses to deploy Service's?

-James


On Thu, 2003-04-24 at 13:31, Mauro Talevi wrote:
> Hello,
> 
> I would like write a plugin for maven to create Avalon Phoenix SARs
> (SARs are WAR-like archives for deployment in Avalon Phoenix instead of
> Tomcat.)
> 
> There is no functionality at present and I've tested the goals in the my
> project maven.xml, but it would be useful to have them as a plugin.
> It would be essentially similar to the war-plugin.
> 
> Questions:
> 1.  Is this plugin of interest?  Ie, if I submit it as a patch, will it
> get included in a next release.
> 2.  I've tried out added the src to src/plugin-build/sar and it all 
> builds smoothly (from build-bootstrap.xml) and the reactor seems to pick 
> up all it needs.
> 
> Anything else that needs doing to add a new plugin?
> 
> Cheers, Mauro
> 
> 
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
> For additional commands, e-mail: dev-help@maven.apache.org
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


Re: sar plugin

Posted by Peter Donald <pe...@realityforge.org>.
On Sat, 26 Apr 2003 03:31, Mauro Talevi wrote:
> Should the plugin not be of sufficient interest to the maven community,
> I'll put it on maven-plugins.sf.net.

Another option would be to put it with phoenix itself though I am not sure how 
easy it is to maintain a plugin outside Maven at this stage.

-- 
Cheers,

Peter Donald
--------------------------------------------
 Beer is proof that God loves us and wants 
 us to be happy. -- Benjamin Franklin
-------------------------------------------- 


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


Re: sar plugin

Posted by Mauro Talevi <ma...@aquilonia.org>.
Hi,

I attach the src of a first cut of the sar plugin -
with associated docs.

At the moment it has two main goals:
	sar:metagenerate
	sar:sar

I've tested it on a real app and it produces the correct sar.
Any other test suggestion is welcome.

I also attach a compiled plugin which can be dropped in to the plugins 
directory.

Should the plugin not be of sufficient interest to the maven community,
I'll put it on maven-plugins.sf.net.

Cheers, m.


Re: sar plugin

Posted by di...@multitask.com.au.
news <ne...@main.gmane.org> wrote on 25/04/2003 07:54:22 PM:

> dIon,
> 
> dion@multitask.com.au wrote:
> > Documentation, tests?
> 
> documentation: implicit in src/plugin-build/<name>/xdocs
Yep.

> tests:  I haven't been able to find a clear pattern of testing
> plugins in the codebase.
> src/test/mock-plugins has some mock plugins which are not related
> to any specific plugin.
> What is the recommended way or testing a new plugin, apart from
> checking that the goal produced the desired artifacts?
If you can, add the production of the artifact to the touchstone build and 
compare it against a known good artifact.

> Can you confirm that is no configuration file which needs to
> be updated for the presence of a new plugin, as the reactor will
> be it up automatically.
Yep, once the jar is placed in $MAVEN_HOME/plugins, you'll be fine next 
time maven runs.

--
dIon Gillard, Multitask Consulting
Blog:      http://www.freeroller.net/page/dion/Weblog
Work:      http://www.multitask.com.au




---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


Re: sar plugin

Posted by Mauro Talevi <ma...@aquilonia.org>.
dIon,

dion@multitask.com.au wrote:
> Documentation, tests?

documentation: implicit in src/plugin-build/<name>/xdocs

tests:  I haven't been able to find a clear pattern of testing
plugins in the codebase.
src/test/mock-plugins has some mock plugins which are not related
to any specific plugin.
What is the recommended way or testing a new plugin, apart from
checking that the goal produced the desired artifacts?

Can you confirm that is no configuration file which needs to
be updated for the presence of a new plugin, as the reactor will
be it up automatically.

Thanks, Mauro





---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


Re: sar plugin

Posted by di...@multitask.com.au.
Documentation, tests?
--
dIon Gillard, Multitask Consulting
Blog:      http://www.freeroller.net/page/dion/Weblog
Work:      http://www.multitask.com.au


news <ne...@main.gmane.org> wrote on 25/04/2003 05:31:34 AM:

> Hello,
> 
> I would like write a plugin for maven to create Avalon Phoenix SARs
> (SARs are WAR-like archives for deployment in Avalon Phoenix instead of
> Tomcat.)
> 
> There is no functionality at present and I've tested the goals in the my
> project maven.xml, but it would be useful to have them as a plugin.
> It would be essentially similar to the war-plugin.
> 
> Questions:
> 1.  Is this plugin of interest?  Ie, if I submit it as a patch, will it
> get included in a next release.
> 2.  I've tried out added the src to src/plugin-build/sar and it all 
> builds smoothly (from build-bootstrap.xml) and the reactor seems to pick 

> up all it needs.
> 
> Anything else that needs doing to add a new plugin?
> 
> Cheers, Mauro
> 
> 
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
> For additional commands, e-mail: dev-help@maven.apache.org
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org