Uploaded image for project: 'Maven'
  1. Maven
  2. MNG-6213

Maven doesn't check the validity of scope value

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 3.3.9
    • 3.6.1
    • POM

    Description

      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.

      Attachments

        Activity

          People

            michael-o Michael Osipov
            jinahya Jin Kwon
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 10m
                10m