You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Paul Benedict (JIRA)" <ji...@codehaus.org> on 2009/10/08 17:25:38 UTC

[jira] Commented: (MNG-4383) Uninterpolated expressions should cause an error for dependency versions

    [ http://jira.codehaus.org/browse/MNG-4383?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=194047#action_194047 ] 

Paul Benedict commented on MNG-4383:
------------------------------------

Benjamin, could this also be expanded for plugin versions?

> Uninterpolated expressions should cause an error for dependency versions
> ------------------------------------------------------------------------
>
>                 Key: MNG-4383
>                 URL: http://jira.codehaus.org/browse/MNG-4383
>             Project: Maven 2
>          Issue Type: Bug
>          Components: Dependencies
>    Affects Versions: 2.2.1, 3.0-alpha-2
>            Reporter: Paul Benedict
>            Assignee: Benjamin Bentmann
>             Fix For: 3.0-alpha-3
>
>
> 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