[
http://jira.codehaus.org/browse/MNG-3448?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=204640#action_204640
]
Brett Porter commented on MNG-3448:
-----------------------------------
FWIW, in Maven 2.2.1, this yields:
Project ID: org.example:jar
POM Location: /Users/brett/test-runs/MNG-3448/org.example.jar/pom.xml
Reason: Resolving expression: '${webapp.version}': Detected the following
recursive expression cycle: [webapp.version, version] for project
org.example:jar at /Users/brett/test-runs/MNG-3448/org.example.jar/pom.xml
and in Maven 3.0-alpha-5:
[ERROR] The build could not read 1 project -> [Help 1]
[ERROR] The project org.example:jar:${webapp.version}
(/Users/brett/test-runs/MNG-3448/org.example.jar/pom.xml) has 3 errors
[ERROR] Resolving expression: '${webapp.version}': Detected the following
recursive expression cycle: [webapp.version, version] -> [Help 2]
[ERROR] Resolving expression: '${project.version}': Detected the following
recursive expression cycle: [] -> [Help 2]
[ERROR] Resolving expression: '${project.version}': Detected the following
recursive expression cycle: [] -> [Help 2]
> Infinite Loop When Using project.version in Modules Build
> ---------------------------------------------------------
>
> Key: MNG-3448
> URL: http://jira.codehaus.org/browse/MNG-3448
> Project: Maven 2 & 3
> Issue Type: Bug
> Components: POM
> Affects Versions: 2.0.8
> Reporter: Hilco Wijbenga
>
> I have the following setup:
> org.example.pom/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/xsd/maven-4.0.0.xsd"
> >
> <modelVersion>4.0.0</modelVersion>
> <groupId>org.example</groupId>
> <artifactId>pom</artifactId>
> <packaging>pom</packaging>
> <version>1</version>
> <name>POM</name>
> <properties>
> <webapp.version>${project.version}</webapp.version>
> </properties>
> </project>
> and org.example.jar/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/xsd/maven-4.0.0.xsd"
> >
> <modelVersion>4.0.0</modelVersion>
> <parent>
> <groupId>org.example</groupId>
> <artifactId>pom</artifactId>
> <version>1</version>
> <relativePath>../org.example.pom/pom.xml</relativePath>
> </parent>
> <groupId>org.example</groupId>
> <artifactId>jar</artifactId>
> <packaging>jar</packaging>
> <version>${webapp.version}</version>
> <name>JAR</name>
> </project>
> Running "mvn clean" in org.example.jar yields just
> [INFO] Scanning for projects...
> and then Maven hangs. Replacing "${project.version}" with a simple "0.1"
> allows things to work properly.
> My environment:
> Maven version: 2.0.8
> Java version: 1.5.0_14
> OS name: "linux" version: "2.6.24-gentoo-r2" arch: "i386" Family: "unix"
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira