You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Emmanuel Hugonnet <eh...@gmail.com> on 2007/11/19 15:39:31 UTC

Classifier and dependencies

Hi,
I have a project that I need to build for different JDKs; Because we use
JAXB on jdk1.4.2, 5 and 6I need to specify different dependencies for the
JAXB version from 1.0.6 to 2.0.5. So I have different profiles for each jdk
version target.
I have set a classifier so that I get 3 different articfacts. My problem is
: I have only on pom as a result instead of 3 (one per artifact) . this
causes my dependencies resolving to go wrong if the installed/deployed pom
doesn't match the artifact I am using. How could I have the classifier set
on the pom when I am installing or deploying ? How should I proceed?
Thanks,
Emmanuel

Re: Classifier and dependencies

Posted by Emmanuel Hugonnet <eh...@gmail.com>.
Currently, I have set my version tag to :
<version>${parent.version}-${classifier}</version>

and I set the classifier property in my profiles but this doesn't feel good.

2007/11/19, Emmanuel Hugonnet <eh...@gmail.com>:
>
> Hi,
> I have a project that I need to build for different JDKs; Because we use
> JAXB on jdk1.4.2, 5 and 6I need to specify different dependencies for the
> JAXB version from 1.0.6 to 2.0.5. So I have different profiles for each
> jdk version target.
> I have set a classifier so that I get 3 different articfacts. My problem
> is : I have only on pom as a result instead of 3 (one per artifact) . this
> causes my dependencies resolving to go wrong if the installed/deployed pom
> doesn't match the artifact I am using. How could I have the classifier set
> on the pom when I am installing or deploying ? How should I proceed?
> Thanks,
> Emmanuel
>