I'm not such a fan of classifiers, I'd do a profile triggered by jdk version

<dependencies>
<!-- deps required in all jdk versions -->
</dependencies>
<profiles>
  <profile>
    <activation>
      <jdk>1.4</jdk>
    </activation>
    <!-- add here the dependencies for 1.4 -->
  </profile>
  <profile>
    <activation>
      <jdk>1.3</jdk>
    </activation>
    <!-- add here the dependencies for 1.3 + 1.4 -->
  </profile>
</profiles>

1.4 and 1.5 support are important, 1.3 depends on what level of detail
you want to go, as you said, maven runs on 1.4+

On 3/17/06, Wayne Fay <[EMAIL PROTECTED]> wrote:
> I'm not a Maven dev but felt like responding. ;-)
>
> For the MX4J issue... I would build two bundles... One with target
> JDK1.4, include the MX4J dependency, and use no classifier... The
> other with target JDK1.5 and the classifier jdk5.
>
> This would require people to know to use <classifier>jdk5</classifier>
> if they are using JDK5 and do not want to use MX4J, but it would mean
> the "default" build of your project uses JDK4 and pulls in MX4J. So
> the default build won't break for either JDK4 or JDK5 users, which I
> think is a good thing.
>
> This seems to be the most reasonable way to address this issue, to me.
> Perhaps someone else will respond too. ;-)
>
> Wayne
>
>
> On 3/16/06, Grzegorz Słowikowski <[EMAIL PROTECTED]> wrote:
> > Hi all
> >
> > I have already prepared all poms for Tomcat 5.5.15 artifacts.
> > I have some questions about dependencies because some things
> > can be achieved in more then one way and I don't know
> > which way is the best. I want to discuss a little with maven team
> > before I give them to Geronimo team.
> > Where should I upload them, which project on JIRA?
> > Does anybody want to discuss about it at all?
> > For example:
> > How should I add "xml-apis" and "mx4j"?
> > All classes from "xml-apis" exist in JDK 1.4, and 1.5. They are not
> > present in JDK 1.3, but Maven does not work with 1.3, so this is
> > not a problem (I think). So shoul I add "xml-apis" dependencies
> > or not?
> > MX4J is an equivalent for Sun's JMX. JMX exists in JDK 1.5, and does
> > not exist in JDK 1.4. Shoud MX4J dependency be added in a profile
> > triggered by <jdk>1.4</jdk> (I don't know if something like "less then 1.5" 
> > works)
> >
> > Greetings
> >
> > Greg
> >
> >
>


--
I could give you my word as a Spaniard.
No good. I've known too many Spaniards.
                             -- The Princess Bride

Reply via email to