Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
2.0.10, 2.1.0, 2.2.0
-
None
Description
In my project I did a mistake and I wrote
<dependency> <groupId>org.slf4j</groupId> <artifactId>slf4j-log4j12</artifactId> <version>1.5.0</version> <scope>optional</scope> </dependency>
but in fact I intended to write
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-log4j12</artifactId>
<version>1.5.0</version>
<optional>true</optional>
</dependency>
I'm very surprised that Maven doesn't detect such a mistake during the validate phase. Could it be possible to add a check to allow only valid scopes.
Thanks
Attachments
Issue Links
- is depended upon by
-
MANTTASKS-190 dependency scope attribute is not validated
- Closed
- is duplicated by
-
MNG-4722 Maven does not validate <scope> values
- Closed
- is related to
-
MNG-2391 improve validation of POM elements
- Closed
- relates to
-
MNG-4005 Throw Validation Error if pom contains a dependency with two different versions.
- Closed