[ https://jira.codehaus.org/browse/MNG-3309?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Robert Scholte updated MNG-3309: -------------------------------- Component/s: Profiles Description: I want include profiles from profiles ... a example ... please tell me if this is nonsense :-) {code:xml} <profiles> <!-- my default-profile ... this profile defines properties .... so i try to include other property-triggered-profiles --> <profile> <id>default</id> <activation> <activeByDefault>true</activeByDefault> </activation> <properties> <!-- include profile tomcat6 --> <tomcat>6</tomcat> <!-- include profile myfaces12 --> <jsf>myfaces12</jsf> <!-- include profile richfaces --> <richfaces>true</richfaces> <!-- don't include profile seam --> <seam>false</seam> </properties> </profile> <profile> <!-- JBoss Seam JSF framework : -Dseam=yes --> <id>seam</id> <activation> <activeByDefault>false</activeByDefault> <property> <name>seam</name> <value>true</value> </property> </activation> ... </profile> <profile> <!-- JBoss Richfaces Component Lib for JSF : -Drichfaces=true --> <id>richfaces</id> <activation> <activeByDefault>false</activeByDefault> <property> <name>richfaces</name> <value>true</value> </property> </activation> ... </profile> <profile> <!-- MyFaces JSF Implementation 1.2 : -Djsf=myfaces12 --> <id>myfaces12</id> <activation> <activeByDefault>false</activeByDefault> <property> <name>jsf</name> <value>myfaces12</value> </property> </activation> ... </profile> <profile> <!-- MyFaces JSF Implementation 1.1 : -Djsf=myfaces11 --> <id>myfaces11</id> <activation> <activeByDefault>false</activeByDefault> <property> <name>jsf</name> <value>myfaces11</value> </property> </activation> ... </profile> <profile> <!-- Sun's JSF Reference Implementation 1.2 : -Djsf=ri12 --> <id>jsfri12</id> <activation> <activeByDefault>false</activeByDefault> <property> <name>jsf</name> <value>ri12</value> </property> </activation> .... </profile> <profile> <!-- Tomcat 5.x Environment : -Dtomcat=5 --> <id>tomcat5</id> <activation> <activeByDefault>false</activeByDefault> <property> <name>tomcat</name> <value>5</value> </property> </activation> <build> <defaultGoal>jetty:run</defaultGoal> </build> <dependencies> <dependency> <groupId>javax.servlet</groupId> <artifactId>servlet-api</artifactId> <version>2.4</version> <scope>provided</scope> </dependency> <dependency> <groupId>javax.servlet.jsp</groupId> <artifactId>jsp-api</artifactId> <version>2.0</version> <scope>provided</scope> </dependency> <dependency> <groupId>javax.el</groupId> <artifactId>el-api</artifactId> <version>1.0</version> </dependency> <dependency> <groupId>el-impl</groupId> <artifactId>el-impl</artifactId> <version>1.0</version> </dependency> </dependencies> </profile> <profile> <!-- Tomcat 6.x Environment : -Dtomcat=6 --> <id>tomcat6</id> <activation> <activeByDefault>false</activeByDefault> <property> <name>tomcat</name> <value>6</value> </property> </activation> <build> <defaultGoal>jetty:run</defaultGoal> </build> <dependencies> <dependency> <groupId>javax.servlet</groupId> <artifactId>servlet-api</artifactId> <version>2.5</version> <scope>provided</scope> </dependency> <dependency> <groupId>javax.servlet.jsp</groupId> <artifactId>jsp-api</artifactId> <version>2.1</version> <scope>provided</scope> </dependency> <dependency> <groupId>javax.el</groupId> <artifactId>el-api</artifactId> <version>1.0</version> <scope>provided</scope> </dependency> <dependency> <groupId>el-impl</groupId> <artifactId>el-impl</artifactId> <version>1.0</version> <scope>provided</scope> </dependency> </dependencies> </profile> ... {code} {noformat} 'mvn -Pdefault eclipse:eclipse' should create a tomcat6, myfaces12, richfaces project 'mvn -Pdevel eclipse:eclipse' should create a tomcat5, myfaces12, richfaces project 'mvn -Pproductiv eclipse:eclipse' should create a jboss, myfaces12, richfaces project .... {noformat} any ideas? was: I want include profiles from profiles ... a example ... please tell me if this is nonsense :-) <profiles> <!-- my default-profile ... this profile defines properties .... so i try to include other property-triggered-profiles --> <profile> <id>default</id> <activation> <activeByDefault>true</activeByDefault> </activation> <properties> <!-- include profile tomcat6 --> <tomcat>6</tomcat> <!-- include profile myfaces12 --> <jsf>myfaces12</jsf> <!-- include profile richfaces --> <richfaces>true</richfaces> <!-- don't include profile seam --> <seam>false</seam> </properties> </profile> <profile> <!-- JBoss Seam JSF framework : -Dseam=yes --> <id>seam</id> <activation> <activeByDefault>false</activeByDefault> <property> <name>seam</name> <value>true</value> </property> </activation> ... </profile> <profile> <!-- JBoss Richfaces Component Lib for JSF : -Drichfaces=true --> <id>richfaces</id> <activation> <activeByDefault>false</activeByDefault> <property> <name>richfaces</name> <value>true</value> </property> </activation> ... </profile> <profile> <!-- MyFaces JSF Implementation 1.2 : -Djsf=myfaces12 --> <id>myfaces12</id> <activation> <activeByDefault>false</activeByDefault> <property> <name>jsf</name> <value>myfaces12</value> </property> </activation> ... </profile> <profile> <!-- MyFaces JSF Implementation 1.1 : -Djsf=myfaces11 --> <id>myfaces11</id> <activation> <activeByDefault>false</activeByDefault> <property> <name>jsf</name> <value>myfaces11</value> </property> </activation> ... </profile> <profile> <!-- Sun's JSF Reference Implementation 1.2 : -Djsf=ri12 --> <id>jsfri12</id> <activation> <activeByDefault>false</activeByDefault> <property> <name>jsf</name> <value>ri12</value> </property> </activation> .... </profile> <profile> <!-- Tomcat 5.x Environment : -Dtomcat=5 --> <id>tomcat5</id> <activation> <activeByDefault>false</activeByDefault> <property> <name>tomcat</name> <value>5</value> </property> </activation> <build> <defaultGoal>jetty:run</defaultGoal> </build> <dependencies> <dependency> <groupId>javax.servlet</groupId> <artifactId>servlet-api</artifactId> <version>2.4</version> <scope>provided</scope> </dependency> <dependency> <groupId>javax.servlet.jsp</groupId> <artifactId>jsp-api</artifactId> <version>2.0</version> <scope>provided</scope> </dependency> <dependency> <groupId>javax.el</groupId> <artifactId>el-api</artifactId> <version>1.0</version> </dependency> <dependency> <groupId>el-impl</groupId> <artifactId>el-impl</artifactId> <version>1.0</version> </dependency> </dependencies> </profile> <profile> <!-- Tomcat 6.x Environment : -Dtomcat=6 --> <id>tomcat6</id> <activation> <activeByDefault>false</activeByDefault> <property> <name>tomcat</name> <value>6</value> </property> </activation> <build> <defaultGoal>jetty:run</defaultGoal> </build> <dependencies> <dependency> <groupId>javax.servlet</groupId> <artifactId>servlet-api</artifactId> <version>2.5</version> <scope>provided</scope> </dependency> <dependency> <groupId>javax.servlet.jsp</groupId> <artifactId>jsp-api</artifactId> <version>2.1</version> <scope>provided</scope> </dependency> <dependency> <groupId>javax.el</groupId> <artifactId>el-api</artifactId> <version>1.0</version> <scope>provided</scope> </dependency> <dependency> <groupId>el-impl</groupId> <artifactId>el-impl</artifactId> <version>1.0</version> <scope>provided</scope> </dependency> </dependencies> </profile> ... 'mvn -Pdefault eclipse:eclipse' should create a tomcat6, myfaces12, richfaces project 'mvn -Pdevel eclipse:eclipse' should create a tomcat5, myfaces12, richfaces project 'mvn -Pproductiv eclipse:eclipse' should create a jboss, myfaces12, richfaces project .... any ideas? > Is it possible to trigger profiles from profiles > ------------------------------------------------ > > Key: MNG-3309 > URL: https://jira.codehaus.org/browse/MNG-3309 > Project: Maven 2 & 3 > Issue Type: New Feature > Components: Profiles > Affects Versions: 2.0.7 > Reporter: Andreas Höhmann > Fix For: 3.x / Backlog > > > I want include profiles from profiles ... a example ... please tell me if > this is nonsense :-) > {code:xml} > <profiles> > <!-- my default-profile ... this profile defines properties .... so i try > to include other property-triggered-profiles --> > <profile> > <id>default</id> > <activation> > <activeByDefault>true</activeByDefault> > </activation> > <properties> > <!-- include profile tomcat6 --> > <tomcat>6</tomcat> > <!-- include profile myfaces12 --> > <jsf>myfaces12</jsf> > <!-- include profile richfaces --> > <richfaces>true</richfaces> > <!-- don't include profile seam --> > <seam>false</seam> > </properties> > </profile> > <profile> > <!-- > JBoss Seam JSF framework : -Dseam=yes > --> > <id>seam</id> > <activation> > <activeByDefault>false</activeByDefault> > <property> > <name>seam</name> > <value>true</value> > </property> > </activation> > ... > </profile> > <profile> > <!-- > JBoss Richfaces Component Lib for JSF : -Drichfaces=true > --> > <id>richfaces</id> > <activation> > <activeByDefault>false</activeByDefault> > <property> > <name>richfaces</name> > <value>true</value> > </property> > </activation> > ... > </profile> > <profile> > <!-- > MyFaces JSF Implementation 1.2 : -Djsf=myfaces12 > --> > <id>myfaces12</id> > <activation> > <activeByDefault>false</activeByDefault> > <property> > <name>jsf</name> > <value>myfaces12</value> > </property> > </activation> > ... > </profile> > <profile> > <!-- > MyFaces JSF Implementation 1.1 : -Djsf=myfaces11 > --> > <id>myfaces11</id> > <activation> > <activeByDefault>false</activeByDefault> > <property> > <name>jsf</name> > <value>myfaces11</value> > </property> > </activation> > ... > </profile> > <profile> > <!-- > Sun's JSF Reference Implementation 1.2 : -Djsf=ri12 > --> > <id>jsfri12</id> > <activation> > <activeByDefault>false</activeByDefault> > <property> > <name>jsf</name> > <value>ri12</value> > </property> > </activation> > .... > </profile> > <profile> > <!-- > Tomcat 5.x Environment : -Dtomcat=5 > --> > <id>tomcat5</id> > <activation> > <activeByDefault>false</activeByDefault> > <property> > <name>tomcat</name> > <value>5</value> > </property> > </activation> > <build> > <defaultGoal>jetty:run</defaultGoal> > </build> > <dependencies> > <dependency> > <groupId>javax.servlet</groupId> > <artifactId>servlet-api</artifactId> > <version>2.4</version> > <scope>provided</scope> > </dependency> > <dependency> > <groupId>javax.servlet.jsp</groupId> > <artifactId>jsp-api</artifactId> > <version>2.0</version> > <scope>provided</scope> > </dependency> > <dependency> > <groupId>javax.el</groupId> > <artifactId>el-api</artifactId> > <version>1.0</version> > </dependency> > <dependency> > <groupId>el-impl</groupId> > <artifactId>el-impl</artifactId> > <version>1.0</version> > </dependency> > </dependencies> > </profile> > <profile> > <!-- > Tomcat 6.x Environment : -Dtomcat=6 > --> > <id>tomcat6</id> > <activation> > <activeByDefault>false</activeByDefault> > <property> > <name>tomcat</name> > <value>6</value> > </property> > </activation> > <build> > <defaultGoal>jetty:run</defaultGoal> > </build> > <dependencies> > <dependency> > <groupId>javax.servlet</groupId> > <artifactId>servlet-api</artifactId> > <version>2.5</version> > <scope>provided</scope> > </dependency> > <dependency> > <groupId>javax.servlet.jsp</groupId> > <artifactId>jsp-api</artifactId> > <version>2.1</version> > <scope>provided</scope> > </dependency> > <dependency> > <groupId>javax.el</groupId> > <artifactId>el-api</artifactId> > <version>1.0</version> > <scope>provided</scope> > </dependency> > <dependency> > <groupId>el-impl</groupId> > <artifactId>el-impl</artifactId> > <version>1.0</version> > <scope>provided</scope> > </dependency> > </dependencies> > </profile> > ... > {code} > {noformat} > 'mvn -Pdefault eclipse:eclipse' should create a tomcat6, myfaces12, > richfaces project > 'mvn -Pdevel eclipse:eclipse' should create a tomcat5, myfaces12, richfaces > project > 'mvn -Pproductiv eclipse:eclipse' should create a jboss, myfaces12, > richfaces project > .... > {noformat} > any ideas? -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira