Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 2.0.5, 2.0.8, 2.0.9
-
Component/s: POM, Reactor and workspace
-
Labels:None
-
Complexity:Intermediate
-
Number of attachments :
Description
For example, adding a dependencyManagement section like the following doesn't result in a parser/validation error:
<dependencyManagement> <dependencies> <groupId>org.group</groupId> <artifactId>foo</artifactId> <version>1</version> </dependencies> </dependencyManagement>
Hint: It's missing the dependency element to contain the groupId/artifactId/version.
This is probably a duplicate, but if so it looks like the original is buried somewhere deep...I can't find it.
Issue Links
| This issue is duplicated by: | ||||
| MNG-2747 | Maven doesn't detect invalid dependency descriptions in the pom |
|
|
|
| This issue relates to: | ||||
| MNG-4019 | Unrecognised association "exclude" in pom parsing <resource><directory><excludes> in 2.0.10-RC10 |
|
|
|
| MNG-3616 | Null Pointer Exception when mirrorOf missing from mirror in settings.xml |
|
|
|
| MNG-4644 | Misplaced text contents in root element of POM is not rejected by parser |
|
|
|
| This issue supercedes: | ||||
| MNG-2816 | Pom without xsd import is not validated |
|
|
|
| MNG-1678 | missing element does not trigger any warning |
|
|
|
NOTE: This is not a problem in trunk / 2.1, probably because strict mode is always-on for projects build from the filesystem (i.e. not from a repository or local repository location).