[ http://jira.codehaus.org/browse/MNG-1384?page=all ]
Edwin Punzalan updated MNG-1384: -------------------------------- Attachment: MNG-1384-maven-artifact.patch > optional dependencies not resolved while compiling from a master project > ------------------------------------------------------------------------ > > Key: MNG-1384 > URL: http://jira.codehaus.org/browse/MNG-1384 > Project: Maven 2 > Type: Bug > Components: maven-core > Versions: 2.0 > Reporter: fabrizio giustina > Assignee: Edwin Punzalan > Priority: Critical > Fix For: 2.0.1 > Attachments: MNG-1384-maven-artifact.patch > > > project-A has a dependency defined as optional but required to compile. > Running "mvn install" directly on project-A works. > If project-A is referenced as a module in master-project, running "mvn > install" from master-project will result in a build failure, since direct > optional dependencies will not be included in project-A compile classpath. > A related issue (currently fixed by manually resolving artifacts) is that > optional direct dependencies were not included in the classpath file > generated by the m2 eclipse plugin (direct optional dependencies are missing > from project.getTestArtifacts() with @requiresDependencyResolution test) > Shouldn't optional dependencies only be excluded from referenced projects or > am I missing something? -- 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]