Hi there, during installation of the POM in the local repository the variables in the POM are not replaced/filtered. Is this a bug or purpose? Or did I a make a mistake somewhere? We use a variable for setting the <version> (needed for our CruiseControl build), and this variable isn't replaced by the actual value. It's also not possible to start a subproject in a multi-project build, there come's an error like this:
org.apache.maven.reactor.MavenExecutionException: Cannot find parent: group:aaa for project: group.aaa:jars:pom:${buildVersion} Maven either doesn't checks the parent directory (where the pom is located), or it really checks for ${buildVersion} I really need some help here, if I don't find a solution in the next days we'll switch to Ant... Cheers, Frank Example: The POM ist copied 1:1 to the repo, without any filtering of variables. ------------------------------------------------------------------------ - <?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>group</groupId> <artifactId>aaa</artifactId> <packaging>jar</packaging> <version>${buildVersion}</version> <!-- NOT FILTERED DURING INSTALL/DEPLOY IN REPO! --> <properties> <versionNo>1.2</versionNo> <buildVersion>${versionNo}${point}${label}</buildVersion> </properties> </project> ------------------------------------------------------------------------ - Settings.xml: <settings 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/xsd/settings-1.0.0.xsd"> <profiles> <profile> <!-- CruiseControl builds should have a name like "aaa-1.2.build-123.jar", locally we use "aaa-1.2-SNAPSHOT.jar" --> <id>setting_label</id> <properties> <point>-</point> <!-- use "." on the build server, "-" locally --> <label>SNAPSHOT</label> <!-- label is set automatically by CruiseControl, use "SNAPSHOT" locally --> </properties> </profile> </profiles> <activeProfiles> <activeProfile>setting_label</activeProfile> </activeProfiles> </settings> ------------------------------------------------------------------------ - --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]