[
https://issues.apache.org/jira/browse/MECLIPSE-565?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Michael Osipov closed MECLIPSE-565.
-----------------------------------
Resolution: Auto Closed
This issue has been auto closed because it has been inactive for a long period
of time. If you think this issue still applies, retest your problem with the
most recent version of Maven and the affected component, reopen and post your
results.
> Classpath entries to be marked as NOT exported
> ----------------------------------------------
>
> Key: MECLIPSE-565
> URL: https://issues.apache.org/jira/browse/MECLIPSE-565
> Project: Maven Eclipse Plugin
> Issue Type: Improvement
> Components: Core : Dependencies resolution and build path
> (.classpath)
> Affects Versions: 2.6
> Reporter: Jim Sellers
>
> 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>
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)