NutzCN Logo
问答 nutzboot想打入我idea的一个模块下,提示冲突了
发布于 296天前 作者 lambert 513 次浏览 复制 上一个帖子 下一个帖子
标签:

大牛好,我本体工程用的是1.62r,后来在我的本体工程中加了一个模块出来,想用于做微服务。但是会提示冲突,会和我的nutz基础包冲突,一直冲突。
如果我单独运行nutzboot的自动生成工程是有效的,是可以的,但是如果独立工程的话,这样会有一些类似于service的jar工程需要重新引入,如果不在一个大工程下,我不得来回的copy,但费劲了。
总结: 我核心解决的是不想把共用的jar包两边拷贝

13 回复

同时,我还想问一下,日志打完以后,它会被打到那个文件夹下呢?这方面的教程能不能写的再细一点,照顾一下我们这样的小白哈

该模块的pom.xml里面不设置parent就好了吧

大神你说的是不加入下面的这段代码吗?如果不加的话,那下面还有nutzboot-starter-swagger,这些就没有版本了,你是让我在下面的都加上版本吧?我理解的对吗?

<dependencyManagement>
		<dependencies>
			<dependency>
				<groupId>org.nutz</groupId>
				<artifactId>nutzboot-parent</artifactId>
				<version>${nutzboot.version}</version>
				<type>pom</type>
            	<scope>import</scope>
			</dependency>
		</dependencies>
	</dependencyManagement>

这一段

<parent>
 xxx
</parent>

在下载回来的pom.xml里是没有的,如下:

<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
		 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
	<modelVersion>4.0.0</modelVersion>
	<groupId>io.nutz</groupId>
	<artifactId>demo</artifactId>
	<version>1.0-SNAPSHOT</version>
	<packaging>jar</packaging>
	<properties>
		<nutzboot.version>2.2-SNAPSHOT</nutzboot.version>
		<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
	</properties>
	<dependencyManagement>
		<dependencies>
			<dependency>
				<groupId>org.nutz</groupId>
				<artifactId>nutzboot-parent</artifactId>
				<version>${nutzboot.version}</version>
				<type>pom</type>
            	<scope>import</scope>
			</dependency>
		</dependencies>
	</dependencyManagement>
	<dependencies>
		<dependency>
			<groupId>org.nutz</groupId>
			<artifactId>nutzboot-starter-swagger</artifactId>
		</dependency>
		<dependency>
			<groupId>org.nutz</groupId>
			<artifactId>nutzboot-starter-jetty</artifactId>
		</dependency>
		<dependency>
			<groupId>org.nutz</groupId>
			<artifactId>nutzboot-starter-nutz-mvc</artifactId>
		</dependency>
		<dependency>
			<groupId>org.nutz</groupId>
			<artifactId>nutzboot-starter-nutz-dao</artifactId>
		</dependency>
		<dependency>
			<groupId>org.nutz</groupId>
			<artifactId>nutzboot-starter-jdbc</artifactId>
		</dependency>
		<dependency>
			<groupId>com.alibaba</groupId>
			<artifactId>druid</artifactId>
		</dependency>
		<dependency>
			<groupId>org.nutz</groupId>
			<artifactId>nutzboot-starter-redis</artifactId>
		</dependency>
		<dependency>
			<groupId>org.nutz</groupId>
			<artifactId>nutzboot-starter-quartz</artifactId>
		</dependency>
		<dependency>
			<groupId>org.nutz</groupId>
			<artifactId>nutzboot-starter-weixin</artifactId>
			<version>${nutzboot.version}</version>
		</dependency>
		<dependency>
			<groupId>org.nutz</groupId>
			<artifactId>nutzboot-starter-tomcat</artifactId>
		</dependency>
		
		
		
		
		
		
		
		
		
		
		
		
		
		<dependency>
			<groupId>org.nutz</groupId>
			<artifactId>nutzboot-starter-ureport</artifactId>
		</dependency>
		<dependency>
			<groupId>org.nutz</groupId>
			<artifactId>nutzboot-starter-wkcache</artifactId>
		</dependency>
		<dependency>
			<groupId>org.nutz</groupId>
			<artifactId>nutzboot-starter-feign</artifactId>
		</dependency>
		
		
		
		
		<dependency>
			<groupId>org.slf4j</groupId>
			<artifactId>slf4j-log4j12</artifactId>
		</dependency>
		<dependency>
			<groupId>com.h2database</groupId>
			<artifactId>h2</artifactId>
			<version>1.4.196</version>
		</dependency>
		<dependency>
			<groupId>junit</groupId>
			<artifactId>junit</artifactId>
			<scope>test</scope>
		</dependency>
	</dependencies>
	<repositories>
		<repository>
			<id>nutz</id>
			<url>http://jfrog.nutz.cn/artifactory/libs-release</url>
		</repository>
		<repository>
			<id>nutz-snapshots</id>
			<url>http://jfrog.nutz.cn/artifactory/snapshots</url>
			<snapshots>
				<enabled>true</enabled>
				<updatePolicy>always</updatePolicy>
			</snapshots>
			<releases>
				<enabled>false</enabled>
			</releases>
		</repository>
	</repositories>
	<build>
		<plugins>
			<plugin>
				<artifactId>maven-compiler-plugin</artifactId>
				<version>3.7.0</version>
				<configuration>
					<source>1.8</source>
					<target>1.8</target>
					<compilerArgs>
						<arg>-parameters</arg>
					</compilerArgs>
					<useIncrementalCompilation>false</useIncrementalCompilation>
				</configuration>
			</plugin>
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-javadoc-plugin</artifactId>
				<version>2.10.3</version>
				<configuration>
					<additionalparam>-Xdoclint:none</additionalparam>
				</configuration>
			</plugin>
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-jar-plugin</artifactId>
				<version>3.0.2</version>
				<configuration>
					<archive>
						<manifest>
							<addDefaultImplementationEntries>true</addDefaultImplementationEntries>
							<mainClass>io.nutz.demo.MainLauncher</mainClass>
						</manifest>
					</archive>
				</configuration>
			</plugin>
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-shade-plugin</artifactId>
				<version>3.0.0</version>
				<executions>
					<execution>
						<phase>package</phase>
						<goals>
							<goal>shade</goal>
						</goals>
						<configuration>
							<transformers>
								<transformer implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer" />
								<transformer implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer">
									<resource>META-INF/nutz/org.nutz.boot.starter.NbStarter</resource>
								</transformer>
								<transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
									<mainClass>io.nutz.demo.MainLauncher</mainClass>
								</transformer>
							</transformers>
						</configuration>
					</execution>
				</executions>
			</plugin>
		</plugins>
	</build>
</project>

那放在你的项目里面应该没问题呢

你是指引用service模块的时候, nutz的版本号会冲突??

主动指定版本号就好了嘛

		<dependency>
			<groupId>org.nutz</groupId>
			<artifactId>nutz</artifactId>
		</dependency>

我是在我现有的大工程下加了一个新的,现在是在新的模块里加入pom.xml,自己就冲突了,这个pom.xml是从官网上下载回来的,我把冲突的信息写在下面:
在我的maven projects,点击打开org.nutz:nutzboot-core-2.2-SNAPSHOT,就会报下面的信息,而这些包都是我在大工程下已经引过的,我曾试着把该pom.xml里的内容直接放到大工程下,但是问题依旧
org.nutz:nutz:1.r.62(omitted for conflict with 1.r.62)
java.servlet:javax.servlet-api:3.1.0(omitted for duplicate)
org.slf4j:slf4j-api:1.7.21(omitted for conflict with 1.7.21)

搞定了,我挪到大工程下去了,这样就可以了

新问题是,java.lang.NoClassDefFoundError: org/nutz/ioc/IocEventListener 我查了一下我引入的nutzboot-core-2.2,发现确实没有locEventListener,只有一个locLoaderProvider,这不知道是不是我的版本出了问题?

/Library/Java/JavaVirtualMachines/jdk1.8.0_161.jdk/Contents/Home/bin/java -agentlib:jdwp=transport=dt_socket,address=127.0.0.1:59990,suspend=y,server=n -javaagent:/Users/lambert.liu/Library/Caches/IntelliJIdea2017.3/captureAgent/debugger-agent.jar=/private/var/folders/ky/z827mzfn1xb_t4_2jwp7rdc00000gn/T/capture829.props -Dfile.encoding=UTF-8 -classpath "/Library/Java/JavaVirtualMachines/jdk1.8.0_161.jdk/Contents/Home/jre/lib/charsets.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_161.jdk/Contents/Home/jre/lib/deploy.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_161.jdk/Contents/Home/jre/lib/ext/cldrdata.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_161.jdk/Contents/Home/jre/lib/ext/dnsns.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_161.jdk/Contents/Home/jre/lib/ext/jaccess.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_161.jdk/Contents/Home/jre/lib/ext/jfxrt.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_161.jdk/Contents/Home/jre/lib/ext/localedata.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_161.jdk/Contents/Home/jre/lib/ext/nashorn.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_161.jdk/Contents/Home/jre/lib/ext/sunec.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_161.jdk/Contents/Home/jre/lib/ext/sunjce_provider.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_161.jdk/Contents/Home/jre/lib/ext/sunpkcs11.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_161.jdk/Contents/Home/jre/lib/ext/zipfs.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_161.jdk/Contents/Home/jre/lib/javaws.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_161.jdk/Contents/Home/jre/lib/jce.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_161.jdk/Contents/Home/jre/lib/jfr.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_161.jdk/Contents/Home/jre/lib/jfxswt.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_161.jdk/Contents/Home/jre/lib/jsse.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_161.jdk/Contents/Home/jre/lib/management-agent.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_161.jdk/Contents/Home/jre/lib/plugin.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_161.jdk/Contents/Home/jre/lib/resources.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_161.jdk/Contents/Home/jre/lib/rt.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_161.jdk/Contents/Home/lib/ant-javafx.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_161.jdk/Contents/Home/lib/dt.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_161.jdk/Contents/Home/lib/javafx-mx.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_161.jdk/Contents/Home/lib/jconsole.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_161.jdk/Contents/Home/lib/packager.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_161.jdk/Contents/Home/lib/sa-jdi.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_161.jdk/Contents/Home/lib/tools.jar:/Users/lambert.liu/Documents/productFile/yiyun/4源代码/CreditsMall/yan/target/classes:/Users/lambert.liu/.m2/repository/org/nutz/nutzboot-starter-swagger/2.2-SNAPSHOT/nutzboot-starter-swagger-2.2-20180222.034355-82.jar:/Users/lambert.liu/.m2/repository/io/swagger/swagger-servlet/1.5.17/swagger-servlet-1.5.17.jar:/Users/lambert.liu/.m2/repository/io/swagger/swagger-core/1.5.17/swagger-core-1.5.17.jar:/Users/lambert.liu/.m2/repository/com/fasterxml/jackson/core/jackson-annotations/2.8.9/jackson-annotations-2.8.9.jar:/Users/lambert.liu/.m2/repository/com/fasterxml/jackson/core/jackson-databind/2.8.9/jackson-databind-2.8.9.jar:/Users/lambert.liu/.m2/repository/com/fasterxml/jackson/dataformat/jackson-dataformat-yaml/2.8.9/jackson-dataformat-yaml-2.8.9.jar:/Users/lambert.liu/.m2/repository/org/yaml/snakeyaml/1.17/snakeyaml-1.17.jar:/Users/lambert.liu/.m2/repository/io/swagger/swagger-models/1.5.17/swagger-models-1.5.17.jar:/Users/lambert.liu/.m2/repository/io/swagger/swagger-annotations/1.5.17/swagger-annotations-1.5.17.jar:/Users/lambert.liu/.m2/repository/javax/validation/validation-api/1.1.0.Final/validation-api-1.1.0.Final.jar:/Users/lambert.liu/.m2/repository/org/reflections/reflections/0.9.11/reflections-0.9.11.jar:/Users/lambert.liu/.m2/repository/org/javassist/javassist/3.21.0-GA/javassist-3.21.0-GA.jar:/Users/lambert.liu/.m2/repository/com/google/guava/guava/20.0/guava-20.0.jar:/Users/lambert.liu/.m2/repository/org/nutz/nutzboot-starter-jetty/2.2-SNAPSHOT/nutzboot-starter-jetty-2.2-20180222.034349-86.jar:/Users/lambert.liu/.m2/repository/org/eclipse/jetty/jetty-servlets/9.4.8.v20171121/jetty-servlets-9.4.8.v20171121.jar:/Users/lambert.liu/.m2/repository/org/eclipse/jetty/jetty-continuation/9.4.8.v20171121/jetty-continuation-9.4.8.v20171121.jar:/Users/lambert.liu/.m2/repository/org/eclipse/jetty/jetty-http/9.4.8.v20171121/jetty-http-9.4.8.v20171121.jar:/Users/lambert.liu/.m2/repository/org/eclipse/jetty/jetty-util/9.4.8.v20171121/jetty-util-9.4.8.v20171121.jar:/Users/lambert.liu/.m2/repository/org/eclipse/jetty/jetty-io/9.4.8.v20171121/jetty-io-9.4.8.v20171121.jar:/Users/lambert.liu/.m2/repository/org/eclipse/jetty/jetty-webapp/9.4.8.v20171121/jetty-webapp-9.4.8.v20171121.jar:/Users/lambert.liu/.m2/repository/org/eclipse/jetty/jetty-xml/9.4.8.v20171121/jetty-xml-9.4.8.v20171121.jar:/Users/lambert.liu/.m2/repository/org/eclipse/jetty/jetty-servlet/9.4.8.v20171121/jetty-servlet-9.4.8.v20171121.jar:/Users/lambert.liu/.m2/repository/org/eclipse/jetty/jetty-security/9.4.8.v20171121/jetty-security-9.4.8.v20171121.jar:/Users/lambert.liu/.m2/repository/org/eclipse/jetty/jetty-server/9.4.8.v20171121/jetty-server-9.4.8.v20171121.jar:/Users/lambert.liu/.m2/repository/org/eclipse/jetty/websocket/websocket-server/9.4.8.v20171121/websocket-server-9.4.8.v20171121.jar:/Users/lambert.liu/.m2/repository/org/eclipse/jetty/websocket/websocket-common/9.4.8.v20171121/websocket-common-9.4.8.v20171121.jar:/Users/lambert.liu/.m2/repository/org/eclipse/jetty/websocket/websocket-api/9.4.8.v20171121/websocket-api-9.4.8.v20171121.jar:/Users/lambert.liu/.m2/repository/org/eclipse/jetty/websocket/websocket-client/9.4.8.v20171121/websocket-client-9.4.8.v20171121.jar:/Users/lambert.liu/.m2/repository/org/eclipse/jetty/jetty-client/9.4.8.v20171121/jetty-client-9.4.8.v20171121.jar:/Users/lambert.liu/.m2/repository/org/eclipse/jetty/websocket/websocket-servlet/9.4.8.v20171121/websocket-servlet-9.4.8.v20171121.jar:/Users/lambert.liu/.m2/repository/org/eclipse/jetty/websocket/javax-websocket-server-impl/9.4.8.v20171121/javax-websocket-server-impl-9.4.8.v20171121.jar:/Users/lambert.liu/.m2/repository/org/eclipse/jetty/jetty-annotations/9.4.8.v20171121/jetty-annotations-9.4.8.v20171121.jar:/Users/lambert.liu/.m2/repository/org/eclipse/jetty/jetty-plus/9.4.8.v20171121/jetty-plus-9.4.8.v20171121.jar:/Users/lambert.liu/.m2/repository/javax/annotation/javax.annotation-api/1.2/javax.annotation-api-1.2.jar:/Users/lambert.liu/.m2/repository/org/ow2/asm/asm/6.0/asm-6.0.jar:/Users/lambert.liu/.m2/repository/org/ow2/asm/asm-commons/6.0/asm-commons-6.0.jar:/Users/lambert.liu/.m2/repository/org/ow2/asm/asm-tree/6.0/asm-tree-6.0.jar:/Users/lambert.liu/.m2/repository/org/eclipse/jetty/websocket/javax-websocket-client-impl/9.4.8.v20171121/javax-websocket-client-impl-9.4.8.v20171121.jar:/Users/lambert.liu/.m2/repository/javax/websocket/javax.websocket-client-api/1.0/javax.websocket-client-api-1.0.jar:/Users/lambert.liu/.m2/repository/javax/websocket/javax.websocket-api/1.0/javax.websocket-api-1.0.jar:/Users/lambert.liu/.m2/repository/org/slf4j/jul-to-slf4j/1.7.25/jul-to-slf4j-1.7.25.jar:/Users/lambert.liu/.m2/repository/org/nutz/nutz-plugins-websocket/1.r.66-SNAPSHOT/nutz-plugins-websocket-1.r.66-20180222.041440-11.jar:/Users/lambert.liu/.m2/repository/org/nutz/nutzboot-starter-nutz-mvc/2.2-SNAPSHOT/nutzboot-starter-nutz-mvc-2.2-20180222.034417-75.jar:/Users/lambert.liu/.m2/repository/org/nutz/nutzboot-starter-nutz-dao/2.2-SNAPSHOT/nutzboot-starter-nutz-dao-2.2-20180222.034353-85.jar:/Users/lambert.liu/.m2/repository/org/nutz/nutzboot-starter-redis/2.2-SNAPSHOT/nutzboot-starter-redis-2.2-20180222.034402-78.jar:/Users/lambert.liu/.m2/repository/org/nutz/nutz-integration-jedis/1.r.66-SNAPSHOT/nutz-integration-jedis-1.r.66-20180222.041358-11.jar:/Users/lambert.liu/.m2/repository/org/nutz/nutzboot-starter-quartz/2.2-SNAPSHOT/nutzboot-starter-quartz-2.2-20180222.034400-79.jar:/Users/lambert.liu/.m2/repository/org/nutz/nutzboot-starter-weixin/2.2-SNAPSHOT/nutzboot-starter-weixin-2.2-20180222.034359-80.jar:/Users/lambert.liu/.m2/repository/org/nutz/nutzboot-starter-tomcat/2.2-SNAPSHOT/nutzboot-starter-tomcat-2.2-20180222.034352-86.jar:/Users/lambert.liu/.m2/repository/org/apache/tomcat/embed/tomcat-embed-core/8.5.28/tomcat-embed-core-8.5.28.jar:/Users/lambert.liu/.m2/repository/org/apache/tomcat/tomcat-annotations-api/8.5.28/tomcat-annotations-api-8.5.28.jar:/Users/lambert.liu/.m2/repository/org/apache/tomcat/embed/tomcat-embed-websocket/8.5.28/tomcat-embed-websocket-8.5.28.jar:/Users/lambert.liu/.m2/repository/org/nutz/nutzboot-starter-ureport/2.2-SNAPSHOT/nutzboot-starter-ureport-2.2-20180222.034436-73.jar:/Users/lambert.liu/.m2/repository/com/bstek/ureport/ureport2-console/2.2.4/ureport2-console-2.2.4.jar:/Users/lambert.liu/.m2/repository/commons-fileupload/commons-fileupload/1.3.2/commons-fileupload-1.3.2.jar:/Users/lambert.liu/.m2/repository/commons-io/commons-io/2.2/commons-io-2.2.jar:/Users/lambert.liu/.m2/repository/org/apache/velocity/velocity/1.7/velocity-1.7.jar:/Users/lambert.liu/.m2/repository/com/bstek/ureport/ureport2-core/2.2.4/ureport2-core-2.2.4.jar:/Users/lambert.liu/.m2/repository/dom4j/dom4j/1.6.1/dom4j-1.6.1.jar:/Users/lambert.liu/.m2/repository/xml-apis/xml-apis/1.0.b2/xml-apis-1.0.b2.jar:/Users/lambert.liu/.m2/repository/org/springframework/spring-web/4.3.14.RELEASE/spring-web-4.3.14.RELEASE.jar:/Users/lambert.liu/.m2/repository/org/springframework/spring-aop/4.3.14.RELEASE/spring-aop-4.3.14.RELEASE.jar:/Users/lambert.liu/.m2/repository/org/springframework/spring-beans/4.3.14.RELEASE/spring-beans-4.3.14.RELEASE.jar:/Users/lambert.liu/.m2/repository/org/springframework/spring-context/4.3.14.RELEASE/spring-context-4.3.14.RELEASE.jar:/Users/lambert.liu/.m2/repository/org/springframework/spring-expression/4.3.14.RELEASE/spring-expression-4.3.14.RELEASE.jar:/Users/lambert.liu/.m2/repository/org/springframework/spring-core/4.3.14.RELEASE/spring-core-4.3.14.RELEASE.jar:/Users/lambert.liu/.m2/repository/org/springframework/spring-jdbc/4.3.14.RELEASE/spring-jdbc-4.3.14.RELEASE.jar:/Users/lambert.liu/.m2/repository/org/springframework/spring-tx/4.3.14.RELEASE/spring-tx-4.3.14.RELEASE.jar:/Users/lambert.liu/.m2/repository/com/itextpdf/itextpdf/5.5.10/itextpdf-5.5.10.jar:/Users/lambert.liu/.m2/repository/org/apache/poi/poi-ooxml/3.16/poi-ooxml-3.16.jar:/Users/lambert.liu/.m2/repository/org/apache/poi/poi/3.16/poi-3.16.jar:/Users/lambert.liu/.m2/repository/commons-codec/commons-codec/1.10/commons-codec-1.10.jar:/Users/lambert.liu/.m2/repository/org/apache/commons/commons-collections4/4.1/commons-collections4-4.1.jar:/Users/lambert.liu/.m2/repository/org/apache/poi/poi-ooxml-schemas/3.16/poi-ooxml-schemas-3.16.jar:/Users/lambert.liu/.m2/repository/com/github/virtuald/curvesapi/1.04/curvesapi-1.04.jar:/Users/lambert.liu/.m2/repository/org/apache/poi/poi-scratchpad/3.16/poi-scratchpad-3.16.jar:/Users/lambert.liu/.m2/repository/org/apache/poi/ooxml-schemas/1.3/ooxml-schemas-1.3.jar:/Users/lambert.liu/.m2/repository/org/apache/xmlbeans/xmlbeans/2.3.0/xmlbeans-2.3.0.jar:/Users/lambert.liu/.m2/repository/stax/stax-api/1.0.1/stax-api-1.0.1.jar:/Users/lambert.liu/.m2/repository/org/codehaus/jackson/jackson-mapper-asl/1.9.11/jackson-mapper-asl-1.9.11.jar:/Users/lambert.liu/.m2/repository/org/codehaus/jackson/jackson-core-asl/1.9.11/jackson-core-asl-1.9.11.jar:/Users/lambert.liu/.m2/repository/com/bstek/ureport/ureport2-font/2.0.1/ureport2-font-2.0.1.jar:/Users/lambert.liu/.m2/repository/org/nutz/nutz-integration-spring/1.r.66-SNAPSHOT/nutz-integration-spring-1.r.66-20180222.041409-11.jar:/Users/lambert.liu/.m2/repository/org/nutz/nutzboot-starter-wkcache/2.2-SNAPSHOT/nutzboot-starter-wkcache-2.2-20180222.034402-78.jar:/Users/lambert.liu/.m2/repository/org/nutz/nutz-plugins-wkcache/1.r.66-SNAPSHOT/nutz-plugins-wkcache-1.r.66-20180222.041441-11.jar:/Users/lambert.liu/.m2/repository/org/nutz/nutzboot-starter-feign/2.2-SNAPSHOT/nutzboot-starter-feign-2.2-20180222.034414-77.jar:/Users/lambert.liu/.m2/repository/io/github/openfeign/feign-core/9.5.1/feign-core-9.5.1.jar:/Users/lambert.liu/.m2/repository/io/github/openfeign/feign-slf4j/9.5.1/feign-slf4j-9.5.1.jar:/Users/lambert.liu/.m2/repository/io/github/openfeign/feign-hystrix/9.5.1/feign-hystrix-9.5.1.jar:/Users/lambert.liu/.m2/repository/com/netflix/archaius/archaius-core/0.6.6/archaius-core-0.6.6.jar:/Users/lambert.liu/.m2/repository/com/fasterxml/jackson/core/jackson-core/2.4.3/jackson-core-2.4.3.jar:/Users/lambert.liu/.m2/repository/com/netflix/hystrix/hystrix-core/1.5.12/hystrix-core-1.5.12.jar:/Users/lambert.liu/.m2/repository/org/hdrhistogram/HdrHistogram/2.1.9/HdrHistogram-2.1.9.jar:/Users/lambert.liu/.m2/repository/io/github/openfeign/feign-ribbon/9.5.1/feign-ribbon-9.5.1.jar:/Users/lambert.liu/.m2/repository/com/netflix/ribbon/ribbon-loadbalancer/2.2.4/ribbon-loadbalancer-2.2.4.jar:/Users/lambert.liu/.m2/repository/com/netflix/netflix-commons/netflix-statistics/0.1.1/netflix-statistics-0.1.1.jar:/Users/lambert.liu/.m2/repository/io/reactivex/rxjava/1.1.1/rxjava-1.1.1.jar:/Users/lambert.liu/.m2/repository/com/netflix/servo/servo-core/0.10.1/servo-core-0.10.1.jar:/Users/lambert.liu/.m2/repository/com/netflix/servo/servo-internal/0.10.1/servo-internal-0.10.1.jar:/Users/lambert.liu/.m2/repository/com/netflix/netflix-commons/netflix-commons-util/0.1.1/netflix-commons-util-0.1.1.jar:/Users/lambert.liu/.m2/repository/com/netflix/ribbon/ribbon-core/2.2.4/ribbon-core-2.2.4.jar:/Users/lambert.liu/.m2/repository/com/google/code/findbugs/annotations/2.0.0/annotations-2.0.0.jar:/Users/lambert.liu/.m2/repository/commons-configuration/commons-configuration/1.8/commons-configuration-1.8.jar:/Users/lambert.liu/.m2/repository/org/nutz/nutz-plugins-slog/1.r.62/nutz-plugins-slog-1.r.62.jar:/Users/lambert.liu/.m2/repository/org/projectlombok/lombok/1.14.4/lombok-1.14.4.jar:/Users/lambert.liu/.m2/repository/org/nutz/nutz/1.r.62/nutz-1.r.62.jar:/Users/lambert.liu/.m2/repository/org/nutz/nutzwx/1.r.62/nutzwx-1.r.62.jar:/Users/lambert.liu/.m2/repository/org/nutz/nutz-plugins-daocache/1.r.62/nutz-plugins-daocache-1.r.62.jar:/Users/lambert.liu/.m2/repository/org/nutz/nutz-integration-quartz/1.r.59/nutz-integration-quartz-1.r.59.jar:/Users/lambert.liu/.m2/repository/org/nutz/nutz-integration-shiro/1.r.59/nutz-integration-shiro-1.r.59.jar:/Users/lambert.liu/.m2/repository/com/vdurmont/emoji-java/3.1.3/emoji-java-3.1.3.jar:/Users/lambert.liu/.m2/repository/org/quartz-scheduler/quartz/2.2.3/quartz-2.2.3.jar:/Users/lambert.liu/.m2/repository/c3p0/c3p0/0.9.1.1/c3p0-0.9.1.1.jar:/Users/lambert.liu/.m2/repository/org/apache/shiro/shiro-web/1.2.5/shiro-web-1.2.5.jar:/Users/lambert.liu/.m2/repository/org/apache/shiro/shiro-core/1.2.5/shiro-core-1.2.5.jar:/Users/lambert.liu/.m2/repository/commons-beanutils/commons-beanutils/1.8.3/commons-beanutils-1.8.3.jar:/Users/lambert.liu/.m2/repository/org/slf4j/slf4j-log4j12/1.7.21/slf4j-log4j12-1.7.21.jar:/Users/lambert.liu/.m2/repository/org/slf4j/slf4j-api/1.7.21/slf4j-api-1.7.21.jar:/Users/lambert.liu/.m2/repository/log4j/log4j/1.2.17/log4j-1.2.17.jar:/Users/lambert.liu/.m2/repository/cn/apiclub/tool/simplecaptcha/1.2.2/simplecaptcha-1.2.2.jar:/Users/lambert.liu/.m2/repository/com/alibaba/druid/1.0.22/druid-1.0.22.jar:/Users/lambert.liu/.m2/repository/mysql/mysql-connector-java/5.1.39/mysql-connector-java-5.1.39.jar:/Users/lambert.liu/.m2/repository/net/sourceforge/jtds/jtds/1.3.1/jtds-1.3.1.jar:/Users/lambert.liu/.m2/repository/com/google/zxing/javase/3.2.1/javase-3.2.1.jar:/Users/lambert.liu/.m2/repository/com/google/zxing/core/3.2.1/core-3.2.1.jar:/Users/lambert.liu/.m2/repository/com/beust/jcommander/1.48/jcommander-1.48.jar:/Users/lambert.liu/.m2/repository/net/sf/ehcache/ehcache/2.10.2.2.21/ehcache-2.10.2.2.21.jar:/Users/lambert.liu/.m2/repository/redis/clients/jedis/2.8.1/jedis-2.8.1.jar:/Users/lambert.liu/.m2/repository/org/apache/commons/commons-pool2/2.4.2/commons-pool2-2.4.2.jar:/Users/lambert.liu/.m2/repository/org/apache/commons/commons-email/1.4/commons-email-1.4.jar:/Users/lambert.liu/.m2/repository/com/sun/mail/javax.mail/1.5.5/javax.mail-1.5.5.jar:/Users/lambert.liu/.m2/repository/javax/activation/activation/1.1.1/activation-1.1.1.jar:/Users/lambert.liu/.m2/repository/org/apache/commons/commons-lang3/3.4/commons-lang3-3.4.jar:/Users/lambert.liu/.m2/repository/org/apache/shiro/shiro-all/1.2.5/shiro-all-1.2.5.jar:/Users/lambert.liu/.m2/repository/commons-beanutils/commons-beanutils-core/1.8.3/commons-beanutils-core-1.8.3.jar:/Users/lambert.liu/.m2/repository/com/ibeetl/beetl/2.5.0/beetl-2.5.0.jar:/Users/lambert.liu/.m2/repository/org/antlr/antlr4-runtime/4.2/antlr4-runtime-4.2.jar:/Users/lambert.liu/.m2/repository/org/abego/treelayout/org.abego.treelayout.core/1.0.1/org.abego.treelayout.core-1.0.1.jar:/Users/lambert.liu/.m2/repository/org/antlr/antlr4-annotations/4.2/antlr4-annotations-4.2.jar:/Users/lambert.liu/.m2/repository/commons-collections/commons-collections/3.2.1/commons-collections-3.2.1.jar:/Users/lambert.liu/.m2/repository/commons-lang/commons-lang/2.6/commons-lang-2.6.jar:/Users/lambert.liu/.m2/repository/commons-logging/commons-logging/1.1/commons-logging-1.1.jar:/Users/lambert.liu/.m2/repository/javax/servlet/servlet-api/2.3/servlet-api-2.3.jar:/Users/lambert.liu/.m2/repository/org/brickred/socialauth/4.12/socialauth-4.12.jar:/Users/lambert.liu/.m2/repository/org/json/json/20160212/json-20160212.jar:/Users/lambert.liu/.m2/repository/org/nutz/nutzboot-core/2.2-SNAPSHOT/nutzboot-core-2.2-20180222.034345-86.jar:/Applications/IntelliJ IDEA.app/Contents/lib/idea_rt.jar" demo.MainLauncher
Connected to the target VM, address: '127.0.0.1:59990', transport: 'socket'
[INFO ] 12:58:48.638 org.nutz.boot.banner.SimpleBannerPrinter.printBanner(SimpleBannerPrinter.java:34) - 
 _   _ ______                                      ___   
