Hi Deluigi,

You can solve your second problem by adding this below <plugin>:

    <inherited>false</inherited>

I'm not sure about problem 1.

Paul



Deluigi Marcus wrote:
> 
> 
> Hi
> 
> I have the following scenario:
> 
> I have a project with several modules.
> 
> One of the modules starts a container with Cargo in the
> pre-integration-phase, tests something in the integration phase and
> stops Tomcat in the post-integration-phase.
> 
> There is a profile called 'tomcat' which is activated by default that
> sets the container to Tomcat for Cargo.
> 
> In order to make sure that Tomcat is started with the right
> configuration, I always want to copy my custom configuration file into
> the Tomcats configuration directory. This is done by ant ant-task which
> should only be executed, if the actual profile is really Tomcat. It is
> also important that the configuration file is copied _before_ the
> container is started.
> 
> So, the layout is the following:
> 
> <profiles>
>  ...
> <profile>
> <id>auto</id>
> <build>
> <plugins>
> .. let cargo start, deploy, undeploy, stop, etc
> </plugins>
> </build>
> </profile>
> 
> <profile>
> <id>tomcat</id>
> <activation><activeByDefault>true</activeByDefault></activation>
> <build>
> <plugins>
> .. let the ant-task copy the configuration file
> </plugins>
> </build>
> </profile>
> 
> 
> Now I have two problems:
> First, the ant-task is not the first task in the pre-integration task.
> It always gets executed _after_ the container is started.
> 
> Second: when I execute 'mvn help:effective-pom', for the different
> modules, I see that all other ant tasks in every module contains the
> copy task. I must have completely misunderstood something very basic.
> How do I tell maven only to execute the ant task in this project?
> 
> Thanks for any help!
> 
> 
> Greetings,
> Marcus
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Help-on-profiles-tf2650962s177.html#a7405710
Sent from the Maven - Users mailing list archive at Nabble.com.


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

Reply via email to