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: maven-core Versions: 2.0 Reporter: David Jackman 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]