Skip to content

[MNG-6213] Maven doesn't check the validity of scope value #7234

@jira-importer

Description

@jira-importer

Jin Kwon opened MNG-6213 and commented

I accidentally put a wrong value into the scope tag.

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

And, of course, my dependency doesn't work.

<dependencies>
  <dependency>
    <groupId>org.glassfish.jersey.core</groupId>
    <artifactId>jersey-common</artifactId>
    <scope>test</scope>
  </dependency>
</dependencies>
'dependencies.dependency.version' for org.glassfish.jersey.core:jersey-common:jar is missing.

Maven should complains about the wrong value of include.


Affects: 3.3.9

Remote Links:

0 votes, 6 watchers

Metadata

Metadata

Assignees

Labels

enhancementNew feature or requestpriority:minorMinor loss of function, or other problem where easy workaround is present

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions