NutzCN Logo
问答 NB在window下运行无误,在linux ubuntu下报如下错误
发布于 2204天前 作者 shuxinyun 2036 次浏览 复制 上一个帖子 下一个帖子
标签:
[DEBUG] 15:47:01.584 org.jim.server.handler.ProtocolHandlerConfigurationFactory.parseConfiguration(ProtocolHandlerConfigurationFactory.java:62) - Configuring server_handler from URL: jar:file:/home/shufu/.m2/repository/org/j-im/jim-server/2.5.0.v20181127-RELEASE/jim-server-2.5.0.v20181127-RELEASE.jar!/org/jim/server/handler/protocol_handler.properties
[DEBUG] 15:47:01.584 org.jim.server.handler.ProtocolHandlerConfigurationFactory.parseConfiguration(ProtocolHandlerConfigurationFactory.java:109) - Configuring server_handler from InputStream
[DEBUG] 15:47:01.616 org.nutz.ioc.impl.ScopeContext.remove(ScopeContext.java:85) - Remove object 'mainLauncher' from [app] 
[ERROR] 15:47:01.616 org.nutz.boot.NbApp.execute(NbApp.java:220) - something happen!!
org.nutz.ioc.IocException: IocBean[mainLauncher] throw Exception when creating
	at org.nutz.ioc.impl.ObjectMakerImpl.make(ObjectMakerImpl.java:152)
	at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:241)
	at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:271)
	at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:161)
	at org.nutz.boot.NbApp.execute(NbApp.java:210)
	at org.nutz.boot.NbApp.run(NbApp.java:178)
	at shuxin.epei.im.MainLauncher.main(MainLauncher.java:43)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at org.codehaus.mojo.exec.ExecJavaMojo$1.run(ExecJavaMojo.java:282)
	at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.NoClassDefFoundError: io/github/lukehutch/fastclasspathscanner/matchprocessor/MethodAnnotationMatchProcessor
	at org.jim.server.http.HttpProtocolHandler.init(HttpProtocolHandler.java:74)
	at org.jim.server.handler.ProtocolHandlerManager.init(ProtocolHandlerManager.java:88)
	at org.jim.server.ImServerGroupContext.<init>(ImServerGroupContext.java:68)
	at org.jim.server.ImServerStarter.init(ImServerStarter.java:53)
	at org.jim.server.ImServerStarter.<init>(ImServerStarter.java:39)
	at org.jim.server.ImServerStarter.<init>(ImServerStarter.java:33)
	at shuxin.epei.im.jim.JimStarter.start(JimStarter.java:34)
	at shuxin.epei.im.MainLauncher.init(MainLauncher.java:35)
	at shuxin.epei.im.MainLauncher$FM$init$b207ebaee9627fad85b0fa0bef80b6db.invoke(MainLauncher.java)
	at org.nutz.ioc.impl.ObjectMakerImpl$2.trigger(ObjectMakerImpl.java:180)
	at org.nutz.ioc.weaver.DefaultWeaver.onCreate(DefaultWeaver.java:89)
	at org.nutz.ioc.impl.ObjectMakerImpl.make(ObjectMakerImpl.java:141)
	... 12 more
Caused by: java.lang.ClassNotFoundException: io.github.lukehutch.fastclasspathscanner.matchprocessor.MethodAnnotationMatchProcessor
	at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
	... 24 more
[INFO ] 15:47:01.626 org.eclipse.jetty.server.AbstractConnector.doStop(AbstractConnector.java:341) - Stopped ServerConnector@e7cf64b{HTTP/1.1,[http/1.1]}{0.0.0.0:8181}
[INFO ] 15:47:01.626 org.eclipse.jetty.server.session.HouseKeeper.stopScavenging(HouseKeeper.java:167) - node0 Stopped scavenging
[INFO ] 15:47:01.627 org.nutz.boot.starter.nutz.mvc.NbMvcLoading.depose(NbMvcLoading.java:54) - Nutz.Mvc[nutz] is deposing ...
 <properties>
        <nutzboot.version>2.3-SNAPSHOT</nutzboot.version>
        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
    </properties>
16 回复
 <dependency>
            <groupId>io.github.lukehutch</groupId>
            <artifactId>fast-classpath-scanner</artifactId>
            <version>1.9.18</version>
        </dependency>

打包成jar在windows正常不?

打包成jar在windows正常

jar:file:/home/shufu/.m2/repository/org/j-im/jim-server/2.5.0.v20181127-RELEASE/jim-server-2.5.0.v20181127-RELEASE.jar!/org/jim/server/handler/protocol_handler.properties

