[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building mvndemo Maven Webapp 0.0.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO] Downloading: https://jfrog.nutz.cn/artifactory/snapshots/org/nutz/nutz-integration-spring/1.r.61.r2-SNAPSHOT/maven-metadata.xml
[INFO] Downloading: https://jfrog.nutz.cn/artifactory/jcenter/org/nutz/nutz-integration-spring/1.r.61.r2-SNAPSHOT/nutz-integration-spring-1.r.61.r2-SNAPSHOT.pom
[INFO] Downloading: https://jfrog.nutz.cn/artifactory/snapshots/org/nutz/nutz-integration-spring/1.r.61.r2-SNAPSHOT/nutz-integration-spring-1.r.61.r2-SNAPSHOT.pom
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 3.256s
[INFO] Finished at: Mon Jul 03 20:36:43 CST 2017
[INFO] Final Memory: 10M/184M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project mvndemo: Could not resolve dependencies for project com.wade:mvndemo:war:0.0.1-SNAPSHOT: Failed to collect dependencies at org.nutz:nutz-integration-spring:jar:1.r.61.r2-SNAPSHOT: Failed to read artifact descriptor for org.nutz:nutz-integration-spring:jar:1.r.61.r2-SNAPSHOT: Could not transfer artifact org.nutz:nutz-integration-spring:pom:1.r.61.r2-SNAPSHOT from/to nutz (https://jfrog.nutz.cn/artifactory/jcenter): Failed to transfer file: https://jfrog.nutz.cn/artifactory/jcenter/org/nutz/nutz-integration-spring/1.r.61.r2-SNAPSHOT/nutz-integration-spring-1.r.61.r2-SNAPSHOT.pom. Return code is: 409 , ReasonPhrase:Conflict. -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException
15 回复
@wendal 可以了,感谢
@wendal Unable to process Jar entry [org/nutz/integration/spring/NutzJsonMessageConverter.class] from Jar [jar:file:/E:/workspaceForNew/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/mvndemo/WEB-INF/lib/nutz-integration-spring-1.r.61.r2.jar!/] for annotations
java.io.EOFException,启动的时候报这个错是为什么呢
@wendal 还是不行啊
@wendal 我的是8.0啊
@wendal 只要配置了
就可以在service直接用
@Autowired
private Dao dao;
是这样吗
<bean id="nutDao" class="org.nutz.dao.impl.NutDao">
<property name="dataSource" ref="dataSource" />
<!-- 如果要使用Trans,移除springDaoRunner -->
<property name="runner" ref="springDaoRunner" />
</bean>
<bean id="springDaoRunner" class="org.nutz.integration.spring.SpringDaoRunner">
</bean>
@wendal 写在11楼了
添加回复
请先登陆