| \ | || ___ \  ______ ______ ______ ______ ______| \ \  
|  \| || |_/ / |______|______|______|______|______| |\ \ 
| . ` || ___ \  ______ ______ ______ ______ ______| | > >
| |\  || |_/ / |______|______|______|______|______| |/ / 
\_| \_/\____/                                     |_/_/  
  
:: Nutz Boot ::   (2.1.2)
[INFO ] 12:58:48.656 org.nutz.resource.impl.ErrorResourceLocation.<init>(ErrorResourceLocation.java:28) - [loc=/Users/lambert.liu/Documents/productFile/yiyun/4%e6%ba%90%e4%bb%a3%e7%a0%81/CreditsMall/yan/target/classes]not exist
[DEBUG] 12:58:48.827 org.nutz.resource.Scans.printLocations(Scans.java:521) - Locations count=179 time use 175ms
[DEBUG] 12:58:48.841 org.nutz.resource.Scans.scan(Scans.java:274) - Found 1 resource by src( custom/ ) , regex( ^.+[.]properties$ )
[DEBUG] 12:58:48.841 org.nutz.ioc.impl.PropertiesProxy.setPaths(PropertiesProxy.java:113) - load properties from jar:file:/Users/lambert.liu/.m2/repository/org/nutz/nutzboot-core/2.2-SNAPSHOT/nutzboot-core-2.2-20180222.034345-86.jar!/custom/emtry.properties
[DEBUG] 12:58:48.842 org.nutz.boot.config.impl.PropertiesConfigureLoader.init(PropertiesConfigureLoader.java:39) - load /Users/lambert.liu/Documents/productFile/yiyun/4源代码/CreditsMall/yan/target/classes/application.properties
[DEBUG] 12:58:48.921 org.nutz.resource.Scans.scan(Scans.java:274) - Found 1 resource by src( ioc/ ) , regex( ^(.+[.])(js|json)$ )
[DEBUG] 12:58:48.922 org.nutz.ioc.loader.json.JsonLoader.<init>(JsonLoader.java:49) - loading [emtry.json]
[DEBUG] 12:58:48.989 org.nutz.castor.Castors.reload(Castors.java:115) - Using 95 castor for Castors
[DEBUG] 12:58:48.994 org.nutz.ioc.loader.json.JsonLoader.<init>(JsonLoader.java:57) - Loaded 0 bean define from path=[ioc/] --> []
[DEBUG] 12:58:49.001 org.nutz.ioc.loader.json.JsonLoader.<init>(JsonLoader.java:40) - Loaded 5 bean define from reader --
[txREPEATABLE_READ, txSERIALIZABLE, txNONE, txREAD_UNCOMMITTED, txREAD_COMMITTED]
[DEBUG] 12:58:49.056 org.nutz.ioc.aop.SimpleAopMaker.<init>(SimpleAopMaker.java:79) - Load AopConfigure for anno=org.nutz.aop.interceptor.async.Async by type=org.nutz.aop.interceptor.async.AsyncAopIocLoader
[DEBUG] 12:58:49.067 org.nutz.resource.Scans.scan(Scans.java:274) - Found 2 resource by src( demo/ ) , regex( ^.+[.]class$ )
[DEBUG] 12:58:49.068 org.nutz.ioc.loader.annotation.AnnotationIocLoader.addClass(AnnotationIocLoader.java:76) - Found @IocBean : class demo.MainLauncher
[DEBUG] 12:58:49.083 org.nutz.ioc.loader.annotation.AnnotationIocLoader.addClass(AnnotationIocLoader.java:76) - Found @IocBean : class demo.module.TimeModule
[INFO ] 12:58:49.093 org.nutz.ioc.loader.annotation.AnnotationIocLoader.<init>(AnnotationIocLoader.java:52) - Found 2 classes in 1 base-packages!
beans = ["mainLauncher", "timeModule"]
[DEBUG] 12:58:49.105 org.nutz.resource.Scans.scan(Scans.java:274) - Found 30 resource by src( org/nutz/boot/starter/ ) , regex( ^.+[.]class$ )
[INFO ] 12:58:49.143 org.nutz.resource.Scans.rs2class(Scans.java:407) - Resource can't map to Class, Resource feign/FeignStarter.class
[DEBUG] 12:58:49.145 org.nutz.ioc.loader.annotation.AnnotationIocLoader.addClass(AnnotationIocLoader.java:76) - Found @IocBean : class org.nutz.boot.starter.swagger.SwaggerServletStarter
[DEBUG] 12:58:49.153 org.nutz.ioc.loader.annotation.AnnotationIocLoader.addClass(AnnotationIocLoader.java:76) - Found @IocBean : class org.nutz.boot.starter.jetty.JettyStarter
[DEBUG] 12:58:49.168 org.nutz.ioc.loader.annotation.AnnotationIocLoader.addClass(AnnotationIocLoader.java:76) - Found @IocBean : class org.nutz.boot.starter.nutz.mvc.NutFilterStarter
[DEBUG] 12:58:49.172 org.nutz.ioc.loader.annotation.AnnotationIocLoader.handleIocBeanMethod(AnnotationIocLoader.java:250) - Found @IocBean method : NutFilterStarter.createNutFilter(...) define as name=nutFilter
[DEBUG] 12:58:49.173 org.nutz.ioc.loader.annotation.AnnotationIocLoader.addClass(AnnotationIocLoader.java:76) - Found @IocBean : class org.nutz.boot.starter.nutz.mvc.WhaleFilterStarter
[DEBUG] 12:58:49.176 org.nutz.ioc.loader.annotation.AnnotationIocLoader.handleIocBeanMethod(AnnotationIocLoader.java:250) - Found @IocBean method : WhaleFilterStarter.createNutFilter(...) define as name=whaleFilter
[DEBUG] 12:58:49.176 org.nutz.ioc.loader.annotation.AnnotationIocLoader.addClass(AnnotationIocLoader.java:76) - Found @IocBean : class org.nutz.boot.starter.nutz.dao.NutDaoStarter
[DEBUG] 12:58:49.192 org.nutz.ioc.loader.annotation.AnnotationIocLoader.handleIocBeanMethod(AnnotationIocLoader.java:250) - Found @IocBean method : NutDaoStarter.getDao(...) define as name=dao
[DEBUG] 12:58:49.195 org.nutz.ioc.loader.annotation.AnnotationIocLoader.handleIocBeanMethod(AnnotationIocLoader.java:250) - Found @IocBean method : NutDaoStarter.getSqlManager(...) define as name=sqlManager
[DEBUG] 12:58:49.195 org.nutz.ioc.loader.annotation.AnnotationIocLoader.handleIocBeanMethod(AnnotationIocLoader.java:250) - Found @IocBean method : NutDaoStarter.createCacheSerializer(...) define as name=daoCacheSerializer
[DEBUG] 12:58:49.196 org.nutz.ioc.loader.annotation.AnnotationIocLoader.handleIocBeanMethod(AnnotationIocLoader.java:250) - Found @IocBean method : NutDaoStarter.createDaoCacheInterceptor(...) define as name=daoCacheInterceptor
[DEBUG] 12:58:49.196 org.nutz.ioc.loader.annotation.AnnotationIocLoader.addClass(AnnotationIocLoader.java:76) - Found @IocBean : class org.nutz.boot.starter.redis.JedisStarter
[DEBUG] 12:58:49.196 org.nutz.ioc.loader.annotation.AnnotationIocLoader.addClass(AnnotationIocLoader.java:76) - Found @IocBean : class org.nutz.boot.starter.quartz.QuartzStarter
[DEBUG] 12:58:49.200 org.nutz.ioc.loader.annotation.AnnotationIocLoader.addClass(AnnotationIocLoader.java:76) - Found @IocBean : class org.nutz.boot.starter.tomcat.TomcatStarter
[DEBUG] 12:58:49.210 org.nutz.ioc.loader.annotation.AnnotationIocLoader.addClass(AnnotationIocLoader.java:76) - Found @IocBean : class org.nutz.boot.starter.ureport.UreportSpringEnvStarter
[DEBUG] 12:58:49.220 org.nutz.ioc.loader.annotation.AnnotationIocLoader.addClass(AnnotationIocLoader.java:76) - Found @IocBean : class org.nutz.boot.starter.ureport.UreportServletStarter
[ERROR] 12:58:49.223 org.nutz.boot.NbApp.run(NbApp.java:173) - something happen
java.lang.NoClassDefFoundError: org/nutz/ioc/IocEventListener
	at java.lang.ClassLoader.defineClass1(Native Method)
	at java.lang.ClassLoader.defineClass(ClassLoader.java:763)
	at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
	at java.net.URLClassLoader.defineClass(URLClassLoader.java:467)
	at java.net.URLClassLoader.access$100(URLClassLoader.java:73)
	at java.net.URLClassLoader$1.run(URLClassLoader.java:368)
	at java.net.URLClassLoader$1.run(URLClassLoader.java:362)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.net.URLClassLoader.findClass(URLClassLoader.java:361)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:338)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
	at java.lang.Class.getEnclosingMethod0(Native Method)
	at java.lang.Class.getEnclosingMethodInfo(Class.java:1072)
	at java.lang.Class.getEnclosingClass(Class.java:1272)
	at java.lang.Class.getSimpleBinaryName(Class.java:1443)
	at java.lang.Class.isMemberClass(Class.java:1433)
	at org.nutz.ioc.loader.annotation.AnnotationIocLoader.addClass(AnnotationIocLoader.java:65)
	at org.nutz.ioc.loader.annotation.AnnotationIocLoader.<init>(AnnotationIocLoader.java:48)
	at org.nutz.boot.NbApp.prepareIocLoader(NbApp.java:345)
	at org.nutz.boot.NbApp.prepare(NbApp.java:232)
	at org.nutz.boot.NbApp._run(NbApp.java:184)
	at org.nutz.boot.NbApp.run(NbApp.java:170)
	at demo.MainLauncher.main(MainLauncher.java:26)
Caused by: java.lang.ClassNotFoundException: org.nutz.ioc.IocEventListener
	at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:338)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
	... 24 more
Disconnected from the target VM, address: '127.0.0.1:59990', transport: 'socket'

Process finished with exit code 0

我刚才描述有问题,是我在org.nutz主包下没有上面的class,我用的是1.62,是不是一定要升到1.66?

解决了,升级到1.r.65就解决了,不知道会不会兼容前续版本,一会试一下我的老工程能不能启动就知道了,希望不要出事就好。谢谢牛哥

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