You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Doug Donohoe <do...@donohoe.info> on 2008/02/05 17:44:35 UTC

javax.mail and javax.activation in Java 6

Hi Maven Community:

I have added this dependency in my POM:

  <dependency>
    <groupId>javax.mail</groupId>
    <artifactId>mail</artifactId>
    <version>1.4.1</version>
  </dependency>

Which is retrieved from java.net using this POM definition:

  <repositories>
    <repository>
      <id>java.net</id>
      <url>http://download.java.net/maven/1</url>
      <layout>legacy</layout>
    </repository>
  </repositories>

The POM for javax.mail declares a dependency on the Java activation 
framework.  However, I am using Java 6 (1.6.0_02), which already 
includes the activation framework.

My question:  Is there a way in maven to conditionally define a 
dependency based on the JDK you are using?

If there is, what is the best way for me to use such a mechanism.  
Ideally, the POM at java.net would be updated, but assuming I can't 
figure out how to get them to update that, how do I override there POM?

Thanks,

-Doug Donohoe

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org