You probably need
<exclusion>
<artifactId>jdbc</artifactId>
<groupId>jdbc</groupId>
</exclusion>
in commons-dbcp.
I've filed an issue http://jira.codehaus.org/browse/MNG-1286
Regards
On 10/22/05, Matt Raible <[EMAIL PROTECTED]> wrote:
> Now I'm having the same problem with OJB - and I don't see jdbc-stdext
> specified anywhere in the POM.
>
> Here's what I've specified for OJB dependencies so far:
>
> <dependency>
> <artifactId>db-ojb</artifactId>
> <groupId>ojb</groupId>
> <version>1.0.3</version>
> </dependency>
> <dependency>
> <artifactId>commons-pool</artifactId>
> <groupId>commons-pool</groupId>
> <version>1.2</version>
> <exclusions>
> <exclusion>
> <artifactId>xerces</artifactId>
> <groupId>xerces</groupId>
> </exclusion>
> <exclusion>
> <artifactId>jdbc-stdext</artifactId>
> <groupId>javax.sql</groupId>
> </exclusion>
> </exclusions>
> </dependency>
> <dependency>
> <artifactId>commons-dbcp</artifactId>
> <groupId>commons-dbcp</groupId>
> <version>1.2</version>
> <exclusions>
> <exclusion>
> <artifactId>xml-apis</artifactId>
> <groupId>xml-apis</groupId>
> </exclusion>
> <exclusion>
> <artifactId>jdbc-stdext</artifactId>
> <groupId>javax.sql</groupId>
> </exclusion>
> </exclusions>
> </dependency>
>
> Here's the output with verbose="true". I'm using the ant tasks:
>
> springframework:spring-mock:jar:1.2.5 (selected)
> commons-pool:commons-pool:jar:1.2 (selected)
> commons-collections:commons-collections:jar:2.1 (removed - nearer found:
> 2.1
> .1)
> commons-collections:commons-collections:jar:2.1 (selected)
> [artifact:dependencies] Downloading:
> javax/sql/jdbc-stdext/2.0/jdbc-stdext-2.0.j
> ar
> [artifact:dependencies] [WARNING] Unable to get resource from repository
> remote
> (http://repo1.maven.org/maven2)
> [artifact:dependencies] Downloading:
> javax/sql/jdbc-stdext/2.0/jdbc-stdext-2.0.j
> ar
> [artifact:dependencies] [WARNING] Unable to get resource from repository
> remote
> (http://repo1.maven.org/maven2)
> [artifact:dependencies] Downloading:
> javax/sql/jdbc-stdext/2.0/jdbc-stdext-2.0.j
> ar
> [artifact:dependencies] [WARNING] Unable to get resource from repository
> central
> (http://repo1.maven.org/maven2)
> [artifact:dependencies] An error has occurred while processing the Maven
> artifac
> t tasks.
> [artifact:dependencies] Diagnosis:
> [artifact:dependencies]
> [artifact:dependencies] Dependency not found: Unable to download the artifact
> fr
> om any repository
> [artifact:dependencies] javax.sql:jdbc-stdext:2.0:jar
> [artifact:dependencies]
> [artifact:dependencies] from the specified remote repositories:
> [artifact:dependencies] central (http://repo1.maven.org/maven2),
> [artifact:dependencies] remote (http://repo1.maven.org/maven2)
> [artifact:dependencies]
> [artifact:dependencies]
>
> I tried the "jdbc" groupId as well and that didn't solve anything.
>
> Thanks,
>
> Matt
>
> On 10/21/05, Matt Raible <[EMAIL PROTECTED]> wrote:
> > Thanks Stephen - that worked.
> >
> > Matt
> >
> > On 10/21/05, Stephen Duncan <[EMAIL PROTECTED]> wrote:
> > > You might try adding the exclusion with the following:
> > >
> > > <groupId>jdbc</groupId>
> > > <artifactId>jdbc-stdext</artifactId>
> > >
> > > As that's how it looks in the JPOX pom. Not sure if that would matter or
> > > not...
> > >
> > > -Stephen
> > >
> > > On 10/21/05, Matt Raible <[EMAIL PROTECTED]> wrote:
> > > > I'm trying to exclude jdbc-stdext (along with many others) from JPOX,
> > > > but can't seem to get it to work. I'm sure it's something small -
> > > > maybe some more eyes on it will help.
> > > >
> > > > Here's my dependency declaration and exclusions:
> > > >
> > > > <dependency>
> > > > <artifactId>jpox</artifactId>
> > > > <groupId>jpox</groupId>
> > > > <version>1.1.0-beta-1</version>
> > > > <exclusions>
> > > > <exclusion>
> > > > <artifactId>commons-dbcp</artifactId>
> > > > <groupId>commons-dbcp</groupId>
> > > > </exclusion>
> > > > <exclusion>
> > > > <artifactId>commons-pool</artifactId>
> > > > <groupId>commons-pool</groupId>
> > > > </exclusion>
> > > > <exclusion>
> > > > <artifactId>jaas</artifactId>
> > > > <groupId>jaas</groupId>
> > > > </exclusion>
> > > > <exclusion>
> > > > <artifactId>jca</artifactId>
> > > > <groupId>jca</groupId>
> > > > </exclusion>
> > > > <exclusion>
> > > > <artifactId>jta</artifactId>
> > > > <groupId>jta</groupId>
> > > > </exclusion>
> > > > <exclusion>
> > > > <artifactId>junitour</artifactId>
> > > > <groupId>junitour</groupId>
> > > > </exclusion>
> > > > <exclusion>
> > > > <artifactId>jdbc-stdext</artifactId>
> > > > <groupId>javax.sql</groupId>
> > > > </exclusion>
> > > > <exclusion>
> > > > <artifactId>ojdbc</artifactId>
> > > > <groupId>ojdbc</groupId>
> > > > </exclusion>
> > > > </exclusions>
> > > > </dependency>
> > > >
> > > > Here's a snippet from my build process that shows it's still being used:
> > > >
> > > > springmodules:springmodules-validator:jar:0.1 (selected)
> > > > commons-validator:commons-validator:jar:1.1.3 (selected)
> > > > commons-digester:commons-digester:jar:1.5 (selected)
> > > > commons-beanutils:commons-beanutils:jar:1.6 (selected)
> > > > commons-logging:commons-logging:jar:1.0 (removed - nearer
> > > > found: 1.0.4)
> > > > commons-logging:commons-logging:jar:1.0 (selected)
> > > > commons-collections:commons-collections:jar:2.0 (removed -
> > > > nearer found: 2.1.1)
> > > > commons-collections:commons-collections:jar:2.0 (selected)
> > > > commons-logging:commons-logging:jar:1.0 (removed - nearer found:
> > > > 1.0.4)
> > > > commons-logging:commons-logging:jar:1.0 (selected)
> > > > xml-apis:xml-apis:jar:2.0.2 (selected)
> > > > commons-collections:commons-collections:jar:2.1 (removed -
> > > > nearer found: 2.1.1)
> > > > commons-collections:commons-collections:jar:2.1 (selected)
> > > > jpox:jpox:jar:1.1.0-beta-1 (selected)
> > > > commons-collections:commons-collections:jar:2.1.1 (setting scope
> > > > to: compile)
> > > > commons-collections:commons-collections:jar:3.1 (removed - nearer
> > > > found: 2.1.1)
> > > > commons-collections:commons-collections:jar:3.1 (selected)
> > > > log4j:log4j:jar:1.2.8 (setting scope to: compile)
> > > > log4j:log4j:jar:1.2.8 (selected)
> > > > [artifact:dependencies] [WARNING]
> > > > [artifact:dependencies] This artifact has been relocated to
> > > > javax.sql:jdbc-stdext:2.0.
> > > > [artifact:dependencies]
> > > >
> > > > javax.sql:jdbc-stdext:jar:2.0 (selected)
> > > > log4j:log4j:jar:1.2.8 (removed - nearer found: 1.2.11)
> > > > log4j:log4j:jar:1.2.11 (selected)
> > > >
> > > > I'm using the antlib from M2, I get the same error when running "mvn"
> > > > on my project.
> > > >
> > > > Thanks for any help,
> > > >
> > > > Matt
> > > >
> > > > ---------------------------------------------------------------------
> > > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > > For additional commands, e-mail: [EMAIL PROTECTED]
> > > >
> > > >
> > >
> > >
> > > --
> > > Stephen Duncan Jr
> > > www.stephenduncanjr.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]