blob: 98aeca97d7b17e908be22beff422d0ad42e4991f [file] [log] [blame]
<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">
<modelVersion>4.0.0</modelVersion>
<name>Maven Integration Test :: it0102</name>
<groupId>org.apache.maven.its.it0102</groupId>
<artifactId>maven-it-it0102</artifactId>
<description>Test that &lt;activeByDefault/&gt; calculations for profile activation only
use profiles defined in the POM. [MNG-2136]</description>
<packaging>pom</packaging>
<version>1.0</version>
<build>
<plugins>
<!--
<plugin>
<artifactId>maven-help-plugin</artifactId>
<executions>
<execution>
<id>output-pom</id>
<phase>generate-resources</phase>
<configuration>
<output>target/effective-pom.txt</output>
</configuration>
<goals>
<goal>effective-pom</goal>
</goals>
</execution>
</executions>
</plugin>
-->
<plugin>
<artifactId>maven-antrun-plugin</artifactId>
<executions>
<execution>
<phase>validate</phase>
<configuration>
<tasks>
<echo>value from external profile: ${profilesXmlValue}</echo>
<echo>test output: ${testOutput}</echo>
</tasks>
</configuration>
<goals>
<goal>run</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
<profiles>
<profile>
<id>testInternal</id>
<activation>
<activeByDefault>true</activeByDefault>
</activation>
<properties>
<testOutput>Failure</testOutput>
</properties>
</profile>
<profile>
<id>testInternal2</id>
<activation>
<property><name>user.name</name></property>
</activation>
<properties>
<testOutput>Success</testOutput>
</properties>
</profile>
</profiles>
</project>