You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ant.apache.org by "Phil Messenger (JIRA)" <ji...@apache.org> on 2008/09/30 15:43:44 UTC
[jira] Updated: (IVY-926) Maven Pom reader doesn't handle optional
dependencies correctly in some instances
[ https://issues.apache.org/jira/browse/IVY-926?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Phil Messenger updated IVY-926:
-------------------------------
Attachment: ivy-maven-pom.patch
This patch changes the isOptional method to check for the value in the optional element and return the correct value.
> Maven Pom reader doesn't handle optional dependencies correctly in some instances
> ---------------------------------------------------------------------------------
>
> Key: IVY-926
> URL: https://issues.apache.org/jira/browse/IVY-926
> Project: Ivy
> Issue Type: Bug
> Components: Maven Compatibility
> Affects Versions: 2.0-RC1
> Reporter: Phil Messenger
> Attachments: ivy-maven-pom.patch
>
>
> The "isOptional" function in org/apache/ivy/plugins/parser/m2/PomReader.java just checks for the existence of an element with the name "optional". If this element is found, it returns "true" indicating that the dependency is optional.
> The actual value of the element is ignored, so a dependency with "<optional>false</optional>", is still taken to be an optional dependency.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.