You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by "Brett Porter (JIRA)" <ji...@codehaus.org> on 2005/10/23 22:17:11 UTC

[jira] Closed: (MNG-937) Incorrect JRE classpath entry in eclipse .classpath file

     [ http://jira.codehaus.org/browse/MNG-937?page=all ]
     
Brett Porter closed MNG-937:
----------------------------

     Resolution: Fixed
    Fix Version: 2.0.1

applied

> Incorrect JRE classpath entry in eclipse .classpath file
> --------------------------------------------------------
>
>          Key: MNG-937
>          URL: http://jira.codehaus.org/browse/MNG-937
>      Project: Maven 2
>         Type: Bug
>   Components: maven-eclipse-plugin
>     Versions: 2.0 (RC)
>  Environment: WinXP, JDK 1.5
>     Reporter: Oddmar Sandvik
>     Assignee: Johnny R. Ruiz III
>      Fix For: 2.0.1
>  Attachments: MNG-937-maven-eclipse-plugin.patch
>
> Original Estimate: 3 hours
>         Remaining: 3 hours
>
> This is an issue that was pointed out on this mailinglist in 2003 on maven 1.0 and eclipse:
> When I run "maven eclipse", it generates the .classpath file with the
> following entry:
>  
>    <classpathentry kind="var" rootpath="JRE_SRCROOT" path="JRE_LIB"
>    sourcepath="JRE_SRC"/>
>  
> whereas when I create a project in Eclipse, a reference to JRE_LIB is
> written as:
>  
>     <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
>  
> With the former setting, your classpath only includes rt.jar, and
> nothing else. As a result, you may fail to import some classes like
> javax.net.*, which sits in a different jar file.
> This seems to be sorted out in maven 1.  However, "m2 eclipse:eclipse" has the same problem today.  I must edit the .classpath file manually after generation - but this is of course overwritten whenever dependencies change and is not a tenable option.

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


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org