hallo
this may be better posted in the maven users group rather than in here. more
attention for these things there.
my first thought is to set some properties in the settings.xml, similar to
${basedir} some ${syspath}
so every maven installation must be configured to set such a property in
settings.xml
plan b could be a profile that you activate per operating system. so the
profile could go into the pom and define the path property.
both should work in the end :)
regards
werner
-----Original Message-----
From: Andy Dingfelder [mailto:[EMAIL PROTECTED]
Sent: Tuesday, August 28, 2007 7:31 AM
To: [email protected]
Subject: [m2eclipse-user] crossplatform poms
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>
thoughts?
---------------------------------------------------------------------
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