Skip to main content

Maven cannot find jdbc-stdext

Please note these java.net forums are being decommissioned and use the new and improved forums at https://community.oracle.com/community/java.
2 replies [Last post]
mgwmgw
Offline
Joined: 2009-03-23

I run maven to handle dependencies and compile some Java which already compiles in Eclipse.

The maven error message is

[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 18.857s
[INFO] Finished at: Wed Jun 06 12:53:16 EDT 2012
[INFO] Final Memory: 7M/150M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project acs: Could not resolve dependencies for project com.edialog.mtp.acs:acs:jar:1: Could not find artifact javax.sql:jdbc-stdext:jar:2.0 in central (http://repo1.maven.org/maven2) -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal on project acs: Could not resolve dependencies for project com.edialog.mtp.acs:acs:jar:1: Could not find artifact javax.sql:jdbc-stdext:jar:2.0 in central (http://repo1.maven.org/maven2)

In my pom.xml file I have


javax.sql
jdbc-stdext
2.0


I copied the pom.xml entry from
http://mvnrepository.com/artifact/jdbc/jdbc-stdext

So why can't Maven find jdbc-stdext?

Thanks.

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
mgwmgw
Offline
Joined: 2009-03-23

The rich text mangled the pom.xml content. it is

		<dependency>
<groupId>javax.sql</groupId>
<artifactId>jdbc-stdext</artifactId>
<version>2.0</version>
</dependency>
mgwmgw
Offline
Joined: 2009-03-23

I found a workaround. Download the jar from
http://download.java.net/maven/2/javax/sql/jdbc-stdext/2.0/
and install it using
mvn install:install-file -Dfile=Downloads/jdbc-stdext-2.0.jar -DgroupId=javax.sql -DartifactId=jdbc-stdext -Dversion=2.0 -Dpackaging=jar