Hi All,

Sorry, wrong post. It is not caused by the pom whic caused by my code issue.

Regards,
Su Heng

On 13 August 2011 00:59, heng su <[email protected]> wrote:

> Hi All,
>
>   Recently, I plan to use mave to manage a swt project. However, swt have
> multiple jars for different platforms and same package structure. So I just
> install those jars to my local repository.
> And write a POM with fragment:
>
>         <dependency>
>             <groupId>org.eclipse</groupId>
>             <artifactId>swt-gtk-linux-x86</artifactId>
>             <version>3.7</version>
>             <scope>compile</scope>
>         </dependency>
>         <dependency>
>             <groupId>org.eclipse</groupId>
>             <artifactId>swt-gtk-linux-x86_64</artifactId>
>             <version>3.7</version>
>             <scope>runtime</scope>
>         </dependency>
>         <dependency>
>             <groupId>org.eclipse</groupId>
>             <artifactId>swt-win32-windows-x86</artifactId>
>             <version>3.7</version>
>             <scope>runtime</scope>
>         </dependency>
>         <dependency>
>             <groupId>org.eclipse</groupId>
>             <artifactId>swt-win32-windows-x86_64</artifactId>
>             <version>3.7</version>
>             <scope>runtime</scope>
>         </dependency>
>
> I hope maven will use the jar which dependency scope is "compile" to
> compile my source code.
> However, It won't and give me error. If I remove those "runtime" scope
> dependencies. It works properly.
>
>
> Can anybody give me a hint?
>
>
> Thanks & Best Regards,
> Su Heng
>
>


-- 
Thanks & Best Regards,
Su Heng

Reply via email to