Maven question about commons-dbcp
Posted: Wed Jan 23, 2013 11:49 am
Q: I notice that in the training it shows how to setup a datasource using jndi...
Is it better to use spring to create a datasource bean?
Anyway, trying to use commons-dbcp to test out creating a datasource spring bean I get a maven error:
I am trying to add a dependency to my -web pom.xml:
<dependency>
<groupId>commons-dbcp</groupId>
<artifactId>commons-dbcp</artifactId>
<version>1.4</version>
</dependency>
I get this error:
Failure to find commons-dbcp:commons-dbcp:jar:1.4 in http://code.lds.org/nexus/content/groups/main-repo
So what I am trying to figure out is why it is not in nexus? (or just how to force maven to use the default repository)
Is it better to use spring to create a datasource bean?
Anyway, trying to use commons-dbcp to test out creating a datasource spring bean I get a maven error:
I am trying to add a dependency to my -web pom.xml:
<dependency>
<groupId>commons-dbcp</groupId>
<artifactId>commons-dbcp</artifactId>
<version>1.4</version>
</dependency>
I get this error:
Failure to find commons-dbcp:commons-dbcp:jar:1.4 in http://code.lds.org/nexus/content/groups/main-repo
So what I am trying to figure out is why it is not in nexus? (or just how to force maven to use the default repository)