NutzCN Logo
问答 新加的包t-io,但是打包时候这个t-io打包不进去,请教
发布于 2560天前 作者 shuxinyun 1865 次浏览 复制 上一个帖子 下一个帖子
标签: nutzwk
[ERROR] /D:/product/document/engine/wk-app/wk-web/src/main/java/cn/wizzer/app/web/commons/services/socket/HandlerInterface.java:[3,20] 程序包org.tio.core不存在
[ERROR] /D:/product/document/engine/wk-app/wk-web/src/main/java/cn/wizzer/app/web/commons/services/socket/HandlerInterface.java:[12,33] 找不到符号
[ERROR]   符号:   类 ChannelContext
[ERROR]   位置: 接口 cn.wizzer.app.web.commons.services.socket.HandlerInterface
[ERROR] /D:/product/document/engine/wk-app/wk-web/src/main/java/cn/wizzer/app/web/commons/services/socket/SocketService.java:[8,22] 程序包org.tio.server不存在
[ERROR] /D:/product/document/engine/wk-app/wk-web/src/main/java/cn/wizzer/app/web/commons/services/socket/SocketService.java:[9,32] 程序包org.tio.websocket.server不存在
[ERROR] /D:/product/document/engine/wk-app/wk-web/src/main/java/cn/wizzer/app/web/commons/services/socket/SocketService.java:[10,40] 程序包org.tio.websocket.server.handler不存在
[ERROR] /D:/product/document/engine/wk-app/wk-web/src/main/java/cn/wizzer/app/web/commons/services/socket/SocketService.java:[17,19] 找不到符号
[ERROR]   符号:   类 ServerGroupContext
[ERROR]   位置: 类 cn.wizzer.app.web.commons.services.socket.SocketService
[ERROR] /D:/product/document/engine/wk-app/wk-web/src/main/java/cn/wizzer/app/web/commons/services/socket/handler/NotifyHandler.java:[9,20] 程序包org.tio.core不存在
[ERROR] /D:/product/document/engine/wk-app/wk-web/src/main/java/cn/wizzer/app/web/commons/services/socket/handler/NotifyHandler.java:[10,20] 程序包org.tio.core 不存在
[ERROR] /D:/product/document/engine/wk-app/wk-web/src/main/java/cn/wizzer/app/web/commons/services/socket/handler/NotifyHandler.java:[11,26] 程序包org.tio.utils.lock不存在
[ERROR] /D:/product/document/engine/wk-app/wk-web/src/main/java/cn/wizzer/app/web/commons/services/socket/handler/NotifyHandler.java:[12,32] 程序包org.tio.websocket.common不存在
[ERROR] /D:/product/document/engine/wk-app/wk-web/src/main/java/cn/wizzer/app/web/commons/services/socket/handler/NotifyHandler.java:[13,40] 程序包org.tio.websocket.server.handler不存在
[ERROR] /D:/product/document/engine/wk-app/wk-web/src/main/java/cn/wizzer/app/web/commons/services/socket/handler/NotifyHandler.java:[23,40] 找不到符号
[ERROR]   符号:   类 ChannelContext
[ERROR]   位置: 类 cn.wizzer.app.web.commons.services.socket.handler.NotifyHandler
[ERROR] /D:/product/document/engine/wk-app/wk-web/src/main/java/cn/wizzer/app/web/commons/services/socket/SocketUtils.java:[4,20] 程序包org.tio.core不存在
[ERROR] /D:/product/document/engine/wk-app/wk-web/src/main/java/cn/wizzer/app/web/commons/services/socket/SocketUtils.java:[5,25] 程序包org.tio.core.intf不存在
[ERROR] /D:/product/document/engine/wk-app/wk-web/src/main/java/cn/wizzer/app/web/commons/services/socket/SocketUtils.java:[6,32] 程序包org.tio.websocket.common不存在
[ERROR] /D:/product/document/engine/wk-app/wk-web/src/main/java/cn/wizzer/app/web/commons/services/socket/SocketUtils.java:[9,52] 找不到符号
[ERROR]   符号:   类 Packet
[ERROR]   位置: 类 cn.wizzer.app.web.commons.services.socket.SocketUtils
[ERROR] /D:/product/document/engine/wk-app/wk-web/src/main/java/cn/wizzer/app/web/commons/services/socket/SocketUtils.java:[19,19] 找不到符号
[ERROR]   符号:   类 WsResponse
[ERROR]   位置: 类 cn.wizzer.app.web.commons.services.socket.SocketUtils
[ERROR] /D:/product/document/engine/wk-app/wk-web/src/main/java/cn/wizzer/app/web/commons/services/socket/WsMsgHandler.java:[15,20] 程序包org.tio.core不存在
[ERROR] /D:/product/document/engine/wk-app/wk-web/src/main/java/cn/wizzer/app/web/commons/services/socket/WsMsgHandler.java:[16,20] 程序包org.tio.core不存在
[ERROR] /D:/product/document/engine/wk-app/wk-web/src/main/java/cn/wizzer/app/web/commons/services/socket/WsMsgHandler.java:[17,20] 程序包org.tio.core不存在
[ERROR] /D:/product/document/engine/wk-app/wk-web/src/main/java/cn/wizzer/app/web/commons/services/socket/WsMsgHandler.java:[18,27] 程序包org.tio.http.common不 存在
[ERROR] /D:/product/document/engine/wk-app/wk-web/src/main/java/cn/wizzer/app/web/commons/services/socket/WsMsgHandler.java:[19,27] 程序包org.tio.http.common不 存在
[ERROR] /D:/product/document/engine/wk-app/wk-web/src/main/java/cn/wizzer/app/web/commons/services/socket/WsMsgHandler.java:[20,26] 程序包org.tio.utils.lock不存在
[ERROR] /D:/product/document/engine/wk-app/wk-web/src/main/java/cn/wizzer/app/web/commons/services/socket/WsMsgHandler.java:[21,32] 程序包org.tio.websocket.common不存在
[ERROR] /D:/product/document/engine/wk-app/wk-web/src/main/java/cn/wizzer/app/web/commons/services/socket/WsMsgHandler.java:[22,40] 程序包org.tio.websocket.server.handler不存在
[ERROR] /D:/product/document/engine/wk-app/wk-web/src/main/java/cn/wizzer/app/web/commons/services/socket/WsMsgHandler.java:[28,38] 找不到符号
[ERROR]   符号: 类 IWsMsgHandler
[ERROR] /D:/product/document/engine/wk-app/wk-web/src/main/java/cn/wizzer/app/web/commons/services/socket/WsMsgHandler.java:[48,35] 找不到符号
[ERROR]   符号:   类 HttpRequest
[ERROR]   位置: 类 cn.wizzer.app.web.commons.services.socket.WsMsgHandler
[ERROR] /D:/product/document/engine/wk-app/wk-web/src/main/java/cn/wizzer/app/web/commons/services/socket/WsMsgHandler.java:[48,56] 找不到符号
[ERROR]   符号:   类 HttpResponse
[ERROR]   位置: 类 cn.wizzer.app.web.commons.services.socket.WsMsgHandler
[ERROR] /D:/product/document/engine/wk-app/wk-web/src/main/java/cn/wizzer/app/web/commons/services/socket/WsMsgHandler.java:[48,83] 找不到符号
[ERROR]   符号:   类 ChannelContext
[ERROR]   位置: 类 cn.wizzer.app.web.commons.services.socket.WsMsgHandler
[ERROR] /D:/product/document/engine/wk-app/wk-web/src/main/java/cn/wizzer/app/web/commons/services/socket/WsMsgHandler.java:[48,12] 找不到符号
[ERROR]   符号:   类 HttpResponse
[ERROR]   位置: 类 cn.wizzer.app.web.commons.services.socket.WsMsgHandler
[ERROR] /D:/product/document/engine/wk-app/wk-web/src/main/java/cn/wizzer/app/web/commons/services/socket/WsMsgHandler.java:[85,39] 找不到符号
[ERROR]   符号:   类 ChannelContext
[ERROR]   位置: 类 cn.wizzer.app.web.commons.services.socket.WsMsgHandler
[ERROR] /D:/product/document/engine/wk-app/wk-web/src/main/java/cn/wizzer/app/web/commons/services/socket/WsMsgHandler.java:[102,27] 找不到符号
[ERROR]   符号:   类 WsRequest
[ERROR]   位置: 类 cn.wizzer.app.web.commons.services.socket.WsMsgHandler
[ERROR] /D:/product/document/engine/wk-app/wk-web/src/main/java/cn/wizzer/app/web/commons/services/socket/WsMsgHandler.java:[102,62] 找不到符号
[ERROR]   符号:   类 ChannelContext
[ERROR]   位置: 类 cn.wizzer.app.web.commons.services.socket.WsMsgHandler
[ERROR] /D:/product/document/engine/wk-app/wk-web/src/main/java/cn/wizzer/app/web/commons/services/socket/WsMsgHandler.java:[119,40] 找不到符号
[ERROR]   符号:   类 ChannelContext
[ERROR]   位置: 类 cn.wizzer.app.web.commons.services.socket.WsMsgHandler
[ERROR] /D:/product/document/engine/wk-app/wk-web/src/main/java/cn/wizzer/app/web/commons/services/socket/WsMsgHandler.java:[134,27] 找不到符号
[ERROR]   符号:   类 WsRequest
[ERROR]   位置: 类 cn.wizzer.app.web.commons.services.socket.WsMsgHandler
[ERROR] /D:/product/document/engine/wk-app/wk-web/src/main/java/cn/wizzer/app/web/commons/services/socket/WsMsgHandler.java:[134,62] 找不到符号
[ERROR]   符号:   类 ChannelContext
[ERROR]   位置: 类 cn.wizzer.app.web.commons.services.socket.WsMsgHandler
[ERROR] /D:/product/document/engine/wk-app/wk-web/src/main/java/cn/wizzer/app/web/commons/services/socket/WsMsgHandler.java:[148,26] 找不到符号
[ERROR]   符号:   类 WsRequest
[ERROR]   位置: 类 cn.wizzer.app.web.commons.services.socket.WsMsgHandler
[ERROR] /D:/product/document/engine/wk-app/wk-web/src/main/java/cn/wizzer/app/web/commons/services/socket/WsMsgHandler.java:[148,60] 找不到符号
[ERROR]   符号:   类 ChannelContext
[ERROR]   位置: 类 cn.wizzer.app.web.commons.services.socket.WsMsgHandler
[ERROR] -> [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/MojoFailureException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn <goals> -rf :wk-web
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building wk-framework 4.0.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
Downloading: https://jfrog.nutz.cn/artifactory/snapshots/org/nutz/nutz/1.r.65-SNAPSHOT/maven-metadata.xml
Downloaded: https://jfrog.nutz.cn/artifactory/snapshots/org/nutz/nutz/1.r.65-SNAPSHOT/maven-metadata.xml (963 B at 2.1 kB/s)
Downloading: https://jfrog.nutz.cn/artifactory/snapshots/org/nutz/nutz-plugins-daocache/1.r.65-SNAPSHOT/maven-metadata.xml
Downloaded: https://jfrog.nutz.cn/artifactory/snapshots/org/nutz/nutz-plugins-daocache/1.r.65-SNAPSHOT/maven-metadata.xml (980 B at 21 kB/s)
Downloading: https://jfrog.nutz.cn/artifactory/snapshots/org/nutz/nutzmore/1.r.65-SNAPSHOT/maven-metadata.xml
Downloaded: https://jfrog.nutz.cn/artifactory/snapshots/org/nutz/nutzmore/1.r.65-SNAPSHOT/maven-metadata.xml (576 B at 11 kB/s)
Downloading: https://jfrog.nutz.cn/artifactory/snapshots/org/nutz/nutz-plugins-cache/1.r.65-SNAPSHOT/maven-metadata.xml
Downloaded: https://jfrog.nutz.cn/artifactory/snapshots/org/nutz/nutz-plugins-cache/1.r.65-SNAPSHOT/maven-metadata.xml (977 B at 21 kB/s)
Downloading: https://jfrog.nutz.cn/artifactory/snapshots/org/nutz/nutz-integration-jedis/1.r.65-SNAPSHOT/maven-metadata.xml
Downloaded: https://jfrog.nutz.cn/artifactory/snapshots/org/nutz/nutz-integration-jedis/1.r.65-SNAPSHOT/maven-metadata.xml (981 B at 18 kB/s)
Downloading: https://jfrog.nutz.cn/artifactory/snapshots/org/nutz/nutz-integration-quartz/1.r.65-SNAPSHOT/maven-metadata.xml
Downloaded: https://jfrog.nutz.cn/artifactory/snapshots/org/nutz/nutz-integration-quartz/1.r.65-SNAPSHOT/maven-metadata.xml (982 B at 12 kB/s)
Downloading: https://jfrog.nutz.cn/artifactory/snapshots/org/nutz/nutz-plugins-wkcache/1.r.65-SNAPSHOT/maven-metadata.xml
Downloaded: https://jfrog.nutz.cn/artifactory/snapshots/org/nutz/nutz-plugins-wkcache/1.r.65-SNAPSHOT/maven-metadata.xml (979 B at 7.7 kB/s)
Downloading: https://jfrog.nutz.cn/artifactory/snapshots/org/nutz/nutzwx/1.r.65-SNAPSHOT/maven-metadata.xml
Downloaded: https://jfrog.nutz.cn/artifactory/snapshots/org/nutz/nutzwx/1.r.65-SNAPSHOT/maven-metadata.xml (961 B at 5.1 kB/s)
Downloading: https://jfrog.nutz.cn/artifactory/snapshots/org/nutz/nutz-plugins-views/1.r.65-SNAPSHOT/maven-metadata.xml
Downloaded: https://jfrog.nutz.cn/artifactory/snapshots/org/nutz/nutz-plugins-views/1.r.65-SNAPSHOT/maven-metadata.xml (977 B at 5.9 kB/s)
Downloading: https://jfrog.nutz.cn/artifactory/snapshots/org/nutz/nutz-integration-rabbitmq/1.r.65-SNAPSHOT/maven-metadata.xml
Downloaded: https://jfrog.nutz.cn/artifactory/snapshots/org/nutz/nutz-integration-rabbitmq/1.r.65-SNAPSHOT/maven-metadata.xml (984 B at 6.5 kB/s)
Downloading: https://jfrog.nutz.cn/artifactory/snapshots/org/nutz/nutz-plugins-mock/1.r.65-SNAPSHOT/maven-metadata.xml
Downloaded: https://jfrog.nutz.cn/artifactory/snapshots/org/nutz/nutz-plugins-mock/1.r.65-SNAPSHOT/maven-metadata.xml (976 B at 14 kB/s)
Downloading: https://jfrog.nutz.cn/artifactory/snapshots/cn/wizzer/wk-code-generator/4.0.1-SNAPSHOT/maven-metadata.xml
Downloaded: https://jfrog.nutz.cn/artifactory/snapshots/cn/wizzer/wk-code-generator/4.0.1-SNAPSHOT/maven-metadata.xml (755 B at 4.7 kB/s)
Downloading: https://jfrog.nutz.cn/artifactory/snapshots/org/nutz/nutz/1.r.62-SNAPSHOT/maven-metadata.xml
Downloaded: https://jfrog.nutz.cn/artifactory/snapshots/org/nutz/nutz/1.r.62-SNAPSHOT/maven-metadata.xml (963 B at 21 kB/s)
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ wk-framework ---
[INFO] Deleting d:\product\document\engine\wk-framework\target
[INFO]
[INFO] --- maven-resources-plugin:3.0.2:resources (default-resources) @ wk-framework ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory d:\product\document\engine\wk-framework\src\main\resources
[INFO]
[INFO] --- maven-compiler-plugin:3.6.1:compile (default-compile) @ wk-framework ---
[INFO] Compiling 37 source files to d:\product\document\engine\wk-framework\target\classes
[INFO]
[INFO] --- maven-resources-plugin:3.0.2:testResources (default-testResources) @ wk-framework ---
[INFO] Not copying test resources
[INFO]
[INFO] --- maven-compiler-plugin:3.6.1:testCompile (default-testCompile) @ wk-framework ---
[INFO] Not compiling test sources
[INFO]
[INFO] --- maven-surefire-plugin:2.19.1:test (default-test) @ wk-framework ---
[INFO] Tests are skipped.
[INFO]
[INFO] --- maven-jar-plugin:3.0.2:jar (default-jar) @ wk-framework ---
[INFO] Building jar: d:\product\document\engine\wk-framework\target\wk-framework-4.0.1-SNAPSHOT.jar
[INFO]
[INFO] --- maven-resources-plugin:3.0.2:resources (default-resources) @ wk-framework ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory d:\product\document\engine\wk-framework\src\main\resources
[INFO]
[INFO] --- maven-compiler-plugin:3.6.1:compile (default-compile) @ wk-framework ---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] --- maven-resources-plugin:3.0.2:testResources (default-testResources) @ wk-framework ---
[INFO] Not copying test resources
[INFO]
[INFO] --- maven-compiler-plugin:3.6.1:testCompile (default-testCompile) @ wk-framework ---
[INFO] Not compiling test sources
[INFO]
[INFO] --- maven-surefire-plugin:2.19.1:test (default-test) @ wk-framework ---
[INFO] Tests are skipped.
[INFO]
[INFO] --- maven-jar-plugin:3.0.2:jar (default-jar) @ wk-framework ---
[INFO]
[INFO] --- maven-install-plugin:2.4:install (default-install) @ wk-framework ---
[INFO] Installing d:\product\document\engine\wk-framework\target\wk-framework-4.0.1-SNAPSHOT.jar to C:\Users\shufu_000\.m2\repository\cn\wizzer\wk-framework\4.0.1-SNAPSHOT\wk-framework-4.0.1-SNAPSHOT.jar
[INFO] Installing d:\product\document\engine\wk-framework\pom.xml to C:\Users\shufu_000\.m2\repository\cn\wizzer\wk-framework\4.0.1-SNAPSHOT\wk-framework-4.0.1-SNAPSHOT.pom
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 15.210 s
[INFO] Finished at: 2017-12-19T09:54:57+08:00
[INFO] Final Memory: 33M/236M
[INFO] ------------------------------------------------------------------------
[INFO] Scanning for projects...
[ERROR] [ERROR] Some problems were encountered while processing the POMs:
[FATAL] Non-parseable POM d:\product\document\engine\wk-starter\pom.xml: expected START_TAG or END_TAG not TEXT (position: TEXT seen ...</dependency>d:\r\n\t\t<d... @48:5)  @ line 48, column 5
 @
