gpt4 book ai didi

sql-server-2008 - 在grailsCentral中找不到 Artifact net.sourceforge.jtds:jtds:zip:1.2.6

转载 作者:行者123 更新时间:2023-12-02 15:00:46 25 4
gpt4 key购买 nike

我基于this issue连接到SQL Server数据库。

driverClassName =“net.sourceforge.jtds.jdbc.Driver”
方言=“org.hibernate.dialect.SQLServerDialect”
url =“jdbc:jtds:sqlserver:// myurl:1433 / mydb”

我还添加了对buildConfig.groovy的依赖

runtime 'net.sourceforge.jtds:jtds:1.2.6'

不幸的是,控制台显示此错误:
| Error Resolve error obtaining dependencies: Could not find artifact net.sourceforge.jtds:jtds:zip:1.2.6 in grailsCentral (http://repo.grails.org/grails/plugins) (Use --stacktrace to see the full trace)
| Error Could not find artifact net.sourceforge.jtds:jtds:zip:1.2.6 in grailsCentral (http://repo.grails.org/grails/plugins)
| Run 'grails dependency-report' for further information.

最佳答案

dependencies {
runtime 'net.sourceforge.jtds:jtds:1.2.6'
}

并不是
plugins{

runtime 'net.sourceforge.jtds:jtds:1.2.6'
}

关于sql-server-2008 - 在grailsCentral中找不到 Artifact net.sourceforge.jtds:jtds:zip:1.2.6,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23891923/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com