If you just move the "common" stuff out of the profiles, and into the
normal <build> section of the pom, then it will be shared by both
profiles.

Wayne

On 10/14/07, Sonar, Nishant <[EMAIL PROTECTED]> wrote:
> Hi
>
>
>
> We work with profiles in maven as
>
>
>
> Mvn -Pprofile1,profile2
>
>
>
> On pom
>
>
>
> <profiles>
>
> <profile>
>
>            <id>profile1</id>
>
> <build>
>
> <plugin>
>
> ...
>
> </plugin>
>
> </build>
>
> <profile>
>
> <profile>
>
>            <id>profile2</id>
>
> <build>
>
> <plugin>
>
> ...
>
> </plugin>
>
> </build>
>
> <profile>
>
> </profiles>
>
>
>
> In this case both the builds are different .Consider a case where we have a 
> comman build tasks in
>
> Both tasks but some ½ different build tasks (plugins) to be different , Is 
> there a way to specify one common build which
>
> Will always execute and one which will execute plugins on basis of profile
>
>
>
>
>
> Thanks
>
> nishant
>
>
>
>

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

Reply via email to