[ 
http://jira.codehaus.org/browse/MNG-3991?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Benjamin Bentmann closed MNG-3991.
----------------------------------

         Assignee: Benjamin Bentmann
       Resolution: Fixed
    Fix Version/s:     (was: 2.2.x)
                   3.0-alpha-3

Fixed in [r808364|http://svn.apache.org/viewvc?view=rev&revision=808364].

> POM validator allows <scope>optional</scope> but it is not valid.
> -----------------------------------------------------------------
>
>                 Key: MNG-3991
>                 URL: http://jira.codehaus.org/browse/MNG-3991
>             Project: Maven 2
>          Issue Type: Bug
>          Components: POM
>    Affects Versions: 2.0.10, 2.1.0, 2.2.0
>            Reporter: Julien HENRY
>            Assignee: Benjamin Bentmann
>            Priority: Minor
>             Fix For: 3.0-alpha-3
>
>
> In my project I did a mistake and I wrote
> {code}
> <dependency>
>       <groupId>org.slf4j</groupId>
>       <artifactId>slf4j-log4j12</artifactId>
>       <version>1.5.0</version>
>       <scope>optional</scope>
> </dependency>
> {code}
> but in fact I intended to write
> {code}
> <dependency>
>       <groupId>org.slf4j</groupId>
>       <artifactId>slf4j-log4j12</artifactId>
>       <version>1.5.0</version>
>       <optional>true</optional>
> </dependency>
> {code}
> I'm very surprised that Maven doesn't detect such a mistake during the 
> validate phase. Could it be possible to add a check to allow only valid 
> scopes.
> Thanks

-- 
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

        

Reply via email to