OK, I found one solution, but I'm not sure it's best one.
It was need to make list of exclusions for that artifact:
<dependency>
<groupId>p6spy</groupId>
<artifactId>p6spy</artifactId>
<version>1.3</version>
<scope>test</scope>
<exclusions>
<exclusion>
<groupId>oracle</groupId>
<artifactId>classes12</artifactId>
</exclusion>
<exclusion>
<groupId>jboss</groupId>
<artifactId>jboss</artifactId>
</exclusion>
</exclusions>
</dependency>
2005/11/10, Igor Bljahhin <[EMAIL PROTECTED]>:
> I installed tools-1.4.jar manually already, so I don't know exacly
> what artifact use this dependency.
>
> But I have the same problem again with another artifact, with "p6spy"
> (http://www.ibiblio.org/maven2/p6spy/p6spy/1.3/p6spy-1.3.pom). It
> needs a several dependencies, one of them is
> "oracle:classes12:9.2.0.5:jar". I am sure, I do not need to use any
> internal dependencies of p6spy.
>
> How can I disable artifact's dependency loading?
>
> Sincerelly,
> Igor
>
> 2005/11/10, Emmanuel Venisse <[EMAIL PROTECTED]>:
> > run mvn with -X parameter for find which artifact use this dependency or
> > search it in your
> > local repo.
> >
> > Emmanuel
> >
> > Igor Bljahhin a écrit :
> > > Hi!
> > >
> > > I got same problem. My project uses JDK 5.0, so I don't have Java 1.4
> > > on my computer at all. Recently, I added three libraries from Spring
> > > framework (core, context and beans) and now Maven tries to download
> > > tools-1.4.jar from the central repository. I think it is weird.
> > >
> > > Igor
> > >
> > > 2005/11/7, el wang <[EMAIL PROTECTED]>:
> > >
> > >>it finally works. i have to install jdk's tools.jar to
> > >>m2 repository. :-(
> > >>
> > >>--- el wang <[EMAIL PROTECTED]> wrote:
> > >>
> > >>
> > >>>thanks stephen, jsf is my fault. but m2 still ask me
> > >>>to download
> > >>>
> > >>
> > >>http://repo1.maven.org/maven2/java/tools/1.4/tools-1.4.jar
> > >>
> > >>>what is this?
> > >>>
> > >>>
> > >>>--- Stephen Coy <[EMAIL PROTECTED]> wrote:
> > >>>
> > >>>
> > >><http://maven.apache.org/guides/mini/guide-coping-with-sun-jars.html>
> > >>
> > >>>>
> > >>>>On 07/11/2005, at 10:55 PM, el wang wrote:
> > >>>>
> > >>>>
> > >>>>>in my pom.xml, add
> > >>>>
> > >>>>springframework:spring-mmock:1.2.3
> > >>>>
> > >>>>>to it's dependency. when try to test my code.
> > >>>>
> > >>>>using
> > >>>>
> > >>>>>#mvn eclispe:eclipse also got the same result.
> > >>>>>
> > >>>>>m2 told me that it can't find jsf-api-1.1.jar
> > >>>
> > >>>or
> > >>>
> > >>>>jdbc-stdext-2.0.jar
> > >>>>
> > >>>>>
> > >>>>>
> > >>>>>__________________________________
> > >>>>>Start your day with Yahoo! - Make it your home
> > >>>>
> > >>>>page!
> > >>>>
> > >>>>>http://www.yahoo.com/r/hs
> > >>>>>
> > >>>>>
> > >>>>
> > >>---------------------------------------------------------------------
> > >>
> > >>>>>To unsubscribe, e-mail:
> > >>>>
> > >>>>[EMAIL PROTECTED]
> > >>>>
> > >>>>>For additional commands, e-mail:
> > >>>>
> > >>>>[EMAIL PROTECTED]
> > >>>>
> > >>>>
> > >>>>
> > >>---------------------------------------------------------------------
> > >>
> > >>>>To unsubscribe, e-mail:
> > >>>>[EMAIL PROTECTED]
> > >>>>For additional commands, e-mail:
> > >>>>[EMAIL PROTECTED]
> > >>>>
> > >>>>
> > >>>
> > >>>
> > >>>
> > >>>
> > >>>__________________________________
> > >>>Yahoo! FareChase: Search multiple travel sites in
> > >>>one click.
> > >>>http://farechase.yahoo.com
> > >>>
> > >>>
> > >>
> > >>---------------------------------------------------------------------
> > >>
> > >>>To unsubscribe, e-mail:
> > >>>[EMAIL PROTECTED]
> > >>>For additional commands, e-mail:
> > >>>[EMAIL PROTECTED]
> > >>>
> > >>>
> > >>
> > >>
> > >>
> > >>
> > >>__________________________________
> > >>Yahoo! FareChase: Search multiple travel sites in one click.
> > >>http://farechase.yahoo.com
> > >>
> > >>---------------------------------------------------------------------
> > >>To unsubscribe, e-mail: [EMAIL PROTECTED]
> > >>For additional commands, e-mail: [EMAIL PROTECTED]
> > >>
> > >>
> > >
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > >
> > >
> > >
> > >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]