jira.codehaus.org

  • Log In Access more options
    • Online Help
    • Keyboard Shortcuts
    • About JIRA
    • JIRA Credits
    • What?s New
  • Dashboards Access more options (Alt+d)
  • Projects Access more options (Alt+p)
  • Issues Access more options (Alt+i)
  • Maven 2 & 3
  • MNG-2747

Maven doesn't detect invalid dependency descriptions in the pom

  • Log In
  • Views
    • XML
    • Word
    • Printable

Details

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

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

  • Options
    • Sort By Name
    • Sort By Date
    • Ascending
    • Descending
    • Download All

Attachments

  1. File
    testpom.tgz
    08/Jan/07 12:26 PM
    0.5 kB
    Tim Kettler

Issue Links

duplicates

Bug - A problem which impairs or prevents the functions of the product. MNG-3645 Maven doesn't do strict model validation for POMs in the current reactor

  • Major - Major loss of function.
  • Closed - The issue is considered finished, the resolution is correct. Issues which are not closed can be reopened.
is related to

Improvement - An improvement or enhancement to an existing feature or task. MNG-2391 improve validation of POM elements

  • Major - Major loss of function.
  • Closed - The issue is considered finished, the resolution is correct. Issues which are not closed can be reopened.

Task - A task that needs to be done. MNG-2764 Refactor MavenProjectBuilder

  • Major - Major loss of function.
  • Closed - The issue is considered finished, the resolution is correct. Issues which are not closed can be reopened.

Activity

Ascending order - Click to sort in descending order
  • All
  • Comments
  • Work Log
  • History
  • Activity
Hide
Permalink
Brett Porter added a comment - 05/Sep/07 2:22 AM

changes to project building might just take care of this anyway.

Show
Brett Porter added a comment - 05/Sep/07 2:22 AM changes to project building might just take care of this anyway.
Hide
Permalink
Vincent Siveton added a comment - 11/Jan/08 8:09 AM

see MNG-2391

Show
Vincent Siveton added a comment - 11/Jan/08 8:09 AM see MNG-2391

People

  • Assignee:
    Vincent Siveton
    Reporter:
    Tim Kettler
Vote (0)
Watch (0)

Dates

  • Created:
    08/Jan/07 12:26 PM
    Updated:
    24/Oct/09 7:30 AM
    Resolved:
    11/Jan/08 8:09 AM
  • Atlassian JIRA (v5.0.4#731-sha1:3aa7374)
  • Report a problem
  • Powered by a free Atlassian JIRA open source license for Codehaus. Try JIRA - bug tracking software for your team.