You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Jim Sellers (JIRA)" <ji...@codehaus.org> on 2009/05/14 23:29:45 UTC

[jira] Created: (MECLIPSE-565) Classpath entries to be marked as NOT exported

Classpath entries to be marked as NOT exported
----------------------------------------------

                 Key: MECLIPSE-565
                 URL: http://jira.codehaus.org/browse/MECLIPSE-565
             Project: Maven 2.x 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 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

        

[jira] Commented: (MECLIPSE-565) Classpath entries to be marked as NOT exported

Posted by "Jim Sellers (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MECLIPSE-565?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=177135#action_177135 ] 

Jim Sellers commented on MECLIPSE-565:
--------------------------------------

Found a workaround:
"As a workaround these warnings can be filtered out by removing selection from
"Classpath Dependency Validator Message" in Problems view filter configuration."
http://code.google.com/p/q4e/issues/detail?id=162

> Classpath entries to be marked as NOT exported
> ----------------------------------------------
>
>                 Key: MECLIPSE-565
>                 URL: http://jira.codehaus.org/browse/MECLIPSE-565
>             Project: Maven 2.x 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 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

        

[jira] Commented: (MECLIPSE-565) Classpath entries to be marked as NOT exported

Posted by "Arnaud Heritier (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MECLIPSE-565?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=176453#action_176453 ] 

Arnaud Heritier commented on MECLIPSE-565:
------------------------------------------

Thus if a dependency is exported (scope=runtime)
{code:xml}
<classpathentry kind="var" path="M2_REPO/......jar" sourcepath="M2_REPO/.........-sources.jar" exported="true"/>
{code}
and for a non exported entry (scope<>runtime):
{code:xml}
<classpathentry kind="var" path="M2_REPO/........jar" sourcepath="M2_REPO/....-sources.jar" exported="false">
<attributes>
<attribute name="org.eclipse.jst.component.nondependency" value=""/>
</attributes>
</classpathentry>
{code}
Right ?
exported="false" is optional I suppose (it's the default value)
With which version of eclipse does it work ?



> Classpath entries to be marked as NOT exported
> ----------------------------------------------
>
>                 Key: MECLIPSE-565
>                 URL: http://jira.codehaus.org/browse/MECLIPSE-565
>             Project: Maven 2.x 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 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

        

[jira] Commented: (MECLIPSE-565) Classpath entries to be marked as NOT exported

Posted by "Jim Sellers (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MECLIPSE-565?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=176461#action_176461 ] 

Jim Sellers commented on MECLIPSE-565:
--------------------------------------

I'm using eclipse 3.4.2.

Actually the exported=[true|false] doesn't show up.  For the ones which are exported, they show up as follows.

{noformat}
<classpathentry kind="var" path="M2_REPO/........jar" sourcepath="M2_REPO/........-sources.jar">
		<attributes>
			<attribute name="org.eclipse.jst.component.dependency" value="/WEB-INF/lib"/>
		</attributes>
</classpathentry>
{noformat}

I have not actually dug through the code to check exactly where this is or how it gets from the export to being an attribute.

> Classpath entries to be marked as NOT exported
> ----------------------------------------------
>
>                 Key: MECLIPSE-565
>                 URL: http://jira.codehaus.org/browse/MECLIPSE-565
>             Project: Maven 2.x 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 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