这是从nutzboot:run启动的?? 不然怎么从这里找配置文件呢

这个包我是直接安装在本地的,然后引用。

引用? 打包成jar之后, 运行时就是完整的呀, 不应该会出现这种查找日志啊

好像我的ubuntu环境有点问题,很多包找不到了,我先排查下!

等等, 你应该直接传nutzboot:shade的jar上去跑呀

我是直接在ubuntu上运行源代码,报错的,这份代码在window下运行或打包都没有问题

通过nutzboot:run运行的

用nutzboot:shade打包成jar

mvn clean package nutzboot:shade

打包没有报错,运行后报错:

[DEBUG] 16:20:16.203 org.nutz.ioc.impl.ScopeContext.remove(ScopeContext.java:85) - Remove object 'mainLauncher' from [app] 
[ERROR] 16:20:16.204 org.nutz.boot.NbApp.execute(NbApp.java:220) - something happen!!
org.nutz.ioc.IocException: IocBean[mainLauncher] throw Exception when creating
	at org.nutz.ioc.impl.ObjectMakerImpl.make(ObjectMakerImpl.java:152)
	at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:241)
	at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:271)
	at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:161)
	at org.nutz.boot.NbApp.execute(NbApp.java:210)
	at org.nutz.boot.NbApp.run(NbApp.java:178)
	at shuxin.epei.im.MainLauncher.main(MainLauncher.java:43)
Caused by: java.lang.NoClassDefFoundError: io/github/lukehutch/fastclasspathscanner/matchprocessor/MethodAnnotationMatchProcessor
	at org.jim.server.http.HttpProtocolHandler.init(HttpProtocolHandler.java:74)
	at org.jim.server.handler.ProtocolHandlerManager.init(ProtocolHandlerManager.java:88)
	at org.jim.server.ImServerGroupContext.<init>(ImServerGroupContext.java:68)
	at org.jim.server.ImServerStarter.init(ImServerStarter.java:53)
	at org.jim.server.ImServerStarter.<init>(ImServerStarter.java:39)
	at org.jim.server.ImServerStarter.<init>(ImServerStarter.java:33)
	at shuxin.epei.im.jim.JimStarter.start(JimStarter.java:34)
	at shuxin.epei.im.MainLauncher.init(MainLauncher.java:35)
	at shuxin.epei.im.MainLauncher$FM$init$fd3a93ac716761ef652deda007bf9ab8.invoke(MainLauncher.java)
	at org.nutz.ioc.impl.ObjectMakerImpl$2.trigger(ObjectMakerImpl.java:180)
	at org.nutz.ioc.weaver.DefaultWeaver.onCreate(DefaultWeaver.java:89)
	at org.nutz.ioc.impl.ObjectMakerImpl.make(ObjectMakerImpl.java:141)
	... 6 more
Caused by: java.lang.ClassNotFoundException: io.github.lukehutch.fastclasspathscanner.matchprocessor.MethodAnnotationMatchProcessor
	at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:349)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
	... 18 more
[INFO ] 16:20:16.218 org.eclipse.jetty.server.AbstractConnector.doStop(AbstractConnector.java:341) - Stopped ServerConnector@19648c40{HTTP/1.1,[http/1.1]}{0.0.0.0:8181}
[INFO ] 16:20:16.218 org.eclipse.jetty.server.session.HouseKeeper.stopScavenging(HouseKeeper.java:167) - node0 Stopped scavenging
[INFO ] 16:20:16.221 org.nutz.boot.starter.nutz.mvc.NbMvcLoading.depose(NbMvcLoading.java:54) - Nutz.Mvc[nutz] is deposing ...
[INFO ] 16:20:16.222 org.nutz.boot.starter.nutz.mvc.NbMvcLoading.depose(NbMvcLoading.java:70) - Nutz.Mvc[nutz] is down in 0ms

