Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Duplicate
-
2.0.4
-
None
-
None
-
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] ------------------------------------------------------------------------