代码之家  ›  专栏  ›  技术社区  ›  Makky

使用Maven使用Informix数据库

  •  1
  • Makky  · 技术社区  · 11 年前

    我有 Java Maven 项目我正在运行数据库查询 Informix 数据库,但找不到 dependencies 对于 Informix公司 数据库

    我试过了

            <dependency>
                <groupId>com.informix.jdbc</groupId>
                <artifactId>com.springsource.com.informix.jdbc</artifactId>
                <version>3.0.0.JC3</version>
            </dependency>
    

    但它在投掷

    Missing artifact 
    com.informix.jdbc:com.springsource.com.informix.jdbc:jar:3.0.0.JC3
    

    有人能帮我用吗 Informix公司 从…起 Maven ?

    2 回复  |  直到 11 年前
        1
  •  4
  •   Jonathan    11 年前

    看起来像 that dependency 在Spring的企业捆绑包存储库中。如果您还没有,您需要添加以下存储库定义来解决它:

    <repositories>
        <repository>
            <id>com.springsource.repository.bundles.release</id>
            <name>SpringSource Enterprise Bundle Repository - SpringSource Bundle Releases</name>
            <url>http://repository.springsource.com/maven/bundles/release</url>
        </repository>
    
        <repository>
            <id>com.springsource.repository.bundles.external</id>
            <name>SpringSource Enterprise Bundle Repository - External Bundle Releases</name>
            <url>http://repository.springsource.com/maven/bundles/external</url>
        </repository>
    <repositories>
    
        2
  •  0
  •   Dherik    7 年前

    请在pom.xml文件中添加以下依赖项:

    <dependency>
        <groupId>com.ibm.informix</groupId>
        <artifactId>jdbc</artifactId>
        <version>4.10.6.20151104</version>
    </dependency>