NutzCN Logo
问答 创建NutzBoot 应用报错
发布于 2553天前 作者 qq_e3870666 1730 次浏览 复制 上一个帖子 下一个帖子
标签:

https://get.nutz.io/ 上创建项目包,下载后,执行 mvn compile exec:java -Dexec.mainClass="io.nutz.demo.MainLauncher" ,
报如下错误:

[ERROR] Failed to execute goal on project demo: Could not resolve dependencies for project io.nutz:demo:jar:2.0-SNAPSHOT: The following artifacts coul
d not be resolved: org.nutz:nutzboot-starter-sharding-jdbc:jar:2.0-Beta, org.nutz:nutzboot-starter-uflo:jar:2.0-Beta, org.nutz:nutzboot-starter-urule:
jar:2.0-Beta: Failure to find org.nutz:nutzboot-starter-sharding-jdbc:jar:2.0-Beta in https://jfrog.nutz.cn/artifactory/jcenter was cached in the loca
l repository, resolution will not be reattempted until the update interval of nutz has elapsed or updates are forced -> [Help 1]

7 回复

哦,不要用2.0-beta了,用2.0-SNAPSHOT

来自炫酷的 NutzCN

呃……快照版 靠谱么 ?

靠谱的, 正式版是2.0, 当前快照版是2.1-SNAPSHOT了

mvn compile 命令行出现新问题:

: Cannot resolve reference to bean 'nutz.dataSource' while setting bean property 'dataSource'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'nutz.dataSource' defined in class path resource [META-INF/spring/nutzboot-spring-context.xml]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [java.lang.Object]: Factory method 'get' threw exception; nested exception is org.nutz.ioc.IocException: IocBean[dataSource] throw Exception when creating

选的是什么?? 贴完整报错信息, 用 "插入代码/日志" 按钮

jetty.port=8000
jetty.host=127.0.0.1

jdbc.type=druid
jdbc.url=jdbc:h2:mem:~
jdbc.username=root
jdbc.password=root

uflo.debug=true

urule.repository.dir=./urule.repo

哦, u家的东西, 今天刚fix了个相关的bug, 改成2.1-SNAPSHOT试试吧

添加回复
请先登陆
回到顶部