You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Thilo Väth (JIRA)" <ji...@codehaus.org> on 2009/05/25 13:20:42 UTC

[jira] Created: (MNG-4174) Inheritance from profiles from parent-pom to child-pom

Inheritance from profiles from parent-pom to child-pom
------------------------------------------------------

                 Key: MNG-4174
                 URL: http://jira.codehaus.org/browse/MNG-4174
             Project: Maven 2
          Issue Type: Bug
    Affects Versions: 2.1.0
            Reporter: Thilo Väth
         Attachments: TestProject.rar

what is the problem with the <activation> tag wich is passed from a parent-pom (and works there) to a child-pom.?!
In the child-pom, the <activation> tag (for example with an <exists> clause) isn´t observed.
I´ve an example project attached...

---------------------------------------------------------------------------------------------------------
XXXXXXXXXXXXXXXX Parent POM XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
---------------------------------------------------------------------------------------------------------
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
	<parent>
		<artifactId>root</artifactId>
		<groupId>org.richfaces</groupId>
		<version>3.2.3-SNAPSHOT</version> 
	</parent>-
	<modelVersion>4.0.0</modelVersion>
	<groupId>org.richfaces</groupId>
	<artifactId>samples</artifactId>
	<packaging>pom</packaging>
	<name>RichFaces Components Examples</name>
	<url>http://labs.jboss.com/jbossrichfaces/samples</url>



	<profiles>
		<profile>
			<id>TEST_PROFILE</id>
			<activation>
				<file>
					<exists>123text.txt</exists>
				</file>			
			</activation>
			<build>
				<plugins>
					<plugin>
						<groupId>org.apache.maven.plugins</groupId>
						<artifactId>maven-compiler-plugin</artifactId>
						<configuration>
							<source>1.4</source>
							<target>1.4</target>
						</configuration>
					</plugin>
				</plugins>
			</build>
			<dependencies>
				
			</dependencies>
		</profile>

	</profiles>
	<modules>

  </modules>
</project>

---------------------------------------------------------------------------------------------------------
XXXXXXXXXXXXXXXX Child POM XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
---------------------------------------------------------------------------------------------------------
<?xml version="1.0"?>
<project>
	<parent>
		<artifactId>samples</artifactId>
		<groupId>org.richfaces</groupId>
		<version>3.2.3-SNAPSHOT</version>
	</parent>
	<modelVersion>4.0.0</modelVersion>
	<groupId>org.richfaces.samples</groupId>
	<artifactId>beanValidatorSample</artifactId>
	<packaging>war</packaging>
	<name>beanValidatorSample Maven Webapp</name>
	<version>3.2.3-SNAPSHOT</version>
	<build>
		<finalName>beanValidatorSample</finalName>
		<plugins>
			<plugin>
				<artifactId>maven-compiler-plugin</artifactId>
				<configuration>
					<source>1.5</source>
					<target>1.5</target>
				</configuration>
			</plugin>
		</plugins>
	</build>
	
</project>


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

[jira] Closed: (MNG-4174) Inheritance from profiles from parent-pom to child-pom

Posted by "Benjamin Bentmann (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MNG-4174?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Benjamin Bentmann closed MNG-4174.
----------------------------------

      Assignee: Benjamin Bentmann
    Resolution: Duplicate

> Inheritance from profiles from parent-pom to child-pom
> ------------------------------------------------------
>
>                 Key: MNG-4174
>                 URL: http://jira.codehaus.org/browse/MNG-4174
>             Project: Maven 2
>          Issue Type: Bug
>    Affects Versions: 2.1.0
>            Reporter: Thilo Väth
>            Assignee: Benjamin Bentmann
>         Attachments: TestProject.rar
>
>
> what is the problem with the <activation> tag wich is passed from a parent-pom (and works there) to a child-pom.?!
> In the child-pom, the <activation> tag (for example with an <exists> clause) isn´t observed.
> I´ve an example project attached...
> ---------------------------------------------------------------------------------------------------------
> XXXXXXXXXXXXXXXX Parent POM XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
> ---------------------------------------------------------------------------------------------------------
> <?xml version="1.0" encoding="UTF-8"?>
> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
> 	<parent>
> 		<artifactId>root</artifactId>
> 		<groupId>org.richfaces</groupId>
> 		<version>3.2.3-SNAPSHOT</version> 
> 	</parent>-
> 	<modelVersion>4.0.0</modelVersion>
> 	<groupId>org.richfaces</groupId>
> 	<artifactId>samples</artifactId>
> 	<packaging>pom</packaging>
> 	<name>RichFaces Components Examples</name>
> 	<url>http://labs.jboss.com/jbossrichfaces/samples</url>
> 	<profiles>
> 		<profile>
> 			<id>TEST_PROFILE</id>
> 			<activation>
> 				<file>
> 					<exists>123text.txt</exists>
> 				</file>			
> 			</activation>
> 			<build>
> 				<plugins>
> 					<plugin>
> 						<groupId>org.apache.maven.plugins</groupId>
> 						<artifactId>maven-compiler-plugin</artifactId>
> 						<configuration>
> 							<source>1.4</source>
> 							<target>1.4</target>
> 						</configuration>
> 					</plugin>
> 				</plugins>
> 			</build>
> 			<dependencies>
> 				
> 			</dependencies>
> 		</profile>
> 	</profiles>
> 	<modules>
>   </modules>
> </project>
> ---------------------------------------------------------------------------------------------------------
> XXXXXXXXXXXXXXXX Child POM XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
> ---------------------------------------------------------------------------------------------------------
> <?xml version="1.0"?>
> <project>
> 	<parent>
> 		<artifactId>samples</artifactId>
> 		<groupId>org.richfaces</groupId>
> 		<version>3.2.3-SNAPSHOT</version>
> 	</parent>
> 	<modelVersion>4.0.0</modelVersion>
> 	<groupId>org.richfaces.samples</groupId>
> 	<artifactId>beanValidatorSample</artifactId>
> 	<packaging>war</packaging>
> 	<name>beanValidatorSample Maven Webapp</name>
> 	<version>3.2.3-SNAPSHOT</version>
> 	<build>
> 		<finalName>beanValidatorSample</finalName>
> 		<plugins>
> 			<plugin>
> 				<artifactId>maven-compiler-plugin</artifactId>
> 				<configuration>
> 					<source>1.5</source>
> 					<target>1.5</target>
> 				</configuration>
> 			</plugin>
> 		</plugins>
> 	</build>
> 	
> </project>

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira