Maven doesn't detect invalid dependency descriptions in the pom
---------------------------------------------------------------

                 Key: MNG-2747
                 URL: http://jira.codehaus.org/browse/MNG-2747
             Project: Maven 2
          Issue Type: Bug
    Affects Versions: 2.0.4
         Environment: Ubuntu 6.10
            Reporter: Tim Kettler
         Attachments: testpom.tgz

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:

[EMAIL PROTECTED]:~/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] ------------------------------------------------------------------------


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