[
http://jira.codehaus.org/browse/MECLIPSE-256?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Arnaud Heritier updated MECLIPSE-256:
-------------------------------------
Fix Version/s: (was: 2.5)
> [PATCH]Flat Maven2 Multiproject Structures and Classpath Resolution as
> Projects (not binaries)
> -----------------------------------------------------------------------------------------------
>
> Key: MECLIPSE-256
> URL: http://jira.codehaus.org/browse/MECLIPSE-256
> Project: Maven 2.x Eclipse Plugin
> Issue Type: Improvement
> Components: dependency resolution, multiproject
> Affects Versions: 2.3
> Reporter: Kevin Ross
>
> In a project structure where 'root' projects are flat/siblings with child
> projects or modules, we need to resolve actual projects on the local system
> as eclipse project dependencies for ease of debugging, hot deployment etc.
> The following code is a hack, perhaps should be an option to be turned
> on/off, but PLEASE include it. It is certainly doubtful to hurt...
> In AbstractIdeSupportMojo.doDependencyResolution() towards the end of the
> method and before the instantiation of the IdeDependency object please:
> <<<<add this>>>>
> if (new File( project.getBasedir(), "../" +
> artifact.getArtifactId() ).exists()) {
> getLog().info( "Adding project dependency: "
> + artifact.getArtifactId() );
> isReferencedProject = true;
> }
> <<<</add this>>>>
> // for reference:
> IdeDependency dep = new IdeDependency(
> artifact.getGroupId(), artifact.getArtifactId(), artifact.getVersion(),
> isReferencedProject, Artifact.SCOPE_TEST.equals( artifact.getScope() ),
> Artifact.SCOPE_SYSTEM.equals( artifact.getScope() ),
> Artifact.SCOPE_PROVIDED.equals( artifact.getScope() ),
> artifact.getArtifactHandler().isAddedToClasspath(), artifact
> .getFile(), artifact.getType(),
> isOsgiBundle, osgiSymbolicName, dependencyDepth );
--
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