I used the maven assembly plugin to pull in the correct Jar. I have
all 3 jars (linux, Mac and Windows) as "provided" so that they are
there for compilation but they don't get automatically included in the
release. You can also have a profile to trigger on the correct current
OS, but that will not help you for releases, as you may want to
package a windows build on Linux.

-Andrew

On Tue, Aug 26, 2008 at 1:23 PM, Carfield Yim <[EMAIL PROTECTED]> wrote:
>
> Actually what I like to do is to tell maven to use
> System.getProperty("user.os") and select the right dependence, is that
> possible?
>
>
> Carfield Yim wrote:
>>
>> I see... thanks, now I can resolve and download the correct swt library.
>> However, we would like to make the test running with maven correctly for
>> Windows and Linux. How can I tell maven to use correct platform of
>> library?
>>
>>
>> lukewpatterson wrote:
>>>
>>> These are in the repo
>>>
>>> <groupId>org.eclipse.swt.gtk.linux</groupId>
>>> <artifactId>x86_64</artifactId>
>>> [1]
>>>
>>> <groupId>org.eclipse.swt.gtk.linux</groupId>
>>> <artifactId>x86</artifactId>
>>> [2]
>>>
>>> The (groupId/artifactId)s are different than what you had listed.
>>>
>>>
>>>
>>> [1] -
>>> http://repo1.maven.org/maven2/org/eclipse/swt/gtk/linux/x86_64/3.3.0-v3346/
>>> [2] -
>>> http://repo1.maven.org/maven2/org/eclipse/swt/gtk/linux/x86/3.3.0-v3346/
>>>
>>
>>
>
> --
> View this message in context: 
> http://www.nabble.com/Problem-of-resolving-eclipse-swt-linux-library-tp19103219p19168597.html
> Sent from the Maven - Users mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to