告诉我在eclipse操作的步骤啊

解决方案 »

  1.   

    http://mvnrepository.com/search.html?query=db2看看有你要的不?如果你有 oracle的顺便告诉我一声呗。 先谢谢你了。<dependency>
        <groupId>ojdbc</groupId>
        <artifactId>ojdbc</artifactId>
        <version>14</version>
    </dependency>并不对。
      

  2.   

    商业软件的驱动一般不会在网上摆(版权问题),网上有的多是开源的东西。
    LZ看看这个可以用否
    <dependency>
      <groupId>org.tranql</groupId>
      <artifactId>tranql-connector-db2-common</artifactId>
      <version>1.5</version>
    </dependency>如果不行,将你现用的驱动jar包install到本机Maven库好了。
      

  3.   

    Eclipse中POM文件直接编辑。install的话,还是在命令行方便。
      

  4.   

    很好。
    那看来只能安装jar包到Maven仓库了。
    在命令行执行命令如下:mvn install:install-file -Dfile=<path-to-file> -DgroupId=<group-id> -DartifactId=<artifact-id> -Dversion=<version> -Dpackaging=<packaging>groupId和artifaceId楼主自己随便写,packaging通常为jar即jar包。
      

  5.   

    可以在 http://search.maven.org/   或者 https://repository.sonatype.org/ 中搜索
      

  6.   


    原来还可以这样啊。 谢谢啊。
    我原来碰到自己搞不定的jar,就手动添加依赖了。
    受教了。可惜这个帖子不是我的,要不然结贴给分了。
      

  7.   

    看看我的博客吧。
    http://hamlzf.iteye.com/blog/1169061