문제

I want to use Commons-DBCP 2.0. On official site i found:

Users upgrading to 2.x should be aware that the Java package name has changed, as well as the Maven co-ordinates, since DBCP 2.x is not binary compatible with DBCP 1.x.

But what are the new coordinates? As expected here are only 1.x available.

도움이 되었습니까?

해결책

Is it this one?

<dependency>
   <groupId>org.apache.commons</groupId>
   <artifactId>commons-dbcp2</artifactId>
   <version>2.0</version>
</dependency>

Most apache projects have aligned with the org.apache.commons groupid. And you seemed to want the DBCP 2.

And BTW, maven central has its own search facility:

http://search.maven.org/#search|ga|1|commons-dbcp

다른 팁

You can use the maven central repository : central maven search.

In your case commons-dbcp2.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top