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

missing element does not trigger any warning

  • Log In
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: Improvement Improvement
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Duplicate
  • Affects Version/s: 2.0, 2.0.4
  • Fix Version/s: None
  • Component/s: POM
  • Labels:
    None
  • Complexity:
    Intermediate

Description

spot the subtle error in below pom :

<?xml version="1.0" encoding="UTF-8"?>
<project>
<modelVersion>4.0.0</modelVersion>
<groupId>org.my.project</groupId>
<artifactId>myProject</artifactId>
<version>0.1</version>
<name>The Project</name>
<packaging>jar</packaging>
<repositories>
<repository>
<id>apache-maven2-snapshot</id>
<name>Apache Maven2 Snapshot Repository</name>
<url>http://cvs.apache.org/maven-snapshot-repository</url>
</repository>
</repositories>
<dependencies>
<groupId>org.apache.cocoon</groupId>
<artifactId>cocoon-core</artifactId>
<version>2.2.0-SNAPSHOT</version>
</dependencies>
</project>

The dependency element is missing inside <dependencies>. Maven did not give any warning or error though.

Note that in my actual project, the dependency was not needed for compilation

Issue Links

depends upon

Bug - A problem which impairs or prevents the functions of the product. MODELLO-68 Strict parsing lists

  • Critical - Crashes, loss of data, severe memory leak.
  • Closed - The issue is considered finished, the resolution is correct. Issues which are not closed can be reopened.
is superceded by

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.

Activity

Ascending order - Click to sort in descending order
  • All
  • Comments
  • Work Log
  • History
  • Activity
Hide
Permalink
Brett Porter added a comment - 17/Jul/06 12:16 AM

I see it in 2.0.4 also. It should be strict parsing this, so there must be a bug in Modello.

Show
Brett Porter added a comment - 17/Jul/06 12:16 AM I see it in 2.0.4 also. It should be strict parsing this, so there must be a bug in Modello.
Hide
Permalink
Vincent Siveton added a comment - 03/Nov/06 4:31 PM

we need also to bump maven-model to the new modello version after

Show
Vincent Siveton added a comment - 03/Nov/06 4:31 PM we need also to bump maven-model to the new modello version after
Hide
Permalink
Vincent Siveton added a comment - 10/Nov/06 7:19 AM

in the same veine of MNG-1592

Show
Vincent Siveton added a comment - 10/Nov/06 7:19 AM in the same veine of MNG-1592
Hide
Permalink
Jason van Zyl added a comment - 10/Jan/07 3:21 PM

Strict mode in parsing doesn't catch any missing elements.

Show
Jason van Zyl added a comment - 10/Jan/07 3:21 PM Strict mode in parsing doesn't catch any missing elements.
Hide
Permalink
Brett Porter added a comment - 10/Jan/07 5:03 PM

just a little clarification - this is not so much missing elements, as invalid elements. <groupId> should be invalid.

Modello does detect missing elements (via required), but we haven't been able to use it because of inheritence not being taken into consideration. In that case, we want to run some validation on the final model - maybe modello could generate a validator based on <required> and some other bean validation (like xworks?)

Show
Brett Porter added a comment - 10/Jan/07 5:03 PM just a little clarification - this is not so much missing elements, as invalid elements. <groupId> should be invalid. Modello does detect missing elements (via required), but we haven't been able to use it because of inheritence not being taken into consideration. In that case, we want to run some validation on the final model - maybe modello could generate a validator based on <required> and some other bean validation (like xworks?)

People

  • Assignee:
    Maria Odea Ching
    Reporter:
    Jorg Heymans
Vote (2)
Watch (0)

Dates

  • Due:
    18/Sep/06
    Created:
    24/Nov/05 2:11 PM
    Updated:
    18/Dec/08 9:07 AM
    Resolved:
    18/Dec/08 9:07 AM

Time Tracking

Estimated:
12h
Original Estimate - 12 hours
Remaining:
12h
Remaining Estimate - 12 hours
Logged:
Not Specified
Time Spent - Not Specified
  • 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.