You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Michael Osipov (JIRA)" <ji...@apache.org> on 2018/12/29 00:13:00 UTC

[jira] [Closed] (MNG-6213) Maven doesn't check the validity of scope value

     [ https://issues.apache.org/jira/browse/MNG-6213?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Michael Osipov closed MNG-6213.
-------------------------------
    Resolution: Fixed

Fixed with [9c946263facbfa851fb646b3fac62cf1d3302ded|https://gitbox.apache.org/repos/asf?p=maven-archiver.git;a=commit;h=9c946263facbfa851fb646b3fac62cf1d3302ded].

> Maven doesn't check the validity of scope value
> -----------------------------------------------
>
>                 Key: MNG-6213
>                 URL: https://issues.apache.org/jira/browse/MNG-6213
>             Project: Maven
>          Issue Type: Improvement
>          Components: POM
>    Affects Versions: 3.3.9
>         Environment: Apache Maven 3.3.9 (bb52d8502b132ec0a5a3f4c09453c07478323dc5; 2015-11-11T01:41:47+09:00)
> Maven home: /usr/local/Cellar/maven/3.3.9/libexec
> Java version: 1.8.0_121, vendor: Oracle Corporation
> Java home: /Library/Java/JavaVirtualMachines/jdk1.8.0_121.jdk/Contents/Home/jre
> Default locale: en_US, platform encoding: UTF-8
> OS name: "mac os x", version: "10.12.4", arch: "x86_64", family: "mac"
>            Reporter: Jin Kwon
>            Assignee: Michael Osipov
>            Priority: Minor
>              Labels: scope
>             Fix For: 3.6.1
>
>
> I accidentally  put a wrong value into the {{scope}} tag.
> {code:xml}
>   <dependencyManagement>
>     <dependencies>
>       <dependency>
>         <groupId>org.glassfish.jersey</groupId>
>         <artifactId>jersey-bom</artifactId>
>         <version>2.26-b03</version>
>         <type>pom</type>
>         <scope>include</scope> <!-- should be 'import' -->
>       </dependency>
>     </dependencies>      
>   </dependencyManagement>
> {code}
> And, of course, my dependency doesn't work.
> {code:xml}
>   <dependencies>
>     <dependency>
>       <groupId>org.glassfish.jersey.core</groupId>
>       <artifactId>jersey-common</artifactId>
>       <scope>test</scope>
>     </dependency>
>   </dependencies>
> {code}
> {code}
> 'dependencies.dependency.version' for org.glassfish.jersey.core:jersey-common:jar is missing.
> {code}
> Maven should complains about the wrong value of {{include}}.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)