NutzCN Logo
问答 nutz-book-project-3.x用Eclipse导入后,用Maven运行失败如下
发布于 2756天前 作者 shuxinyun 2317 次浏览 复制 上一个帖子 下一个帖子
标签:

[ERROR] Error executing Maven.
[ERROR] The specified user settings file does not exist: D:\nutz-book-project-3.x\nutzcn-webapp

29 回复

完整运行日志

第一步:我用Eclipse导入整个项目后
第二步:我右键选择nutzcn-webapp项目,选择Run As-Run configurations-然后右边,选择Maven Build
第三步:选择运行项目,nutzcn-webapp,goals=jetty:run,
第四步:run
就只有上面错误

不知道我哪儿出错了!
折腾一上午了!

改过,也是之前按照你的手册改过好像要支持utf-8的问题,我恢复回去试试!

支持utf8不会改eclipse里面maven相关的配置的

@wendal ,不对,这个设置我没有动,现在不论我设置成什么都报同样的错,我把maven目录下的settings.xml复制到webapp下,指向也不对!

maven --> User Settings --> Global Settings , 留空

就是空的!

那User Settings的值是什么?

apache-maven-3.5.0\conf\下的settings.xml

我本地的设置是:

Global Settings : D:\apache-maven-3.3.9\conf\settings.xml
User Settings : 默认值

我改成与你一样也不行,同样的错误!

是不是你的settings.xml改坏了?? 两个都留空试试

@wendal ,非常感谢,这关过了,是我settings有问题,我删除后就好了

第二步:我右键选择nutzcn-webapp项目,选择Run As-Run configurations-然后右边,选择Maven Build
第三步:选择运行项目,nutzcn-webapp,goals=jetty:run,

对话框里面还有个 User Settings, 默认是留空的,你填了东西??

新的错误:
[INFO] Scanning for projects...
[INFO] [INFO] ------------------------------------------------------------------------
[INFO] Building nutzcn-webapp 3.0.2
[INFO] ------------------------------------------------------------------------
[INFO] [INFO] >>> jetty-maven-plugin:9.4.3.v20170317:run (default-cli) > test-compile @ nutzcn-webapp >>>
[WARNING] The POM for net.wendal.nutzcn:nutzcn-core:jar:3.0.2 is missing, no dependency information available
[WARNING] The POM for net.wendal.nutzcn:nutzcn-adminlte:jar:3.0.2 is missing, no dependency information available
[INFO] Downloading: https://jfrog.nutz.cn/artifactory/snapshots/org/nutz/nutz/1.r.62-SNAPSHOT/maven-metadata.xml
[INFO] Downloaded: https://jfrog.nutz.cn/artifactory/snapshots/org/nutz/nutz/1.r.62-SNAPSHOT/maven-metadata.xml (963 B at 2.1 KB/sec)
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 3.981 s
[INFO] Finished at: 2017-06-06T15:58:41+08:00
[INFO] Final Memory: 14M/155M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project nutzcn-webapp: Could not resolve dependencies for project net.wendal.nutzcn:nutzcn-webapp:war:3.0.2: The following artifacts could not be resolved: net.wendal.nutzcn:nutzcn-core:jar:3.0.2, net.wendal.nutzcn:nutzcn-adminlte:jar:3.0.2: Failure to find net.wendal.nutzcn:nutzcn-core:jar:3.0.2 in https://jfrog.nutz.cn/artifactory/jcenter was cached in the local repository, resolution will not be reattempted until the update interval of nutz has elapsed or updates are forced -> [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

哦,原来如此...

是的,我填了东西!

install是如何操作,是Maven Install?

是的,nutz-parent下执行mvn install

话说, eclipse应该自动关联编译的,不晓得你改了啥

