[ http://jira.codehaus.org/browse/MNG-1678?page=comments#action_84696 ] 
            
Brett Porter commented on MNG-1678:
-----------------------------------

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

> missing element does not trigger any warning
> --------------------------------------------
>
>                 Key: MNG-1678
>                 URL: http://jira.codehaus.org/browse/MNG-1678
>             Project: Maven 2
>          Issue Type: Improvement
>    Affects Versions: 2.0, 2.0.4
>            Reporter: Jorg Heymans
>         Assigned To: Maria Odea Ching
>             Fix For: 2.0.6
>
>   Original Estimate: 12 hours
>  Remaining Estimate: 12 hours
>
> 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

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to