[ERROR] The build could not read 1 project -> [Help 1]
[ERROR]
[ERROR]   The project  (d:\product\document\engine\wk-starter\pom.xml) has 1 error
[ERROR]     Non-parseable POM d:\product\document\engine\wk-starter\pom.xml: expected START_TAG or END_TAG not TEXT (position: TEXT seen ...</dependency>d:\r\n\t\t<d... @48:5)  @ line 48, column 5 -> [Help 2]
[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/ProjectBuildingException
[ERROR] [Help 2] http://cwiki.apache.org/confluence/display/MAVEN/ModelParseException
Error: Unable to access jarfile starter.jar
Traceback (most recent call last):
  File "D:\product\document\engine\build.py", line 31, in <module>
    subprocess.check_call("java -jar starter.jar -inject ROOT.war -output engine.jar", shell=True, cwd="dst/")
  File "C:\Users\shufu_000\AppData\Local\Programs\Python\Python36\lib\subprocess.py", line 291, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command 'java -jar starter.jar -inject ROOT.war -output engine.jar' returned non-zero exit status 1.
6 回复

是否哪儿设置不到位呀,@wendal

maven项目加依赖是改pom.xml,不能直接引用的

我在wk-parent的pom中加入的,编译运行都正常,就是build.py出错!

<dependency>
            <groupId>org.t-io</groupId>
            <artifactId>tio-websocket-server</artifactId>
            <version>0.0.4-tio-websocket</version>
            <exclusions>
                <exclusion>
                    <artifactId>log4j-over-slf4j</artifactId>
                    <groupId>org.slf4j</groupId>
                </exclusion>
                <exclusion> <groupId>org.slf4j</groupId> <artifactId>slf4j-log4j12</artifactId></exclusion>
                <exclusion> <groupId>log4j</groupId> <artifactId>log4j</artifactId> </exclusion>
            </exclusions>
        </dependency>
        <dependency>
            <groupId>org.t-io</groupId>
            <artifactId>tio-core</artifactId>
            <version>2.0.3.v20171215-RELEASE</version>
            <exclusions>
                <exclusion>
                    <artifactId>log4j-over-slf4j</artifactId>
                    <groupId>org.slf4j</groupId>
                </exclusion>
                <exclusion> <groupId>org.slf4j</groupId> <artifactId>slf4j-log4j12</artifactId></exclusion>
                <exclusion> <groupId>log4j</groupId> <artifactId>log4j</artifactId> </exclusion>
            </exclusions>
        </dependency>

先install一次嘛

@wendal 谢谢,install后完美解决!看来每次新增包后都需要如此了!上次你也这么提示过,忘记了!

话说... 得修正一下build.py的节奏

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