Brett,
I went through the doc you send me below but could nor find an answer to my
question there.
I have redefined the lifecycle in my components.xml as follows:
<component-set>
<components>
<component>
<role>org.apache.maven.lifecycle.mapping.LifecycleMapping</role>
<role-hint>cstheme</role-hint>
<implementation>org.apache.maven.lifecycle.mapping.DefaultLifecycleMapping</implementation>
<configuration>
<phases>
<process-resources>org.apache.maven.plugins:maven-resources-plugin:resources</process-resources>
<package>com.syncapse.clearspace:maven-theme-plugin:package</package>
<install>org.apache.maven.plugins:maven-install-plugin:install</install>
</phases>
</configuration>
</component>
</components>
</component-set>
It is all working fine except for the fact that I need to resources plugin
to output all the resources into a folder called theme instead of the
default classes. This is to ease the creation of a zip file that most have
all content inside one single directory at the root of the zip (the theme
directory).
How can I do this from inside a plugin??
Thanks a lot.
Erick.
---------- Forwarded message ----------
From: Brett Porter <[email protected]>
Date: Fri, Jun 12, 2009 at 11:57 PM
Subject: Re: Custom lifecycle. Changing the default resource plugin
confiduration.
To: Maven Developers List <[email protected]>
This is still a more appropriate question for [email protected], as
this is the list for development on maven and its plugins itself. I'd be
happy to follow up on the thread there.
To help you along, you don't need to overwrite the default lifecycle - just
bind different goals to it. You can't configure goals when you do that - I'm
a bit unsure whether you are putting your plugin in there, or the resources
plugin, or both. What you are likely looking to do is extend the resources
plugin with the new configuration and functionality and bind that by
default.
An example of declaring a new packaging type is here:
http://svn.apache.org/viewvc/maven/site/trunk/src/site/apt/guides/introduction/introduction-to-the-lifecycle.apt?revision=501590
On 13/06/2009, at 6:37 AM, Erick Dovale wrote:
Folks,
> I am writing a plugin that builds an artifact that needs no compilation or
> tests whatsever as it is only resources.
> I am overwriting the default lifecycle to only run the resources phases,
> the
> packaging phases and the install phases.
> I need to change the resource plugin configuration to write the file to a
> folder other than classes. How can I achieve this from a plugin?
>
> Thanks.
>
> Erick.
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]