Details
-
Type:
Improvement
-
Status:
Open
-
Priority:
Major
-
Resolution: Unresolved
-
Affects Version/s: 2.6
-
Fix Version/s: None
-
Labels:None
-
Number of attachments :
Description
This is the other side of the MECLIPSE-230.
In my war project, for all the jar's that are provided, test, or otherwise NOT to be exported, eclipse complains with a warning:
"Classpath entry M2_REPO/junit/junit/4.4/junit-4.4.jar will not be exported or published. Runtime ClassNotFoundExceptions may result."
The work around is the "quick fix", but that means that you have to do this every time you run eclipse:eclipse.
The fix would be to add that it is a non-dependency:
<classpathentry kind="var" path="M2_REPO/junit/junit/4.4/junit-4.4.jar" sourcepath="M2_REPO/junit/junit/4.4/junit-4.4-sources.jar">
<attributes>
<attribute name="org.eclipse.jst.component.nondependency" value=""/>
</attributes>
</classpathentry>
Issue Links
- is related to
-
MECLIPSE-230
Classpath entries to be marked exported
-
Thus if a dependency is exported (scope=runtime)
<classpathentry kind="var" path="M2_REPO/......jar" sourcepath="M2_REPO/.........-sources.jar" exported="true"/>and for a non exported entry (scope<>runtime):
Right ?
exported="false" is optional I suppose (it's the default value)
With which version of eclipse does it work ?