3
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

DBUnitとPOI3.11を利用する

Posted at

※2015/3/26現在のめも

mavenのセントラルリポジトリに公開されているDBUnitの最新ver 2.5.0 の場合、依存するPOIのverは3.2。

無理やりPOIの上位verを利用しようとすると実行時にエラーとなってしまう。

次期公開の2.5.1ではPOI3.11に対応して頂ける模様。
http://sourceforge.net/p/dbunit/code.git/merge-requests/6/

気長に公開を待ってもいいのですが、
SNAPSHOTがsonatypeに公開されていたので、
ひとまずそちらを参照して利用させて頂く

→POMを修正


<repositories>
	<repository>
		<id>oss.sonatype.org</id>
		<url>https://oss.sonatype.org/content/repositories/snapshots/</url>
		<releases>
			<enabled>false</enabled>
		</releases>
		<snapshots>
			<enabled>true</enabled>
		</snapshots>
	</repository>
</repositories>

----

<dependency>
	<scope>test</scope>
	<groupId>org.dbunit</groupId>
	<artifactId>dbunit</artifactId>
	<version>2.5.1-SNAPSHOT</version>
</dependency>
3
3
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?