Please see further http://jira.codehaus.org/browse/MNGECLIPSE-581
In my case, I'm trying to do the following:
<profile>
<id>jdk16</id>
<activation>
<jdk>1.6</jdk>
</activation>
<dependencies>
<dependency>
<!-- in order to access
com.sun.xml.internal.bind.marshaller.NamespacePrefixMapper -->
<groupId>com.sun.xml.bind</groupId>
<artifactId>jaxb-impl</artifactId>
<version>2.0</version>
<scope>system</scope>
<systemPath>
/usr/lib/jvm/java-6-sun/jre/lib/rt.jar
</systemPath>
<!--
Note for Windows users: Maven won't
find rt.jar if systemPath
contains a space (eg "Program Files").
Either copy rt.jar
to a path that doesn't contain spaces,
or use:
<systemPath>${env.JAVA_HOME}/jre/lib/rt.jar</systemPath>
which works on the command line, but
not in m2eclipse 0.9.x.
See
http://jira.codehaus.org/browse/MNGECLIPSE-581
<systemPath>${java.home}/lib/rt.jar</systemPath>
broken (mvn 2.0.9) even though
java.home is supposed to point
to JRE_HOME:
-->
</dependency>
</dependencies>
</profile>
cheers
Jason
On Fri, Jun 6, 2008 at 1:14 PM, Timothy Reilly <[EMAIL PROTECTED]> wrote:
>> Andy Dingfelder wrote:
> <snip>
>>
>> I also tried it as {MAVEN_WORKSPACE} and also tried making
>> a java variable in eclipse.
>> Neither helped.
>>
>
> Andy, I'm guessing you've already been asked... why not just install the
> third party library in your local repository and make life easier.
> System scope is discouraged from what I understand.
>
> That said, this works for me on windows and roughly translated to bash:
>
> $>eclipse [commandoptions] -vmargs
> -Denv.MAVEN_WORKSPACE=$MAVEN_WORKSPACE
>
> Once eclipse launches click Help->About->Configuration Details *and
> verify you have an entry in the list of java properties matching
> env.MAVEN_WORKSPACE=/home/dingfeldera/workspace
>
> Also you do need the $ in
>
> <systemPath>${env.MAVEN_WORKSPACE}//java.3rdParty/jars/Serialio-7.5.jar<
> /systemPath>
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe from this list, please visit:
>
> http://xircles.codehaus.org/manage_email
>
>
>
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email