You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by "Edwin Punzalan (JIRA)" <ji...@codehaus.org> on 2005/11/25 08:11:06 UTC
[jira] Closed: (MNG-1646) Optional tag in project dependency doesn't work
[ http://jira.codehaus.org/browse/MNG-1646?page=all ]
Edwin Punzalan closed MNG-1646:
-------------------------------
Resolution: Fixed
I don't know who fixed this... but from svn, this is already fixed.
> Optional tag in project dependency doesn't work
> -----------------------------------------------
>
> Key: MNG-1646
> URL: http://jira.codehaus.org/browse/MNG-1646
> Project: Maven 2
> Type: Bug
> Components: Plugins and Lifecycle
> Versions: 2.0
> Reporter: David Jackman
> Fix For: 2.0.1
>
>
> I have a simple project that has a few dependencies. One of the features of this project depends on commons-codec, so I listed that dependency as optional in the pom:
> <dependency>
> <groupId>commons-codec</groupId>
> <artifactId>commons-codec</artifactId>
> <version>1.3</version>
> <optional>true</optional>
> </dependency>
> However, once I listed the dependency as optional, the compile didn't work anymore. Using -X shows that the classpath no longer includes commons-codec. If I change to <optional>false</optional>, it compiles correctly.
> If you need the actual project that reproduces this, I can attach it.
--
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
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org