`
flashing
  • 浏览: 353235 次
  • 性别: Icon_minigender_1
  • 来自: 大连
社区版块
存档分类
最新评论

Maven的sql和dbunit plugin的备注

阅读更多

折腾了我一晚上加一早上才搞定,特地记下来。

使用Maven的sql plugin,其实本来这两个plugin没什么特别的,和其他plugin一样,在parent里面声明,module的pom里面使用,但是不知道为什么就是无法加载mysql的driver,官方的例子也没有特别提到这个问题,最后看http://fan.renren.it/a/shujuku/20101006/48771.html 这个文章的时候发现在plugin里面独立声明了依赖,就照猫画虎结果解决了。

不知道其他人是否有遇到的(google只看到有一篇帖子讲这个问题,也没有解决方案)?

 

另外目前暂时maven的dbunit plugin正常是不能加载两个xml文件的,解决方案是:

在<executions></executions>里面,添加两段<execution>,id不同,src不同,但是在同一个phase,比如都是

<phase>process-test-resources</phase>

就可以执行两遍。

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics