Maven 2 & 3

Inheritance from profiles from parent-pom to child-pom

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Duplicate
  • Affects Version/s: 2.1.0
  • Fix Version/s: None
  • Component/s: None
  • Labels:
    None
  • Complexity:
    Intermediate
  • Testcase included:
    yes
  • Number of attachments :
    1

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>

Issue Links

Activity

There are no comments yet on this issue.

People

Vote (0)
Watch (1)

Dates

  • Created:
    Updated:
    Resolved: