Andy Dingfelder wrote:
 I have a pom that works on windows, but does not work if I use it on linux 
because the paths are different, such as:

<dependency>
        <groupId>com.toedter</groupId>
        <artifactId>jcalendar</artifactId>
        <version>1.2.2</version>
        <scope>system</scope>
        <systemPath>
                C:/projects/java.3rdParty/jars/jcalendar-1.3.2.jar
        </systemPath>
</dependency>

is there any way to use an environment variable for the start of the path or 
some other solution?

on linux the path would be
<systemPath>
        /home/myname/workspace/java.3rdParty/jars/jcalendar-1.3.2.jar
</systemPath>

Andy,
check out what it says on the maven website:

systemPath : is used only if the the dependency scope is system . Otherwise, the build will fail if this element is set. 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 . ........


http://maven.apache.org/pom.html#Properties






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

   http://xircles.codehaus.org/manage_email

Reply via email to