You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Dzmitry Harachka (JIRA)" <ji...@codehaus.org> on 2010/09/07 11:36:46 UTC

[jira] Commented: (MECLIPSE-230) Classpath entries to be marked exported

    [ http://jira.codehaus.org/browse/MECLIPSE-230?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=234412#action_234412 ] 

Dzmitry Harachka commented on MECLIPSE-230:
-------------------------------------------

Hi, guys!

Seems to be the problem with exported="true" is till here.

I use maven eclipse plugin v.2.8.

I have the following environment and situation:
project A uses library X
project B uses project A and library X

as results I have the following classpath files:
project A:
	<classpathentry kind="var" path="M2_REPO/castor/castor.xml/1.1.2.1/castor.xml-1.1.2.1.jar"/>

project B:
  <classpathentry kind="src" path="/project A"/>

And I have compilation errors in eclipse for project B. 

When I changed classpath of project A manually
	<classpathentry exported="true" kind="var" path="M2_REPO/castor/castor.xml/1.1.2.1/castor.xml-1.1.2.1.jar"/>

all works nice.

Seems to be right approach is to have a setting inside pom dependency to say what are you going to export.

Please would you update me if this would be included into next releases or may be it is already included and I am not informed.

Anyway thanks for great plugin!

your Dzmitry 

> Classpath entries to be marked exported
> ---------------------------------------
>
>                 Key: MECLIPSE-230
>                 URL: http://jira.codehaus.org/browse/MECLIPSE-230
>             Project: Maven 2.x Eclipse Plugin
>          Issue Type: Improvement
>          Components: Core : Dependencies resolution and build path (.classpath)
>    Affects Versions: 2.1
>            Reporter: Vlad Skarzhevskyy
>            Assignee: fabrizio giustina
>         Attachments: exported_classpath_2.5.1.patch, exported_classpath_trunk.patch
>
>
> Generated .classpath entries of kind "var" need to be marked exported by default so that referenced projects have visibility to them.  Or provide an option to specifiy that that entries should be exported.
> Example: <classpathentry kind="var" path="M2_REPO/mx4j/mx4j/3.0.1/mx4j-3.0.1.jar"/>
> should me made...
> <classpathentry exported="true" kind="var" path="M2_REPO/mx4j/mx4j/3.0.1/mx4j-3.0.1.jar"/>

-- 
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