首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >在sql maven插件中使用ingres驱动程序

在sql maven插件中使用ingres驱动程序
EN

Stack Overflow用户
提问于 2017-11-27 07:13:24
回答 1查看 241关注 0票数 0

我想使用塞莱里奥从我们的数据库生成代码。Celerio使用sql plugin连接到数据库。但我无法解决ingres驱动程序的依赖关系。

这就是我如何在celerio项目的pom.xml中建立数据库连接的方式

代码语言:javascript
复制
<!-- ingres jdbc driver -->
<jdbc.groupId>ingres</jdbc.groupId>
<jdbc.artifactId>ingres-connector-java</jdbc.artifactId>
<jdbc.version>10.0-4.0.6</jdbc.version>     

<!-- ingres jdbc settings -->
<jdbc.driver>com.ingres.jdbc.IngresDriver</jdbc.driver>
<jdbc.url>jdbc:ingres://bjax:/entw_frm_db</jdbc.url>
<jdbc.user>ingres</jdbc.user>
<jdbc.password></jdbc.password>
<jdbc.catalog></jdbc.catalog>
<hibernate.dialect>org.hibernate.dialect.IngresDialect</hibernate.dialect>
<sql-maven-plugin.delimiter>;</sql-maven-plugin.delimiter>

但是,当我试图让码元运行>mvn -Pdb,metadata,gen时,我得到了这个异常:

代码语言:javascript
复制
[ERROR] Failed to execute goal org.codehaus.mojo:sql-maven-plugin:1.5:execute (Create and initialize the database) on project book_application: Execution Create
 and initialize the database of goal org.codehaus.mojo:sql-maven-plugin:1.5:execute failed: Plugin org.codehaus.mojo:sql-maven-plugin:1.5 or one of its dependen
cies could not be resolved: Failed to collect dependencies at org.codehaus.mojo:sql-maven-plugin:jar:1.5 -> ingres:ingres-connector-java:jar:10.0-4.0.6: Failed
to read artifact descriptor for ingres:ingres-connector-java:jar:10.0-4.0.6: Could not transfer artifact ingres:ingres-connector-java:pom:10.0-4.0.6 from/to Cod
ehaus Snapshots (https://nexus.codehaus.org/content/repositories/releases): Failed to transfer file: https://nexus.codehaus.org/content/repositories/releases/in
gres/ingres-connector-java/10.0-4.0.6/ingres-connector-java-10.0-4.0.6.pom. Return code is: 502 , ReasonPhrase:Bad Gateway. -> [Help 1]

注意:我试着用mysql运行代码生成,没有任何问题(但是使用mysql是没有选择的,因为这只是一个测试-我们的客户数据库是一个ingres数据库)

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2017-11-27 14:08:49

传输文件失败:https://nexus.codehaus.org/...似乎配置了旧的Codehaus存储库,但它不再可用。Codehaus于2015年终止。请参阅:https://support.sonatype.com/hc/en-us/articles/217611787-codehaus-org-Repositories-Should-Be-Removed-From-Your-Nexus-Instance

Yoy应该从您的pom.xml和/或settings.xml中删除该存储库。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/47505577

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档