I ran projecthelp:active-profiles and indeed both of them were active:
The following profiles are active:
- wtp (source: pom)
- eclipse (source: pom)
I originally specified:
<profile>
<!-- Build Profile for Eclipse WTP -->
<id>eclipse</id>
<activation>
<property>
<name>eclipse31wtp</name>
<value>true</value>
</property>
</activation>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-eclipse-plugin</artifactId>
<configuration>
<classpathContainers>
<java.lang.String>Using Eclipse31</java.lang.String>
</classpathContainers>
</configuration>
</plugin>
</plugins>
</build>
</profile>
<profile>
<!-- Build Profile for Eclipse WTP -->
<id>wtp</id>
<activation>
<property>
<name>wtp</name>
<value>true</value>
</property>
</activation>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-eclipse-plugin</artifactId>
<configuration>
<classpathContainers>
<java.lang.String>WTP</java.lang.String>
</classpathContainers>
</configuration>
</plugin>
</plugins>
</build>
</profile>
However, when I displayed the effective POM using
projecthelp;effective-pom, the build values for the WTP profile are
the same as the Eclipse profile. As if it was overwritten. The build
values for the plugin are those of the Eclipse profile, too. The WTP
profile values are nowhere to be found.
Brian
On 10/19/05, Brian Bonner <[EMAIL PROTECTED]> wrote:
> I wanted to run this idea by folks. I'm thinking about using profiles
> to help with configuration of eclipse based projects. The companies
> that I work with are not always using eclipse, some use IBM WSAD, some
> use RAD, and other things.
>
> I'd like to have a profile setup to configure the eclipse plugin.
> Since eclipse is composed of many modules w/ various dependencies. I
> wonder if there is a way to break out the various configuration
> components into profiles that can be combined.
>
> I tried this and was unsuccessful, but maybe I'm just doing it incorrectly.
>
> For example.
>
> One set of users might have: eclipse 3.1 with WTP 0.71. (the
> classpath is setup one way).
>
> Another variable might be the Server they plan to deploy to: Tomcat
> 4.1, Tomcat 5.0, Geronimo, Websphere, etc.
>
> Another user in the same project might use IBM RAD (which has slightly
> different buildspecs and classpath)
>
> Yet another user might have eclipse 3.1 with sysdeo plugin
>
> And a fourth might be running emacs.
>
> Yes, this isn't ideal, but I'm wondering if I might be able to break
> out the unique pieces in and individual profile and use properties to
> activate the profiles to set the plugin values for eclipse.
>
> I setup one for wtp0.71 and one for eclipse3.1. Individually these
> work fine, but when I try to set both properties, only the first
> profile encountered in the pom that matches one of the properties is
> executed.
>
> If this isn't possible, is there a way to create a tree of profiles so
> that eclipse31wtp includes the eclipse31 profile and wtp and the
> eclipse31sysdeo includes the eclipse31 profile info and the sysdeo
> info?
>
> Thanks.
>
> btw, congrats on the release :)
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]