jira.codehaus.org

  • Log In Access more options
    • Online Help
    • Keyboard Shortcuts
    • About JIRA
    • JIRA Credits
    • What?s New
  • Dashboards Access more options (Alt+d)
  • Projects Access more options (Alt+p)
  • Issues Access more options (Alt+i)
Signup
Maven 1.x Eclipse Plugin
  • Maven 1.x Eclipse Plugin
  • MPECLIPSE-22

JRE classpath not complete

  • Log In
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Minor Minor
  • Resolution: Fixed
  • Affects Version/s: 1.6
  • Fix Version/s: None
  • Labels:
    None
  • Environment:
    Eclipse 2.1.2, Maven 1.0 RC2, Maven Eclipse Plugin 1.6
  • Number of attachments :
    1

Description

When I create a project inside eclipse, the built-in JRE classpath inclues: rt.jar, sunrsasign.jar, jsse.jar, jce.jar, charsets.jar, dnsns.jar, sunjce_provider.jar, ldapsec.jar, localedata.jar

This all comes from the following .classpath entry AFAIK:
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>

The only entry I get when I use maven-eclipse to generate the the .classpath, the only entry I get is rt.jar from:

<classpathentry kind="var" rootpath="JRE_SRCROOT" path="JRE_LIB" sourcepath="JRE_SRC">

Maven's java:compile seems to include the same entries that Eclipse does, so I feel that this is a bug in the eclipse plugin.

  • Options
    • Sort By Name
    • Sort By Date
    • Ascending
    • Descending
    • Download All

Attachments

  1. Text File
    cp.patch
    05/Apr/04 5:19 PM
    0.6 kB
    James A. Hillyerd

Activity

Ascending order - Click to sort in descending order
  • All
  • Comments
  • Work Log
  • History
  • Activity
Hide
Permalink
James A. Hillyerd added a comment - 05/Apr/04 5:19 PM

The attached (very trivial) patch to plugin-resources/templates/classpath.jelly fixes the problem for me, but I haven't tried it versions of eclipse other than 2.1.2.

Show
James A. Hillyerd added a comment - 05/Apr/04 5:19 PM The attached (very trivial) patch to plugin-resources/templates/classpath.jelly fixes the problem for me, but I haven't tried it versions of eclipse other than 2.1.2.
Hide
Permalink
Steve Peterson added a comment - 06/Apr/04 2:12 PM

Here is my workaround for this one. I am tired of waiting for the patch to be applied to the plugin. Add the following lines to your maven.xml.

<postGoal name="eclipse:generate-classpath">
<ant:replace file="$

{basedir}

/.classpath"
summary="yes"
token="<classpathentry kind="var" rootpath="JRE_SRCROOT" path="JRE_LIB" sourcepath="JRE_SRC">"
value="<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER">" />
</postGoal>

Show
Steve Peterson added a comment - 06/Apr/04 2:12 PM Here is my workaround for this one. I am tired of waiting for the patch to be applied to the plugin. Add the following lines to your maven.xml. <postGoal name="eclipse:generate-classpath"> <ant:replace file="$ {basedir} /.classpath" summary="yes" token="<classpathentry kind="var" rootpath="JRE_SRCROOT" path="JRE_LIB" sourcepath="JRE_SRC">" value="<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER">" /> </postGoal>
Hide
Permalink
dion gillard added a comment - 07/Apr/04 3:59 AM

The patch doesn't exist, but I've added the line to my local version of the plugin and will test it tomorrow.

If all is ok, I will proceed with the commit.

I'll also try it under 3.0M8

Show
dion gillard added a comment - 07/Apr/04 3:59 AM The patch doesn't exist, but I've added the line to my local version of the plugin and will test it tomorrow. If all is ok, I will proceed with the commit. I'll also try it under 3.0M8
Hide
Permalink
Brett Porter added a comment - 24/Apr/04 10:41 PM

any progress dion?

Show
Brett Porter added a comment - 24/Apr/04 10:41 PM any progress dion?
Hide
Permalink
dion gillard added a comment - 25/Apr/04 11:37 AM

Looks good to me.

I'll catch up, bootstrap and then commit

Show
dion gillard added a comment - 25/Apr/04 11:37 AM Looks good to me. I'll catch up, bootstrap and then commit
Hide
Permalink
dion gillard added a comment - 25/Apr/04 12:05 PM

In 1.7

Show
dion gillard added a comment - 25/Apr/04 12:05 PM In 1.7

People

  • Assignee:
    dion gillard
    Reporter:
    James A. Hillyerd
Vote (0)
Watch (1)

Dates

  • Created:
    05/Apr/04 5:10 PM
    Updated:
    25/Apr/04 12:05 PM
    Resolved:
    25/Apr/04 12:05 PM
  • Atlassian JIRA (v5.2.7#850-sha1:b2af0c8)
  • Report a problem
  • Powered by a free Atlassian JIRA open source license for Codehaus. Try JIRA - bug tracking software for your team.