Hi,

I'm looking into putting swingx in the central repo. As they do not use
maven to build, I need to come up with a good pom. They have 3 dependencies.
Two of them are only needed when running under jdk 1.5. How can I declare
this in the pom.xml?

Suppose this is a part of the pom:

<dependencies>
   <dependency>
       <groupId>swingworker</groupId>
       <artifactId>swingworker</artifactId>
       <version>1.0</version>
   </dependency>
....
</dependencies>

What can I add to have only swingworker as a transitive dependency when
building with JDK 1.5? I thought about making it <optional/> but I'm not
sure that is the best way.

regards,

Wim

-- 
Vigilog - an open source log file viewer: http://vigilog.sourceforge.net
Blog: http://www.jroller.com/page/Fester

Reply via email to