You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Arbi Sookazian <as...@gmail.com> on 2010/04/21 22:10:32 UTC
adding javarebel-maven-plugin to ejb module pom.xml
I have a multi-module Maven project. In the ejb module POM for the Seam ejb
components, I added the following xml snippet for the javarebel-maven-plugin
in the build section. The purpose of this plugin is to create a rebel.xml
file in the target\classes directory and finally in the root of the JAR
artifact which is packaged in the EAR.
<build>
<plugins>
<plugin>
<groupId>org.zeroturnaround</groupId>
<artifactId>javarebel-maven-plugin</artifactId>
<version>1.0.5</version>
<executions>
<execution>
<id>generate-rebel-xml</id>
<phase>process-resources</phase>
<goals>
<goal>generate</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
This build works but I want to configure my POMs such that this build plugin
is optionally used/invoked (some coworkers may not want to use JRebel, for
example). How do I implement this? Using a new profile?
We currently have a dev and continuum profile in the parent POM but I'm not
sure if I should create another profile in the parent POM or the ejb module
POM and exactly how to do it. Any advice appreciated. thx.
--
View this message in context: http://old.nabble.com/adding-javarebel-maven-plugin-to-ejb-module-pom.xml-tp28300725p28300725.html
Sent from the Maven - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: adding javarebel-maven-plugin to ejb module pom.xml
Posted by Arbi Sookazian <as...@gmail.com>.
So I added a profile to the module POM (not the parent POM) and this did the
trick.
I was confused because I create the build via 'mvn clean instal -Pjrebel'
from the parent POM, not the module POM where the profile is specified.
Stephen Connolly-2 wrote:
>
> use a profile
>
> On 21 April 2010 21:10, Arbi Sookazian <as...@gmail.com> wrote:
>
>>
>> I have a multi-module Maven project. In the ejb module POM for the Seam
>> ejb
>> components, I added the following xml snippet for the
>> javarebel-maven-plugin
>> in the build section. The purpose of this plugin is to create a
>> rebel.xml
>> file in the target\classes directory and finally in the root of the JAR
>> artifact which is packaged in the EAR.
>>
>> <build>
>> <plugins>
>> <plugin>
>> <groupId>org.zeroturnaround</groupId>
>> <artifactId>javarebel-maven-plugin</artifactId>
>> <version>1.0.5</version>
>> <executions>
>> <execution>
>> <id>generate-rebel-xml</id>
>> <phase>process-resources</phase>
>> <goals>
>> <goal>generate</goal>
>> </goals>
>> </execution>
>> </executions>
>> </plugin>
>> </plugins>
>> </build>
>>
>> This build works but I want to configure my POMs such that this build
>> plugin
>> is optionally used/invoked (some coworkers may not want to use JRebel,
>> for
>> example). How do I implement this? Using a new profile?
>>
>> We currently have a dev and continuum profile in the parent POM but I'm
>> not
>> sure if I should create another profile in the parent POM or the ejb
>> module
>> POM and exactly how to do it. Any advice appreciated. thx.
>>
>>
>> --
>> View this message in context:
>> http://old.nabble.com/adding-javarebel-maven-plugin-to-ejb-module-pom.xml-tp28300725p28300725.html
>> Sent from the Maven - Users mailing list archive at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>> For additional commands, e-mail: users-help@maven.apache.org
>>
>>
>
>
--
View this message in context: http://old.nabble.com/adding-javarebel-maven-plugin-to-ejb-module-pom.xml-tp28300725p28335728.html
Sent from the Maven - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: adding javarebel-maven-plugin to ejb module pom.xml
Posted by Stephen Connolly <st...@gmail.com>.
use a profile
On 21 April 2010 21:10, Arbi Sookazian <as...@gmail.com> wrote:
>
> I have a multi-module Maven project. In the ejb module POM for the Seam
> ejb
> components, I added the following xml snippet for the
> javarebel-maven-plugin
> in the build section. The purpose of this plugin is to create a rebel.xml
> file in the target\classes directory and finally in the root of the JAR
> artifact which is packaged in the EAR.
>
> <build>
> <plugins>
> <plugin>
> <groupId>org.zeroturnaround</groupId>
> <artifactId>javarebel-maven-plugin</artifactId>
> <version>1.0.5</version>
> <executions>
> <execution>
> <id>generate-rebel-xml</id>
> <phase>process-resources</phase>
> <goals>
> <goal>generate</goal>
> </goals>
> </execution>
> </executions>
> </plugin>
> </plugins>
> </build>
>
> This build works but I want to configure my POMs such that this build
> plugin
> is optionally used/invoked (some coworkers may not want to use JRebel, for
> example). How do I implement this? Using a new profile?
>
> We currently have a dev and continuum profile in the parent POM but I'm not
> sure if I should create another profile in the parent POM or the ejb module
> POM and exactly how to do it. Any advice appreciated. thx.
>
>
> --
> View this message in context:
> http://old.nabble.com/adding-javarebel-maven-plugin-to-ejb-module-pom.xml-tp28300725p28300725.html
> Sent from the Maven - Users mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>