I asked about this last year but never got a good resolution.

I am trying to use an environment variable in my pom, for a jar using a 
systemPath

I tried:
    <dependency>
      <groupId>com.serialio</groupId>
      <artifactId>serialio</artifactId>
      <version>7.5</version>
        <scope>system</scope>
        <systemPath>
                {env.MAVEN_WORKSPACE}/java.3rdParty/jars/Serialio-7.5.jar 
<!--                c:/workspace/java.3rdParty/jars/Serialio-7.5.jar  -->
        </systemPath>
    </dependency>

The result is the error:

system-scoped dependency must specify an absolute path systemPath.

Looking this error up, I see:

The path must be absolute, so it is recommended to use a property to specify 
the machine-specific path (more on properties  below), such as ${java.home}/lib 
.

This environment variable is set in my bash profile before running eclipse:

[EMAIL PROTECTED]:~$ echo $MAVEN_WORKSPACE
/home/dingfeldera/workspace
[EMAIL PROTECTED]:~$ 

I also tried it as   {MAVEN_WORKSPACE} and also tried making a java variable in 
eclipse.
Neither helped.

Has anyone gotten variables to work in systemPath jars?

+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Please consider the environment before printing this email

WARNING: This email and any attachments may be confidential and/or privileged.
They are intended for the addressee only and are not to be read, used, copied or
disseminated by anyone receiving them in error. If you are not the intended 
recipient,
please notify the sender by return email and delete this message and any 
attachments.

The views expressed in this email are those of the sender and do not 
necessarily reflect
the official views of SirTrack. see   http://www.sirtrack.com
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to