Details
-
Type:
Improvement
-
Status:
Closed
-
Priority:
Major
-
Resolution: Duplicate
-
Affects Version/s: 2.3
-
Fix Version/s: 2.5
-
Labels:None
-
Patch Submitted:Yes
-
Number of attachments :
Description
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 );
Issue Links
| This issue is related to: | ||||
| MECLIPSE-344 | connecting existing workspace artifact-projects |
|
|
|
the
MECLIPSE-344patch should solves this for the complete workspace. could you check if this is true?MECLIPSE-344patch should solves this for the complete workspace. could you check if this is true?