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

Maven doesn't detect invalid dependency descriptions in the pom

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Duplicate
    • Affects Version/s: 2.0.4
    • Fix Version/s: None
    • Component/s: POM
    • Labels:
      None
    • Environment:
      Ubuntu 6.10

      Description

      Maven doesn't detect that the following pom snippet is not valid:

      [...]
      <dependencies>
      <groupId>jdom</groupId>
      <artifactId>jdom</artifactId>
      <version>1.0</version>
      </dependencies>
      [...]

      if 'mvn compile' is run on the included test project, this is what happens:

      tik@tweety:~/Develop/testpom$ mvn compile
      [INFO] Scanning for projects...
      [INFO] ----------------------------------------------------------------------------
      [INFO] Building testproject
      [INFO] task-segment: [compile]
      [INFO] ----------------------------------------------------------------------------
      [INFO] [resources:resources]
      [INFO] Using default encoding to copy filtered resources.
      [INFO] [compiler:compile]
      Compiling 1 source file to /home/tik/Develop/testpom/target/classes
      [INFO] ------------------------------------------------------------------------
      [ERROR] BUILD FAILURE
      [INFO] ------------------------------------------------------------------------
      [INFO] Compilation failure

      /home/tik/Develop/testpom/src/main/java/TestClass.java:[1,16] package org.jdom does not exist

      /home/tik/Develop/testpom/src/main/java/TestClass.java:[5,12] cannot find symbol
      symbol : class Element
      location: class TestClass

      [INFO] ------------------------------------------------------------------------
      [INFO] For more information, run Maven with the -e switch
      [INFO] ------------------------------------------------------------------------
      [INFO] Total time: 2 seconds
      [INFO] Finished at: Mon Jan 08 19:23:14 CET 2007
      [INFO] Final Memory: 3M/8M
      [INFO] ------------------------------------------------------------------------

        Attachments

        Issue Links

          Activity

            People

            • Assignee:
              siveton Siveton Vincent
              Reporter:
              tik Tim Kettler

              Dates

              • Created:
                Updated:
                Resolved:

                Issue deployment