我是新手,你这个项目是我接受的第一个项目!呵呵!麻烦你了!
又有一个错误!
beans = ["yvrService", "yvrSeoModule", "yvrAdminModule", "bigContentService", "yvrRobotModule", "yvrApiModule", "yvrUserModule", "yvrModule", "topicSearchService"]
16:06:02.167 INFO (NutLoading.java:159) evalUrlMapping - Build URL mapping by org.nutz.plugins.apidoc.ApidocUrlMapping ...
16:06:02.169 DEBUG (Loadings.java:154) scanModules - module class location 'file:/D:/var/lib/hotplug/yvr-3.0.2.jar'
16:06:02.169 DEBUG (Loadings.java:184) scanModuleInPackage - > scan 'net.wendal.nutzbook.yvr'
16:06:02.171 DEBUG (Scans.java:274) scan - Found 22 resource by src( net/wendal/nutzbook/yvr/ ) , regex( ^.+[.]class$ )
16:06:02.171 DEBUG (Loadings.java:199) checkModule - >> add 'net.wendal.nutzbook.yvr.module.YvrSeoModule'
16:06:02.172 DEBUG (Loadings.java:199) checkModule - >> add 'net.wendal.nutzbook.yvr.module.YvrApiModule'
16:06:02.187 DEBUG (Loadings.java:199) checkModule - >> add 'net.wendal.nutzbook.yvr.module.YvrRobotModule'
16:06:02.187 DEBUG (Loadings.java:199) checkModule - >> add 'net.wendal.nutzbook.yvr.module.YvrModule'
16:06:02.188 DEBUG (Loadings.java:199) checkModule - >> add 'net.wendal.nutzbook.yvr.module.YvrAdminModule'
16:06:02.189 DEBUG (Loadings.java:199) checkModule - >> add 'net.wendal.nutzbook.yvr.module.YvrUserModule'
16:06:02.190 DEBUG (UrlMappingImpl.java:146) print - '/robot/msg' >> (YvrRobotModule.java:75).msg : String | @Ok(raw ) @Fail(void ) | by 0 Filters | (I:UTF-8/O:UTF-8)
16:06:02.200 DEBUG (UrlMappingImpl.java:146) print - '/yvr/sitemap' >> (YvrSeoModule.java:108).sitemap : File | @Ok(raw:xml) @Fail(http:500) | by 0 Filters | (I:UTF-8/O:UTF-8)
16:06:02.202 DEBUG (UrlMappingImpl.java:146) print - '/yvr/rss' >> (YvrSeoModule.java:64).rss : String | @Ok(raw:xml) @Fail(http:500) | by 0 Filters | (I:UTF-8/O:UTF-8)
16:06:02.207 DEBUG (UrlMappingImpl.java:146) print - '/yvr/links/?' >> (YvrSeoModule.java:137).page : Object | @Ok(beetl:/yvr/website/links.html) @Fail(http:500) | by 0 Filters | (I:UTF-8/O:UTF-8)
16:06:02.211 DEBUG (UrlMappingImpl.java:146) print - '/yvr/u/?' >> (YvrUserModule.java:79).userHome : Object | @Ok(beetl:yvr/user/user_index.html) @Fail(null ) | by 0 Filters | (I:UTF-8/O:UTF-8)
16:06:02.217 DEBUG (UrlMappingImpl.java:146) print - '/yvr/u/logout' >> (YvrUserModule.java:288).logout : void | @Ok(>>:/yvr/list) @Fail(>>:/yvr/list) | by 0 Filters | (I:UTF-8/O:UTF-8)
16:06:02.220 DEBUG (UrlMappingImpl.java:146) print - '/yvr/u/signup' >> (YvrUserModule.java:205).signup : Object | @Ok(json ) @Fail(null ) | by 0 Filters | (I:UTF-8/O:UTF-8)
16:06:02.226 DEBUG (UrlMappingImpl.java:146) print - '/yvr/u/signup/?' >> (YvrUserModule.java:162).signup : Object | @Ok(raw ) @Fail(null ) | by 0 Filters | (I:UTF-8/O:UTF-8)
16:06:02.227 DEBUG (UrlMappingImpl.java:146) print - '/yvr/u/me/reset/token' >> (YvrUserModule.java:116).resetAccessToken : void | @Ok(null ) @Fail(null ) | by 0 Filters | (I:UTF-8/O:UTF-8)
16:06:02.227 DEBUG (UrlMappingImpl.java:146) print - '/yvr/u/oauth/github' >> (YvrUserModule.java:282).oauthGithub : void | @Ok(->:/oauth/github) @Fail(null ) | by 0 Filters | (I:UTF-8/O:UTF-8)
16:06:02.230 DEBUG (UrlMappingImpl.java:146) print - '/yvr/u/me' >> (YvrUserModule.java:73).myHome : Object | @Ok(beetl:yvr/user/user_index.html) @Fail(null ) | by 0 Filters | (I:UTF-8/O:UTF-8)
16:06:02.233 DEBUG (UrlMappingImpl.java:146) print - '/yvr/u/profile/update/?' >> (YvrUserModule.java:249).updateUserDt : Object | @Ok(raw ) @Fail(null ) | by 0 Filters | (I:UTF-8/O:UTF-8)
16:06:02.238 DEBUG (UrlMappingImpl.java:146) print - '/yvr/u/?/avatar' >> (YvrUserModule.java:125).userAvatar : Object | @Ok(raw:jpg) @Fail(null ) | by 0 Filters | (I:UTF-8/O:UTF-8)
16:06:02.241 DEBUG (UrlMappingImpl.java:146) print - '/yvr/', '/yvr/index' >> (YvrModule.java:95).index : void | @Ok(->:/yvr/list) @Fail(void ) | by 0 Filters | (I:UTF-8/O:UTF-8)
16:06:02.257 DEBUG (UrlMappingImpl.java:146) print - '/yvr/add' >> (YvrModule.java:125).add : CResult | @Ok(json ) @Fail(void ) | by 1 Filters | (I:UTF-8/O:UTF-8)
16:06:02.267 DEBUG (UrlMappingImpl.java:146) print - '/yvr/add' >> (YvrModule.java:108).add : Object | @Ok(beetl:yvr/_add.html) @Fail(void ) | by 0 Filters | (I:UTF-8/O:UTF-8)
16:06:02.269 DEBUG (UrlMappingImpl.java:146) print - '/yvr/t/?/push' >> (YvrModule.java:365).push : void | @Ok(null ) @Fail(void ) | by 0 Filters | (I:UTF-8/O:UTF-8)
16:06:02.274 DEBUG (UrlMappingImpl.java:146) print - '/yvr/list/u/?/?', '/yvr/list/u/?/?/?' >> (YvrModule.java:146).list : Object | @Ok(beetl:/yvr/index.html) @Fail(void ) | by 0 Filters | (I:UTF-8/O:UTF-8)
16:06:02.278 DEBUG (UrlMappingImpl.java:146) print - '/yvr/list/?', '/yvr/list/?/?', '/yvr/list' >> (YvrModule.java:136).list : Object | @Ok(beetl:/yvr/index.html) @Fail(void ) | by 0 Filters | (I:UTF-8/O:UTF-8)
16:06:02.280 DEBUG (UrlMappingImpl.java:146) print - '/yvr/t/?/mark' >> (YvrModule.java:379).mark : void | @Ok(void ) @Fail(void ) | by 0 Filters | (I:UTF-8/O:UTF-8)
16:06:02.281 DEBUG (UrlMappingImpl.java:146) print - '/yvr/search' >> (YvrModule.java:336).search : Object | @Ok(beetl:/yvr/index.html) @Fail(void ) | by 0 Filters | (I:UTF-8/O:UTF-8)
16:06:02.284 DEBUG (UrlMappingImpl.java:146) print - '/yvr/tag/?', '/yvr/tag/?/?' >> (YvrModule.java:171).tag : Object | @Ok(beetl:/yvr/index.html) @Fail(void ) | by 0 Filters | (I:UTF-8/O:UTF-8)
16:06:02.287 DEBUG (UrlMappingImpl.java:146) print - '/yvr/upload/?/?' >> (YvrModule.java:309).image : Object | @Ok(raw:jpg) @Fail(http:404) | by 0 Filters | (I:UTF-8/O:UTF-8)
16:06:02.289 DEBUG (UrlMappingImpl.java:146) print - '/yvr/upload' >> (YvrModule.java:301).upload : Object | @Ok(json ) @Fail(void ) | by 0 Filters | (I:UTF-8/O:UTF-8)
16:06:02.290 DEBUG (UrlMappingImpl.java:146) print - '/yvr/search/rebuild' >> (YvrModule.java:359).rebuild : void | @Ok(null ) @Fail(void ) | by 0 Filters | (I:UTF-8/O:UTF-8)
16:06:02.294 DEBUG (UrlMappingImpl.java:146) print - '/yvr/t/?/reply' >> (YvrModule.java:320).addReply : Object | @Ok(json ) @Fail(void ) | by 1 Filters | (I:UTF-8/O:UTF-8)
16:06:02.299 DEBUG (UrlMappingImpl.java:146) print - '/yvr/t/?/reply/?/up' >> (YvrModule.java:327).replyUp : Object | @Ok(json ) @Fail(void ) | by 0 Filters | (I:UTF-8/O:UTF-8)
16:06:02.308 DEBUG (UrlMappingImpl.java:146) print - '/yvr/t/?' >> (YvrModule.java:248).topic : Object | @Ok(beetl:yvr/_topic.html) @Fail(void ) | by 0 Filters | (I:UTF-8/O:UTF-8)
16:06:02.319 DEBUG (UrlMappingImpl.java:146) print - '/yvr/api/v1/topics' >> (YvrApiModule.java:368).add : Object | @Ok(json ) @Fail(http:500) | by 1 Filters | (I:UTF-8/O:UTF-8)
16:06:02.327 DEBUG (UrlMappingImpl.java:146) print - '/yvr/api/v1/topic/?/mark' >> (YvrApiModule.java:611).mark : void | @Ok(json ) @Fail(http:500) | by 1 Filters | (I:UTF-8/O:UTF-8)
16:06:02.330 DEBUG (UrlMappingImpl.java:146) print - '/yvr/api/v1/content/?' >> (YvrApiModule.java:587).getContent : String | @Ok(raw:stream) @Fail(http:500) | by 0 Filters | (I:UTF-8/O:UTF-8)
16:06:02.332 DEBUG (UrlMappingImpl.java:146) print - '/yvr/api/v1/messages' >> (YvrApiModule.java:478).getMessages : Object | @Ok(json ) @Fail(http:500) | by 1 Filters | (I:UTF-8/O:UTF-8)
16:06:02.333 DEBUG (UrlMappingImpl.java:146) print - '/yvr/api/v1/user/?', '/yvr/api/v1/user' >> (YvrApiModule.java:326).user : Object | @Ok(json ) @Fail(http:500) | by 0 Filters | (I:UTF-8/O:UTF-8)
16:06:02.339 DEBUG (UrlMappingImpl.java:146) print - '/yvr/api/v1/topics' >> (YvrApiModule.java:144).topics : Object | @Ok(json ) @Fail(http:500) | by 0 Filters | (I:UTF-8/O:UTF-8)
16:06:02.341 DEBUG (UrlMappingImpl.java:146) print - '/yvr/api/v1/message/mark_all' >> (YvrApiModule.java:495).markAllMessage : Object | @Ok(json ) @Fail(http:500) | by 1 Filters | (I:UTF-8/O:UTF-8)
16:06:02.344 DEBUG (UrlMappingImpl.java:146) print - '/yvr/api/v1/topic/?/replies' >> (YvrApiModule.java:400).addReply : Object | @Ok(json ) @Fail(http:500) | by 1 Filters | (I:UTF-8/O:UTF-8)
16:06:02.345 DEBUG (UrlMappingImpl.java:146) print - '/yvr/api/v1/accesstoken' >> (YvrApiModule.java:287).checkAccessToken : Object | @Ok(json ) @Fail(http:500) | by 0 Filters | (I:UTF-8/O:UTF-8)
16:06:02.348 DEBUG (UrlMappingImpl.java:146) print - '/yvr/api/v1/images' >> (YvrApiModule.java:515).images : Object | @Ok(json ) @Fail(http:500) | by 1 Filters | (I:UTF-8/O:UTF-8)
16:06:02.349 DEBUG (UrlMappingImpl.java:146) print - '/yvr/api/v1/message/count' >> (YvrApiModule.java:450).msgCount : Object | @Ok(json ) @Fail(http:500) | by 1 Filters | (I:UTF-8/O:UTF-8)
16:06:02.353 DEBUG (UrlMappingImpl.java:146) print - '/yvr/api/v1/reply/?/ups' >> (YvrApiModule.java:426).replyUp : Object | @Ok(json ) @Fail(http:500) | by 1 Filters | (I:UTF-8/O:UTF-8)
16:06:02.355 DEBUG (UrlMappingImpl.java:146) print - '/yvr/api/v1/topic/?', '/yvr/api/v1/topic' >> (YvrApiModule.java:235).topic : Object | @Ok(json ) @Fail(http:500) | by 0 Filters | (I:UTF-8/O:UTF-8)
16:06:02.358 DEBUG (UrlMappingImpl.java:146) print - '/yvr/admin/update' >> (YvrAdminModule.java:51).update : void | @Ok(null ) @Fail(null ) | by 0 Filters | (I:UTF-8/O:UTF-8)
16:06:02.377 DEBUG (UrlMappingImpl.java:146) print - '/yvr/admin/query' >> (YvrAdminModule.java:122).query : Object | @Ok(json ) @Fail(null ) | by 0 Filters | (I:UTF-8/O:UTF-8)
16:06:02.387 DEBUG (UrlMappingImpl.java:146) print - '/yvr/admin/update/tags' >> (YvrAdminModule.java:106).updateTags : boolean | @Ok(json ) @Fail(null ) | by 0 Filters | (I:UTF-8/O:UTF-8)
16:06:02.388 DEBUG (UrlMappingImpl.java:146) print - '/yvr/admin/update/title' >> (YvrAdminModule.java:116).updateTitle : boolean | @Ok(json ) @Fail(null ) | by 0 Filters | (I:UTF-8/O:UTF-8)
16:06:02.389 DEBUG (UrlMappingImpl.java:146) print - '/yvr/admin/expstatic' >> (YvrAdminModule.java:141).exportStatic : void | @Ok(null ) @Fail(null ) | by 0 Filters | (I:UTF-8/O:UTF-8)
16:06:02.389 INFO (NutLoading.java:217) evalUrlMapping - Found 46 module methods
16:06:02.402 DEBUG (NutIoc.java:151) get - Get 'dao'<interface org.nutz.dao.Dao>
16:06:02.403 DEBUG (Scans.java:274) scan - Found 5 resource by src( net/wendal/nutzbook/yvr/bean/ ) , regex( ^.+[.]class$ )
16:06:02.404 DEBUG (Jdbcs.java:863) guessEntityFieldColumnType - take field 'masters(java.util.List)'(net.wendal.nutzbook.yvr.bean.SubForum) as VARCHAR(128)
16:06:02.407 DEBUG (Jdbcs.java:863) guessEntityFieldColumnType - take field 'tags(java.util.Set)'(net.wendal.nutzbook.yvr.bean.Topic) as VARCHAR(128)
16:06:02.424 DEBUG (NutIoc.java:151) get - Get 'cacheManager'<class net.sf.ehcache.CacheManager>
16:06:02.424 DEBUG (YvrMainSetup.java:26) init - Ehcache CacheManager = nutzbook
[INFO] Jetty server exiting.
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 25.767 s
[INFO] Finished at: 2017-06-06T16:06:02+08:00
[INFO] Final Memory: 45M/366M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.eclipse.jetty:jetty-maven-plugin:9.4.3.v20170317:run (default-cli) on project nutzcn-webapp: Failure: Multiple exceptions: net/wendal/nutzbook/common/util/Markdowns: net.wendal.nutzbook.common.util.Markdowns -> [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/MojoExecutionException
Exception in thread "Thread-1" java.lang.NoClassDefFoundError: org/eclipse/jetty/websocket/server/NativeWebSocketConfiguration$PersistedWebSocketCreator
at org.eclipse.jetty.websocket.server.NativeWebSocketConfiguration.lambda$doStop$0(NativeWebSocketConfiguration.java:65)
at java.util.Collection.removeIf(Unknown Source)
at org.eclipse.jetty.http.pathmap.PathMappings.removeIf(PathMappings.java:87)
at org.eclipse.jetty.websocket.server.NativeWebSocketConfiguration.doStop(NativeWebSocketConfiguration.java:65)
at org.eclipse.jetty.util.component.AbstractLifeCycle.stop(AbstractLifeCycle.java:89)
at org.eclipse.jetty.util.component.ContainerLifeCycle.stop(ContainerLifeCycle.java:142)
at org.eclipse.jetty.util.component.ContainerLifeCycle.doStop(ContainerLifeCycle.java:160)
at org.eclipse.jetty.websocket.jsr356.ClientContainer.doStop(ClientContainer.java:214)
at org.eclipse.jetty.util.component.AbstractLifeCycle.stop(AbstractLifeCycle.java:89)
at org.eclipse.jetty.util.thread.ShutdownThread.run(ShutdownThread.java:138)
Caused by: java.lang.ClassNotFoundException: org.eclipse.jetty.websocket.server.NativeWebSocketConfiguration$PersistedWebSocketCreator
at org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy.loadClass(SelfFirstStrategy.java:50)
at org.codehaus.plexus.classworlds.realm.ClassRealm.unsynchronizedLoadClass(ClassRealm.java:271)
at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:247)
at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:239)
... 10 more

把这个目录删掉 D:\var\lib\hotplug

@wendal ,非常感谢,idea,与Eclipse都运行起来了

@wendal ,在idea中,我修改了core的代码,需要产生效果,要如何做呀,我现在修改了,重新运行项目,没有起作用!

执行一下install

话说idea不会自动build和install的吗?不太可能吧

来自炫酷的 NutzCN

我还是不知道在eclips里怎么打开nutz-book-project ?

导入为maven项目

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