Re: plexus components configuration

2008-01-08 Thread Zsolt KOZAK
Hi Olivier,

Thanks for the help. ;) I do  know that lifecycle.xml is for this
problem but I have not found any proper example for components.xml
versus lifecycle.xml yet. :( Does anybody have a detailed example
lifecycle.xml?

cheers,
Zsolt


On 2008-01-08 01:47, Olivier Dehon wrote:
 On Tue, 2008-01-08 at 00:46 +0100, Zsolt KOZAK wrote:

   
 So I have the following snipplet from a components.xml and I'd like to
 pass some config parameters to the maven-war-plugin for the package
 phase. Is it possible in a plexus components.xml?


 
 I have never done that myself so take it for what it's worth, but the
 only way I see to do that would be to define your own lifecycle in
 META-INF/maven/lifecycle.xml in the plugin JAR.

 You can define configuration elements for the plugins in that file.

   

-- 
Zsolt KOZAK  [EMAIL PROTECTED]
personal web:http://zso.lt
Road To Avonlea: http://avonlea.hu


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



Re: plexus components configuration

2008-01-07 Thread Olivier Dehon
On Mon, 2008-01-07 at 16:21 +0100, Zsolt KOZAK wrote:
 Hi,
 
 I have the following problem.
 
 We use a custom packaging called warstub. We uses modules and if a
 module depends on other modules, its war will contain ALL the
 dependecies (jars, html, images, etc). A warstub would contain only the
 current module web-stuff (jar, html, etc.), so it's a kind of war but
 contains less stuff. We created our own plugin which creates warstub.
 

If I understand correctly what you are trying to achieve, you might want
to use the overlay capability of the war plugin, by adding a dependency
of type war.

http://maven.apache.org/plugins/maven-war-plugin/overlays.html

HTH, -Olivier


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



Re: plexus components configuration

2008-01-07 Thread Zsolt KOZAK
Hi Olivier,


On 2008-01-08 00:36, Olivier Dehon wrote:
 On Mon, 2008-01-07 at 16:21 +0100, Zsolt KOZAK wrote:
   
 Hi,

 I have the following problem.

 We use a custom packaging called warstub. We uses modules and if a
 module depends on other modules, its war will contain ALL the
 dependecies (jars, html, images, etc). A warstub would contain only the
 current module web-stuff (jar, html, etc.), so it's a kind of war but
 contains less stuff. We created our own plugin which creates warstub.

 

 If I understand correctly what you are trying to achieve, you might want
 to use the overlay capability of the war plugin, by adding a dependency
 of type war.

 http://maven.apache.org/plugins/maven-war-plugin/overlays.html
   

Not exactly... This problem was solved with an own plugin. The problem
is to fine tune this plugin by passing configure parameters to the
maven-war-plugin in a plexus components.xml. (I just tried to explain
why I needed to configure the war-plugin).

So I have the following snipplet from a components.xml and I'd like to
pass some config parameters to the maven-war-plugin for the package
phase. Is it possible in a plexus components.xml?


.

component
  roleorg.apache.maven.lifecycle.mapping.LifecycleMapping/role
  role-hintwarstub/role-hint
 
  
implementationorg.apache.maven.lifecycle.mapping.DefaultLifecycleMapping/implementation
  configuration
lifecycles
  lifecycle
iddefault/id
phases
 
process-resourcesorg.apache.maven.plugins:maven-resources-plugin:resources/process-resources
 
compileorg.apache.maven.plugins:maven-compiler-plugin:compile/compile
 
process-test-resourcesorg.apache.maven.plugins:maven-resources-plugin:testResources/process-test-resources
 
test-compileorg.apache.maven.plugins:maven-compiler-plugin:testCompile/test-compile
 testorg.apache.maven.plugins:maven-surefire-plugin:test/test
 packageorg.apache.maven.plugins:maven-war-plugin:war/package
 
installorg.apache.maven.plugins:maven-install-plugin:install/install
 
deployorg.apache.maven.plugins:maven-deploy-plugin:deploy/deploy
/phases
  /lifecycle
/lifecycles
  /configuration
/component
.


thank you,
Zsolt



-- 
Zsolt KOZAK  [EMAIL PROTECTED]
personal web:http://zso.lt
Road To Avonlea: http://avonlea.hu


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



Re: plexus components configuration

2008-01-07 Thread Olivier Dehon

On Tue, 2008-01-08 at 00:46 +0100, Zsolt KOZAK wrote:

 So I have the following snipplet from a components.xml and I'd like to
 pass some config parameters to the maven-war-plugin for the package
 phase. Is it possible in a plexus components.xml?
 
 
I have never done that myself so take it for what it's worth, but the
only way I see to do that would be to define your own lifecycle in
META-INF/maven/lifecycle.xml in the plugin JAR.

You can define configuration elements for the plugins in that file.

HTH, -Olivier


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