You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Jean-Luc Wasmer <jl...@lists.wasmer.ca> on 2007/05/27 18:59:57 UTC

bug: profile activation by file

Should I open a new issue for the following bug ? (or is it already 
being addressed?)

-> when calling maven outside the pom's directory, the profile 
activation fails:

macb:~/Development/maven-test/parent jl$ mvn install
[INFO] Scanning for projects...
[INFO] Reactor build order:
[INFO]   Example parent
[INFO]   Example module1
[INFO]   Example module2
[INFO] 
----------------------------------------------------------------------------
....


macb:~/Development/maven-test jl$ mvn -f parent/pom.xml install
[INFO] Scanning for projects...
[INFO] Reactor build order:
[INFO]   Example parent
[INFO]   Example module1
[INFO] 
----------------------------------------------------------------------------
....


Here's the content of ~/Development/maven-test/parent/pom.xml

<?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">
 <modelVersion>4.0.0</modelVersion>
 <groupId>org.example</groupId>
 <artifactId>example-parent</artifactId>
 <packaging>pom</packaging>
 <name>Example parent</name>
 <version>0.0.1-SNAPSHOT</version>
 <modules>
   <module>module1</module>
 </modules>
 <profiles>
   <profile>
     <id>module2-build</id>
     <activation>
       <file>
         <exists>module2/pom.xml</exists>
       </file>
     </activation>
     <modules>
       <module>module2</module>
     </modules>
   </profile>
 </profiles>
</project>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org