Uninterpolated expressions should cause an error
------------------------------------------------
Key: MNG-4383
URL: http://jira.codehaus.org/browse/MNG-4383
Project: Maven 2
Issue Type: Bug
Components: Dependencies
Affects Versions: 3.0-alpha-2, 2.2.1
Reporter: Paul Benedict
I declared a dependency as such:
{noformat}<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
<version>${slf4j.version}</version>
</dependency>{noformat}
But did not define the *slf4j.version* property. Obviously ${...} is an
expression and if the expression is not resolved, why allow it? Here was the
output:
{noformat} Downloading:
http://repo1.maven.org/maven2/org/slf4j/slf4j-api/${slf4j.version}/slf4j-api-${slf4j.version}.pom{noformat}
In terms of usability, an obvious expression should be interpolated. If it
cannot, it should be a runtime error.
--
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