You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by ch...@gmail.com on 2005/10/17 23:53:33 UTC
javax dependencies for m2
Is there a way to trun off the dependency checking of maven only for these
javax dependencies? Are these really required when I am happy with my
primary jars like hibernate and spring? I understand that the remote repos.
cannot have the sun jars because of license agreements and hence m2 cant
download them, but this is really stopping my maven progress.
-Kris
Re: javax dependencies for m2
Posted by Carlos Sanchez <ca...@apache.org>.
Yes, it can be improved using the new <optional> tag. You still may
have to use exclusions in some cases thoguh.
On 10/17/05, Wendy Smoak <ws...@apache.org> wrote:
> From: "Carlos Sanchez" <ca...@apache.org>
>
> > Those files are needed to build your application. If you think the pom
> > is wrong and they are actually not needed you can file an issue at
> > http://jira.codehaus.org/browse/MEV, so you don't need any hack in
> > your poms.
>
> What about a project like Spring, which will bring in a transitive
> dependency on JTA, but if you're not using transactions, you don't really
> need it? Is the Spring pom incorrect?
>
> Thanks,
> --
> Wendy Smoak
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: javax dependencies for m2
Posted by Wendy Smoak <ws...@apache.org>.
From: "Carlos Sanchez" <ca...@apache.org>
> Those files are needed to build your application. If you think the pom
> is wrong and they are actually not needed you can file an issue at
> http://jira.codehaus.org/browse/MEV, so you don't need any hack in
> your poms.
What about a project like Spring, which will bring in a transitive
dependency on JTA, but if you're not using transactions, you don't really
need it? Is the Spring pom incorrect?
Thanks,
--
Wendy Smoak
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: javax dependencies for m2
Posted by Carlos Sanchez <ca...@apache.org>.
Those files are needed to build your application. If you think the pom
is wrong and they are actually not needed you can file an issue at
http://jira.codehaus.org/browse/MEV, so you don't need any hack in
your poms.
On 10/17/05, Wendy Smoak <ws...@apache.org> wrote:
> From: <ch...@gmail.com>
> > Is there a way to trun off the dependency checking of maven only for these
> > javax dependencies?
>
> I don't know if it's the official "right answer" but you can exclude
> dependencies... I'm doing it to get rid of the wrong artifact names
> (servletapi vs. servlet-api) until the project poms are fixed:
>
> <dependency>
> <groupId>javax.servlet</groupId>
> <artifactId>servlet-api</artifactId>
> <version>2.4</version>
> <exclusions>
> <exclusion>
> <groupId>servletapi</groupId>
> <artifactId>servletapi</artifactId>
> </exclusion>
> </exclusions>
> </dependency>
>
> (And because it took me a while to figure it out, if you use the -X switch
> on the command line, m2 will show you where the transitive dependencies are
> coming from.)
>
> --
> Wendy Smoak
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: javax dependencies for m2
Posted by Wendy Smoak <ws...@apache.org>.
From: <ch...@gmail.com>
> Is there a way to trun off the dependency checking of maven only for these
> javax dependencies?
I don't know if it's the official "right answer" but you can exclude
dependencies... I'm doing it to get rid of the wrong artifact names
(servletapi vs. servlet-api) until the project poms are fixed:
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>servlet-api</artifactId>
<version>2.4</version>
<exclusions>
<exclusion>
<groupId>servletapi</groupId>
<artifactId>servletapi</artifactId>
</exclusion>
</exclusions>
</dependency>
(And because it took me a while to figure it out, if you use the -X switch
on the command line, m2 will show you where the transitive dependencies are
coming from.)
--
Wendy Smoak
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org