You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by "John Casey (JIRA)" <ji...@codehaus.org> on 2005/11/23 23:27:06 UTC

[jira] Closed: (MNG-1384) optional dependencies not resolved while compiling from a master project

     [ http://jira.codehaus.org/browse/MNG-1384?page=all ]
     
John Casey closed MNG-1384:
---------------------------

    Resolution: Fixed

Fixed this while addressing another issue.



> 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: Plugins and Lifecycle
>     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: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org