Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Duplicate
-
2.1.0
-
None
-
None
-
None
Description
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>