You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Jochen Wiedmann <jo...@gmail.com> on 2005/11/15 22:43:40 UTC

m2: how to add jsse.jar to maven-eclipse-plugin's classpath?

Hi,

the maven-eclipse-plugin typically generates the following entry in the 
.classpath file:

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

Eclipse (3.2M3) understands, that it has to add the rt.jar file to the 
classpath.

The problem is, that the JRE has more jar files than just rt.jar: In 
particular, jsse.jar and jce.jar are separate files. IMO, these should 
be added to the classpath too. This can be done with an entry like

   <classpathentry kind="con"
       path="org.eclipse.jdt.launching.JRE_CONTAINER"/>

Obviously, one can set the maven-eclipse-plugin property 
classpathContainers to add the org.eclipse.jdt.launching.JRE_CONTAINER. 
That works fine, and the complete JRE jar files are now in your classpath.

But wait: Eclipse refuses the classpath now, because rt.jar is 
configured twice!

Am I doing something wrong? IMO, the maven-eclipse-plugin should either

   a) Offer a property that replaces the "var" definition of the JRE with
      the "con" definition. (Or even better, do this by default.)
   b) Remove the "var" definition, if the JRE_CONTAINER is present.

Is this a bug? Any workarounds?


Regards,

Jochen


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


Re: m2: how to add jsse.jar to maven-eclipse-plugin's classpath?

Posted by Brett Porter <br...@gmail.com>.
Sounds like a good improvement to put in JIRA.

- Brett

On 11/16/05, Jochen Wiedmann <jo...@gmail.com> wrote:
>
> Hi,
>
> the maven-eclipse-plugin typically generates the following entry in the
> .classpath file:
>
>    <classpathentry kind="var" rootpath="JRE_SRCROOT"
>        path="JRE_LIB" sourcepath="JRE_SRC"/>
>
> Eclipse (3.2M3) understands, that it has to add the rt.jar file to the
> classpath.
>
> The problem is, that the JRE has more jar files than just rt.jar: In
> particular, jsse.jar and jce.jar are separate files. IMO, these should
> be added to the classpath too. This can be done with an entry like
>
>    <classpathentry kind="con"
>        path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
>
> Obviously, one can set the maven-eclipse-plugin property
> classpathContainers to add the org.eclipse.jdt.launching.JRE_CONTAINER.
> That works fine, and the complete JRE jar files are now in your classpath.
>
> But wait: Eclipse refuses the classpath now, because rt.jar is
> configured twice!
>
> Am I doing something wrong? IMO, the maven-eclipse-plugin should either
>
>    a) Offer a property that replaces the "var" definition of the JRE with
>       the "con" definition. (Or even better, do this by default.)
>    b) Remove the "var" definition, if the JRE_CONTAINER is present.
>
> Is this a bug? Any workarounds?
>
>
> Regards,
>
> Jochen
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>

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