Hi, I am using maven 2.0.4 and I want to be excluding certain modules while building my project in a certain profile. Following is the scenarion:
This is how my main pom looks like: <?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>com.informatica.metadatarepository.qa</groupId> <artifactId>metamodels</artifactId> <packaging>pom</packaging> <name>${artifactId}</name> <modules> <module>module1</module> <module>module2</module> <module>module3</module> <module>module4</module> </modules> <profiles> <profile> <id>cpp-qa</id> <modules> <module>module3</module> <module>module4</module> </modules> </profile> </profiles> With the above pom, when I build the project activating the profile "cpp-qa", all the four modules are being built. I want to be building only module3 and module4 using certain configurations in this profile. Is there a way by which I can accomplish this in maven2? Thanks for any help, Ravi. "Tough times never last, but tough men do..."
