Details
-
Type:
New Feature
-
Status:
Closed
-
Priority:
Major
-
Resolution: Duplicate
-
Affects Version/s: 2.2
-
Fix Version/s: 2.5
-
Component/s: Core : Multi-projects
-
Labels:None
-
Number of attachments :
Description
The issue is that I have a large project with many interdependent submodules. One of the submodules uses XML Beans to generate a set of objects from an XML Schema. This works perfectly, but Eclipse has a problem with the class names used in XMLBeans, and I have to close that particular project for Eclipse not to complain. But, if I close that project, all of the projects that depend on it directly (through a referenced project), then complain that they are missing a referenced project.
The solution is to relate the project via the local repository (M2_REPO/...) not via a project reference, but in EclipseClasspathWriter, all projects available via the reactor are treated as referenced projects:
if ( dep.isReferencedProject() && !config.isPde() )
{ path = "/" + dep.getArtifactId(); //$NON-NLS-1$ kind = ATTR_SRC; }One solution would be to not use project references, but the problem only happens with specific projects, and I want to be able to selectively mark dependencies as not being referenced.
Something as simple as, this:
<config>
<localReference>
<groupId>blah</groupId>
<artifactId>blah</artifactId>
</localReference>
</config>
Where the dependency identified by that groupId and artifactId would be treated not as a direct project reference but as a link to the local repository.
Does that make any sense?
Issue Links
| This issue duplicates: | ||||
| MECLIPSE-80 | Be able to exclude specific projects from having Eclipse .project/.classpath generated for them |
|
|
|
| This issue is related to: | ||||
| MECLIPSE-344 | connecting existing workspace artifact-projects |
|
|
|
Yup, makes perfect sense.
But this is such a rare case (you should really try to fix that classname problem), that you should use the following solution:
mvn eclipse:eclipse -r -Dmaven.reactor.excludes=buggy/project/pom.xml