maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jean-Luc Wasmer <jl+ma...@lists.wasmer.ca>
Subject bug: profile activation by file
Date Sun, 27 May 2007 16:59:57 GMT
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


Mime
View raw message