shufu@ubuntu:~/application/shuxin.epei.im$ mvn clean package nutzboot:shade
[INFO] Scanning for projects...
Downloading: http://jfrog.nutz.cn/artifactory/snapshots/org/nutz/nutzboot-parent/2.3-SNAPSHOT/maven-metadata.xml
Downloaded: http://jfrog.nutz.cn/artifactory/snapshots/org/nutz/nutzboot-parent/2.3-SNAPSHOT/maven-metadata.xml (598 B at 0.3 KB/sec)
Downloading: http://jfrog.nutz.cn/artifactory/snapshots/org/nutz/boot/nutzboot-maven-plugin/2.3-SNAPSHOT/maven-metadata.xml
Downloaded: http://jfrog.nutz.cn/artifactory/snapshots/org/nutz/boot/nutzboot-maven-plugin/2.3-SNAPSHOT/maven-metadata.xml (2 KB at 25.0 KB/sec)
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building im 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
Downloading: http://jfrog.nutz.cn/artifactory/snapshots/org/nutz/nutzboot-starter-swagger/2.3-SNAPSHOT/maven-metadata.xml
Downloaded: http://jfrog.nutz.cn/artifactory/snapshots/org/nutz/nutzboot-starter-swagger/2.3-SNAPSHOT/maven-metadata.xml (992 B at 26.2 KB/sec)
Downloading: http://jfrog.nutz.cn/artifactory/snapshots/org/nutz/nutzboot-starter/2.3-SNAPSHOT/maven-metadata.xml
Downloaded: http://jfrog.nutz.cn/artifactory/snapshots/org/nutz/nutzboot-starter/2.3-SNAPSHOT/maven-metadata.xml (599 B at 9.4 KB/sec)
Downloading: http://jfrog.nutz.cn/artifactory/snapshots/org/nutz/nutzboot-core/2.3-SNAPSHOT/maven-metadata.xml
Downloaded: http://jfrog.nutz.cn/artifactory/snapshots/org/nutz/nutzboot-core/2.3-SNAPSHOT/maven-metadata.xml (981 B at 16.5 KB/sec)
Downloading: http://jfrog.nutz.cn/artifactory/snapshots/org/nutz/nutz/1.r.67-SNAPSHOT/maven-metadata.xml
Downloaded: http://jfrog.nutz.cn/artifactory/snapshots/org/nutz/nutz/1.r.67-SNAPSHOT/maven-metadata.xml (2 KB at 39.1 KB/sec)
Downloading: http://jfrog.nutz.cn/artifactory/snapshots/org/nutz/nutzboot-starter-nutz-mvc/2.3-SNAPSHOT/maven-metadata.xml
Downloaded: http://jfrog.nutz.cn/artifactory/snapshots/org/nutz/nutzboot-starter-nutz-mvc/2.3-SNAPSHOT/maven-metadata.xml (993 B at 28.5 KB/sec)
Downloading: http://jfrog.nutz.cn/artifactory/snapshots/org/nutz/nutzboot-starter-jetty/2.3-SNAPSHOT/maven-metadata.xml
Downloaded: http://jfrog.nutz.cn/artifactory/snapshots/org/nutz/nutzboot-starter-jetty/2.3-SNAPSHOT/maven-metadata.xml (990 B at 22.5 KB/sec)
Downloading: http://jfrog.nutz.cn/artifactory/snapshots/org/nutz/nutz-plugins-websocket/1.r.67-SNAPSHOT/maven-metadata.xml
Downloaded: http://jfrog.nutz.cn/artifactory/snapshots/org/nutz/nutz-plugins-websocket/1.r.67-SNAPSHOT/maven-metadata.xml (2 KB at 36.0 KB/sec)
Downloading: http://jfrog.nutz.cn/artifactory/snapshots/org/nutz/nutzmore/1.r.67-SNAPSHOT/maven-metadata.xml
Downloaded: http://jfrog.nutz.cn/artifactory/snapshots/org/nutz/nutzmore/1.r.67-SNAPSHOT/maven-metadata.xml (597 B at 21.6 KB/sec)
Downloading: http://jfrog.nutz.cn/artifactory/snapshots/org/nutz/nutzboot-servlet3/2.3-SNAPSHOT/maven-metadata.xml
Downloaded: http://jfrog.nutz.cn/artifactory/snapshots/org/nutz/nutzboot-servlet3/2.3-SNAPSHOT/maven-metadata.xml (985 B at 35.6 KB/sec)
Downloading: http://jfrog.nutz.cn/artifactory/snapshots/org/nutz/nutzboot-starter-redis/2.3-SNAPSHOT/maven-metadata.xml
Downloaded: http://jfrog.nutz.cn/artifactory/snapshots/org/nutz/nutzboot-starter-redis/2.3-SNAPSHOT/maven-metadata.xml (990 B at 25.4 KB/sec)
Downloading: http://jfrog.nutz.cn/artifactory/snapshots/org/nutz/nutz-integration-jedis/1.r.67-SNAPSHOT/maven-metadata.xml
Downloaded: http://jfrog.nutz.cn/artifactory/snapshots/org/nutz/nutz-integration-jedis/1.r.67-SNAPSHOT/maven-metadata.xml (2 KB at 26.4 KB/sec)
Downloading: http://jfrog.nutz.cn/artifactory/snapshots/org/nutz/nutzboot-starter-quartz/2.3-SNAPSHOT/maven-metadata.xml
Downloaded: http://jfrog.nutz.cn/artifactory/snapshots/org/nutz/nutzboot-starter-quartz/2.3-SNAPSHOT/maven-metadata.xml (991 B at 25.5 KB/sec)
Downloading: http://jfrog.nutz.cn/artifactory/snapshots/org/nutz/nutz-integration-quartz/1.r.67-SNAPSHOT/maven-metadata.xml
Downloaded: http://jfrog.nutz.cn/artifactory/snapshots/org/nutz/nutz-integration-quartz/1.r.67-SNAPSHOT/maven-metadata.xml (2 KB at 38.4 KB/sec)
Downloading: http://jfrog.nutz.cn/artifactory/snapshots/org/nutz/nutzboot-starter-beetl/2.3-SNAPSHOT/maven-metadata.xml
Downloaded: http://jfrog.nutz.cn/artifactory/snapshots/org/nutz/nutzboot-starter-beetl/2.3-SNAPSHOT/maven-metadata.xml (990 B at 24.2 KB/sec)
Downloading: http://jfrog.nutz.cn/artifactory/snapshots/org/nutz/nutzboot-starter-wkcache/2.3-SNAPSHOT/maven-metadata.xml
Downloaded: http://jfrog.nutz.cn/artifactory/snapshots/org/nutz/nutzboot-starter-wkcache/2.3-SNAPSHOT/maven-metadata.xml (992 B at 30.3 KB/sec)
Downloading: http://jfrog.nutz.cn/artifactory/snapshots/org/nutz/nutz-plugins-wkcache/1.r.67-SNAPSHOT/maven-metadata.xml
Downloaded: http://jfrog.nutz.cn/artifactory/snapshots/org/nutz/nutz-plugins-wkcache/1.r.67-SNAPSHOT/maven-metadata.xml (2 KB at 39.6 KB/sec)
[INFO] 
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ im ---
[INFO] Deleting /home/shufu/application/shuxin.epei.im/target
[INFO] 
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ im ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 20 resources
[INFO] 
[INFO] --- maven-compiler-plugin:3.7.0:compile (default-compile) @ im ---
[INFO] Compiling 17 source files to /home/shufu/application/shuxin.epei.im/target/classes
[INFO] /home/shufu/application/shuxin.epei.im/src/main/java/shuxin/epei/im/ffmpeg/OutHandler.java: /home/shufu/application/shuxin.epei.im/src/main/java/shuxin/epei/im/ffmpeg/OutHandler.java uses or overrides a deprecated API.
[INFO] /home/shufu/application/shuxin.epei.im/src/main/java/shuxin/epei/im/ffmpeg/OutHandler.java: Recompile with -Xlint:deprecation for details.
[INFO] 
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ im ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /home/shufu/application/shuxin.epei.im/src/test/resources
[INFO] 
[INFO] --- maven-compiler-plugin:3.7.0:testCompile (default-testCompile) @ im ---
[INFO] No sources to compile
[INFO] 
[INFO] --- maven-surefire-plugin:2.17:test (default-test) @ im ---
[INFO] No tests to run.
[INFO] 
[INFO] --- maven-jar-plugin:2.4:jar (default-jar) @ im ---
[INFO] Building jar: /home/shufu/application/shuxin.epei.im/target/im-1.0-SNAPSHOT.jar
[INFO] 
[INFO] --- nutzboot-maven-plugin:2.3-SNAPSHOT:shade (default-cli) @ im ---
[INFO] Including org.nutz:nutzboot-starter-swagger:jar:2.3-SNAPSHOT in the shaded jar.
[INFO] Including io.swagger:swagger-servlet:jar:1.5.18 in the shaded jar.
[INFO] Including io.swagger:swagger-core:jar:1.5.18 in the shaded jar.
[INFO] Including com.fasterxml.jackson.core:jackson-annotations:jar:2.9.3 in the shaded jar.
[INFO] Including io.swagger:swagger-models:jar:1.5.18 in the shaded jar.
[INFO] Including io.swagger:swagger-annotations:jar:1.5.18 in the shaded jar.
[INFO] Including javax.validation:validation-api:jar:1.1.0.Final in the shaded jar.
[INFO] Including org.reflections:reflections:jar:0.9.11 in the shaded jar.
[INFO] Including org.javassist:javassist:jar:3.24.0-GA in the shaded jar.
[INFO] Including com.google.guava:guava:jar:20.0 in the shaded jar.
[INFO] Including org.nutz:nutzboot-core:jar:2.3-SNAPSHOT in the shaded jar.
[INFO] Including javax.servlet:javax.servlet-api:jar:3.1.0 in the shaded jar.
[INFO] Including org.nutz:nutzboot-starter-nutz-mvc:jar:2.3-SNAPSHOT in the shaded jar.
[INFO] Including org.nutz:nutzboot-starter-jetty:jar:2.3-SNAPSHOT in the shaded jar.
[INFO] Including org.eclipse.jetty:jetty-servlets:jar:9.4.14.v20181114 in the shaded jar.
[INFO] Including org.eclipse.jetty:jetty-continuation:jar:9.4.14.v20181114 in the shaded jar.
[INFO] Including org.eclipse.jetty:jetty-http:jar:9.4.14.v20181114 in the shaded jar.
[INFO] Including org.eclipse.jetty:jetty-util:jar:9.4.14.v20181114 in the shaded jar.
[INFO] Including org.eclipse.jetty:jetty-io:jar:9.4.14.v20181114 in the shaded jar.
[INFO] Including org.eclipse.jetty:jetty-webapp:jar:9.4.14.v20181114 in the shaded jar.
[INFO] Including org.eclipse.jetty:jetty-xml:jar:9.4.14.v20181114 in the shaded jar.
[INFO] Including org.eclipse.jetty:jetty-servlet:jar:9.4.14.v20181114 in the shaded jar.
[INFO] Including org.eclipse.jetty:jetty-security:jar:9.4.14.v20181114 in the shaded jar.
[INFO] Including org.eclipse.jetty:jetty-server:jar:9.4.14.v20181114 in the shaded jar.
[INFO] Including org.eclipse.jetty.websocket:websocket-server:jar:9.4.14.v20181114 in the shaded jar.
[INFO] Including org.eclipse.jetty.websocket:websocket-common:jar:9.4.14.v20181114 in the shaded jar.
[INFO] Including org.eclipse.jetty.websocket:websocket-api:jar:9.4.14.v20181114 in the shaded jar.
[INFO] Including org.eclipse.jetty.websocket:websocket-client:jar:9.4.14.v20181114 in the shaded jar.
[INFO] Including org.eclipse.jetty:jetty-client:jar:9.4.14.v20181114 in the shaded jar.
[INFO] Including org.eclipse.jetty.websocket:websocket-servlet:jar:9.4.14.v20181114 in the shaded jar.
[INFO] Including org.eclipse.jetty.websocket:javax-websocket-server-impl:jar:9.4.14.v20181114 in the shaded jar.
[INFO] Including org.eclipse.jetty:jetty-annotations:jar:9.4.14.v20181114 in the shaded jar.
[INFO] Including org.eclipse.jetty:jetty-plus:jar:9.4.14.v20181114 in the shaded jar.
[INFO] Including org.ow2.asm:asm-commons:jar:6.1.1 in the shaded jar.
[INFO] Including org.ow2.asm:asm-tree:jar:6.1.1 in the shaded jar.
[INFO] Including org.ow2.asm:asm-analysis:jar:6.1.1 in the shaded jar.
[INFO] Including org.eclipse.jetty.websocket:javax-websocket-client-impl:jar:9.4.14.v20181114 in the shaded jar.
[INFO] Including javax.websocket:javax.websocket-client-api:jar:1.0 in the shaded jar.
[INFO] Including javax.websocket:javax.websocket-api:jar:1.0 in the shaded jar.
[INFO] Including org.slf4j:jul-to-slf4j:jar:1.7.25 in the shaded jar.
[INFO] Including org.nutz:nutz-plugins-websocket:jar:1.r.67-SNAPSHOT in the shaded jar.
[INFO] Including org.nutz:nutzboot-servlet3:jar:2.3-SNAPSHOT in the shaded jar.
[INFO] Including javax.annotation:javax.annotation-api:jar:1.2 in the shaded jar.
[INFO] Including org.ow2.asm:asm:jar:6.1.1 in the shaded jar.
[INFO] Including org.nutz:nutzboot-starter-redis:jar:2.3-SNAPSHOT in the shaded jar.
[INFO] Including org.nutz:nutz-integration-jedis:jar:1.r.67-SNAPSHOT in the shaded jar.
[INFO] Including redis.clients:jedis:jar:2.9.0 in the shaded jar.
[INFO] Including org.apache.commons:commons-pool2:jar:2.4.2 in the shaded jar.
[INFO] Including org.nutz:nutzboot-starter-quartz:jar:2.3-SNAPSHOT in the shaded jar.
[INFO] Including org.nutz:nutz-integration-quartz:jar:1.r.67-SNAPSHOT in the shaded jar.
[INFO] Including org.nutz:nutz:jar:1.r.67-SNAPSHOT in the shaded jar.
[INFO] Including org.quartz-scheduler:quartz:jar:2.3.0 in the shaded jar.
[INFO] Including com.mchange:mchange-commons-java:jar:0.2.11 in the shaded jar.
[INFO] Including org.nutz:nutzboot-starter-beetl:jar:2.3-SNAPSHOT in the shaded jar.
[INFO] Including com.ibeetl:beetl:jar:2.9.3 in the shaded jar.
[INFO] Including org.antlr:antlr4-runtime:jar:4.5 in the shaded jar.
[INFO] Including org.abego.treelayout:org.abego.treelayout.core:jar:1.0.1 in the shaded jar.
[INFO] Including org.nutz:nutzboot-starter-wkcache:jar:2.3-SNAPSHOT in the shaded jar.
[INFO] Including org.nutz:nutz-plugins-wkcache:jar:1.r.67-SNAPSHOT in the shaded jar.
[INFO] Including com.aliyun:aliyun-java-sdk-core:jar:4.0.6 in the shaded jar.
[INFO] Including com.google.code.gson:gson:jar:2.8.2 in the shaded jar.
[INFO] Including org.apache.httpcomponents:httpclient:jar:4.5.3 in the shaded jar.
[INFO] Including org.apache.httpcomponents:httpcore:jar:4.4.6 in the shaded jar.
[INFO] Including commons-logging:commons-logging:jar:1.2 in the shaded jar.
[INFO] Including commons-codec:commons-codec:jar:1.9 in the shaded jar.
[INFO] Including javax.xml.bind:jaxb-api:jar:2.1 in the shaded jar.
[INFO] Including javax.xml.stream:stax-api:jar:1.0-2 in the shaded jar.
[INFO] Including com.sun.xml.bind:jaxb-core:jar:2.1.14 in the shaded jar.
[INFO] Including com.sun.xml.bind:jaxb-impl:jar:2.1 in the shaded jar.
[INFO] Including javax.activation:activation:jar:1.1.1 in the shaded jar.
[INFO] Including com.aliyun:aliyun-java-sdk-dysmsapi:jar:1.1.0 in the shaded jar.
[INFO] Including org.slf4j:slf4j-log4j12:jar:1.7.25 in the shaded jar.
[INFO] Including org.slf4j:slf4j-api:jar:1.7.25 in the shaded jar.
[INFO] Including log4j:log4j:jar:1.2.17 in the shaded jar.
[INFO] Including org.apache.commons:commons-lang3:jar:3.8.1 in the shaded jar.
[INFO] Including org.t-io:tio-core:jar:3.0.0.v20180520-RELEASE in the shaded jar.
[INFO] Including org.t-io:tio-utils:jar:3.0.0.v20180520-RELEASE in the shaded jar.
[INFO] Including org.apache.commons:commons-collections4:jar:4.1 in the shaded jar.
[INFO] Including org.apache.commons:commons-text:jar:1.3 in the shaded jar.
[INFO] Including cn.hutool:hutool-all:jar:4.0.12 in the shaded jar.
[INFO] Including com.github.ben-manes.caffeine:caffeine:jar:2.6.2 in the shaded jar.
[INFO] Including org.jodd:jodd-core:jar:4.3.2 in the shaded jar.
[INFO] Including org.apache.commons:commons-compress:jar:1.16.1 in the shaded jar.
[INFO] Including org.objenesis:objenesis:jar:2.6 in the shaded jar.
[INFO] Including org.redisson:redisson:jar:3.7.0 in the shaded jar.
[INFO] Including io.netty:netty-common:jar:4.1.24.Final in the shaded jar.
[INFO] Including io.netty:netty-codec:jar:4.1.24.Final in the shaded jar.
[INFO] Including io.netty:netty-buffer:jar:4.1.24.Final in the shaded jar.
[INFO] Including io.netty:netty-transport:jar:4.1.24.Final in the shaded jar.
[INFO] Including io.netty:netty-resolver:jar:4.1.24.Final in the shaded jar.
[INFO] Including io.netty:netty-resolver-dns:jar:4.1.24.Final in the shaded jar.
[INFO] Including io.netty:netty-codec-dns:jar:4.1.24.Final in the shaded jar.
[INFO] Including io.netty:netty-handler:jar:4.1.24.Final in the shaded jar.
[INFO] Including javax.cache:cache-api:jar:1.0.0 in the shaded jar.
[INFO] Including io.projectreactor:reactor-core:jar:3.1.7.RELEASE in the shaded jar.
[INFO] Including org.reactivestreams:reactive-streams:jar:1.0.2 in the shaded jar.
[INFO] Including com.fasterxml.jackson.dataformat:jackson-dataformat-yaml:jar:2.7.9 in the shaded jar.
[INFO] Including org.yaml:snakeyaml:jar:1.15 in the shaded jar.
[INFO] Including com.fasterxml.jackson.core:jackson-core:jar:2.7.9 in the shaded jar.
[INFO] Including com.fasterxml.jackson.core:jackson-databind:jar:2.7.9.2 in the shaded jar.
[INFO] Including net.bytebuddy:byte-buddy:jar:1.8.11 in the shaded jar.
[INFO] Including org.jodd:jodd-bean:jar:3.7.1 in the shaded jar.
[INFO] Including org.j-im:jim-common:jar:2.5.0.v20181127-RELEASE in the shaded jar.
[INFO] Including org.j-im:jim-server:jar:2.5.0.v20181127-RELEASE in the shaded jar.
[INFO] Including com.alibaba:fastjson:jar:1.2.35 in the shaded jar.
[INFO] Including shuxin.epei:common:jar:1.0 in the shaded jar.
[INFO] Including org.bouncycastle:bcprov-jdk16:jar:1.46 in the shaded jar.
[INFO] Including com.belerweb:pinyin4j:jar:2.5.1 in the shaded jar.
[INFO] Including com.jfinal:jfinal:jar:3.2 in the shaded jar.
[INFO] Including cglib:cglib-nodep:jar:3.2.5 in the shaded jar.
[INFO] Including io.github.lukehutch:fast-classpath-scanner:jar:1.9.18 in the shaded jar.
[INFO] Remove META-INF/LICENSE
[INFO] Remove META-INF/LICENSE.txt
[INFO] Remove META-INF/LICENSE
[INFO] Remove META-INF/NOTICE.txt
[INFO] Remove META-INF/LICENSE
[INFO] Remove META-INF/NOTICE.txt
[INFO] Remove META-INF/LICENSE
[INFO] Remove META-INF/NOTICE.txt
[INFO] Remove META-INF/LICENSE
[INFO] Remove META-INF/NOTICE.txt
[INFO] Remove META-INF/LICENSE
[INFO] Remove META-INF/NOTICE.txt
[INFO] Remove META-INF/LICENSE
[INFO] Remove META-INF/NOTICE.txt
[INFO] Remove META-INF/LICENSE
[INFO] Remove META-INF/NOTICE.txt
[INFO] Remove META-INF/LICENSE
[INFO] Remove META-INF/NOTICE.txt
[INFO] Remove META-INF/LICENSE
[INFO] Remove META-INF/NOTICE.txt
[INFO] Remove META-INF/LICENSE
[INFO] Remove META-INF/NOTICE.txt
[INFO] Remove META-INF/LICENSE
[INFO] Remove META-INF/NOTICE.txt
[INFO] Remove META-INF/LICENSE
[INFO] Remove META-INF/NOTICE.txt
[INFO] Remove META-INF/LICENSE
[INFO] Remove META-INF/NOTICE.txt
[INFO] Remove META-INF/LICENSE
[INFO] Remove META-INF/NOTICE.txt
[INFO] Remove META-INF/LICENSE
[INFO] Remove META-INF/NOTICE.txt
[INFO] Remove META-INF/LICENSE
[INFO] Remove META-INF/NOTICE.txt
[INFO] Remove META-INF/LICENSE
[INFO] Remove META-INF/NOTICE.txt
[INFO] Remove META-INF/LICENSE
[INFO] Remove META-INF/NOTICE.txt
[INFO] Remove META-INF/LICENSE
[INFO] Remove META-INF/NOTICE.txt
[WARNING] Discovered module-info.class. Shading will break its strong encapsulation.
[WARNING] Discovered module-info.class. Shading will break its strong encapsulation.
[WARNING] Discovered module-info.class. Shading will break its strong encapsulation.
[INFO] Remove META-INF/LICENSE
[INFO] Remove META-INF/NOTICE.txt
[INFO] Remove META-INF/LICENSE.txt
[WARNING] Discovered module-info.class. Shading will break its strong encapsulation.
[INFO] Remove META-INF/LICENSE.txt
[INFO] Remove META-INF/NOTICE.txt
[INFO] Remove META-INF/NOTICE
[INFO] Remove META-INF/LICENSE
[INFO] Remove META-INF/NOTICE
[INFO] Remove META-INF/LICENSE
[INFO] Remove META-INF/NOTICE.txt
[INFO] Remove META-INF/LICENSE.txt
[INFO] Remove META-INF/LICENSE.txt
[INFO] Remove META-INF/NOTICE.txt
[INFO] Remove META-INF/LICENSE.txt
[INFO] Remove META-INF/LICENSE
[INFO] Remove META-INF/NOTICE
[INFO] Remove META-INF/LICENSE.txt
[INFO] Remove META-INF/NOTICE.txt
[INFO] Remove META-INF/NOTICE.txt
[INFO] Remove META-INF/LICENSE.txt
[INFO] Remove META-INF/LICENSE.txt
[INFO] Remove META-INF/NOTICE.txt
[INFO] Remove META-INF/NOTICE.txt
[INFO] Remove META-INF/LICENSE.txt
[INFO] Remove META-INF/LICENSE
[INFO] Remove META-INF/NOTICE
[INFO] Remove META-INF/LICENSE
[INFO] Remove META-INF/NOTICE
[INFO] Remove META-INF/LICENSE
[INFO] Remove META-INF/NOTICE
[INFO] Remove META-INF/LICENSE
[INFO] Remove META-INF/NOTICE
[INFO] Remove META-INF/LICENSE.txt
[INFO] Remove META-INF/NOTICE.txt
[INFO] Remove META-INF/BCKEY.SF
[INFO] Remove META-INF/BCKEY.DSA
[INFO] Remove META-INF/LICENSE
[INFO] Remove META-INF/NOTICE
[WARNING] javax.websocket-api-1.0.jar, javax.websocket-client-api-1.0.jar define 45 overlapping classes: 
[WARNING]   - javax.websocket.Decoder$Text
[WARNING]   - javax.websocket.DeploymentException
[WARNING]   - javax.websocket.SendHandler
[WARNING]   - javax.websocket.ClientEndpointConfig
[WARNING]   - javax.websocket.SendResult
[WARNING]   - javax.websocket.Extension
[WARNING]   - javax.websocket.ClientEndpointConfig$Builder
[WARNING]   - javax.websocket.OnError
[WARNING]   - javax.websocket.PongMessage
[WARNING]   - javax.websocket.Decoder
[WARNING]   - 35 more...
[WARNING] antlr4-runtime-4.5.jar, org.abego.treelayout.core-1.0.1.jar define 19 overlapping classes: 
[WARNING]   - org.abego.treelayout.TreeForTreeLayout
[WARNING]   - org.abego.treelayout.TreeLayout$DumpConfiguration
[WARNING]   - org.abego.treelayout.Configuration
[WARNING]   - org.abego.treelayout.internal.util.java.lang.IterableUtil
[WARNING]   - org.abego.treelayout.util.DefaultTreeForTreeLayout
[WARNING]   - org.abego.treelayout.TreeLayout$NormalizedPosition
[WARNING]   - org.abego.treelayout.internal.util.java.util.IteratorUtil
[WARNING]   - org.abego.treelayout.internal.util.java.lang.IterableUtil$ReverseIterable
[WARNING]   - org.abego.treelayout.util.FixedNodeExtentProvider
[WARNING]   - org.abego.treelayout.util.AbstractTreeForTreeLayout
[WARNING]   - 9 more...
[WARNING] maven-shade-plugin has detected that some class files are
[WARNING] present in two or more JARs. When this happens, only one
[WARNING] single version of the class is copied to the uber jar.
[WARNING] Usually this is not harmful and you can skip these warnings,
[WARNING] otherwise try to manually exclude artifacts based on
[WARNING] mvn dependency:tree -Ddetail=true and the above output.
[WARNING] See http://maven.apache.org/plugins/maven-shade-plugin/
[INFO] Replacing original artifact with shaded artifact.
[INFO] Replacing /home/shufu/application/shuxin.epei.im/target/im-1.0-SNAPSHOT.jar with /home/shufu/application/shuxin.epei.im/target/im-1.0-SNAPSHOT-shaded.jar
[INFO] Dependency-reduced POM written at: /home/shufu/application/shuxin.epei.im/dependency-reduced-pom.xml
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 12.385 s
[INFO] Finished at: 2018-12-10T16:25:14+08:00
[INFO] Final Memory: 59M/472M
[INFO] ------------------------------------------------------------------------

fast-classpath-scanner版本问题吧

是版本不对,我挨个在pom里把这些第三方引入包都加了一次,再打包运行就不报错了!window下pom正常,ubuntu下就需要再次修改pom加入这些第三方引入包,不知什么缘故,

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