Good day to you, Joerg,

1. Try help:active-profiles to see which profiles are running to help you in
your debuging
2. Try installing / deploying with packaging set to zip.

Cheers,
Franz


Joerg Hohwiller wrote:
> 
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> Hi there,
> 
> I am using SWT in my maven project. Now I have two major problems:
> 
> 1. There are different JARs required depending on the OS:
> swt-win32 for Windows and swt-linux-gtk for linux, etc.
> Now I tried to definie these using profiles:
> 
> <profiles>
>   <profile>
>     <id>linux</id>
>     <activation>
>       <os>
>         <family>Linux</family>
>       </os>
>     </activation>
>     <dependencies>
>       <dependency>
>         <groupId>swt</groupId>
>         <artifactId>swt-linux-gtk</artifactId>
>         <version>3.2.1</version>
>         <scope>compile</scope>
>       </dependency>
>     </dependencies>
>   </profile>
>   <profile>
>     <id>windows</id>
>     <activation>
>       <os>
>         <family>Windows</family>
>       </os>
>     </activation>
>     <dependencies>
>       <dependency>
>         <groupId>swt</groupId>
>         <artifactId>swt-win32</artifactId>
>         <version>3.2.1</version>
>         <scope>compile</scope>
>       </dependency>
>     </dependencies>
>   </profile>
> </profiles>
> 
> when I do "mvn eclipse:eclipse" then both win32 and linux-gtk JARs are
> added to
> the classpath. Is this a bug or did I get something wrong?
> 
> 2. SWT also requires native libraries (dll/so files). Is there a proper
> way how
> to put native libs into a repository and define them as dependency?
> 
> Thank you very much...
> Regards
>   Jörg
> 
> 
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.5 (GNU/Linux)
> Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
> 
> iD8DBQFFbf7GmPuec2Dcv/8RAo/0AJ9+ccQZPUvDdPwStNnX8SoMqqlErgCfVQdA
> 7zBeKSLQKMsjWFRvu0AxlvQ=
> =JN8X
> -----END PGP SIGNATURE-----
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/m2-profiles%3A-pom-with-os-specific-%28and-native%29-dependencies-tf2727975s177.html#a7623798
Sent from the Maven - Users mailing list archive at Nabble.com.


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

Reply via email to