1. 程式人生 > >如何排除jar包衝突

如何排除jar包衝突

今天新引入了一個二方庫,引入後發現程式無法啟動,有衝突和迴圈引用的問題。報錯資訊如下:

 Caused by: java.lang.IllegalStateException: Unable to complete the scan for annotations for web application [] due to a StackOverflowError. Possible root causes include a too low setting for -Xss and illegal cyclic inheritance dependencies. The class hierarchy being processed was [org.eclipse.jdt.core.CompletionContext->org.eclipse.jdt.internal.codeassist.InternalCompletionContext->org.eclipse.jdt.core.CompletionContext]

commond + o 全域性搜尋引用org.eclipse.jdt.core.CompletionContext的檔案, 

找到相關的jar包然後寫exlusion排除一下就可以了 

	<dependency>
			<groupId>com.xxx.community.services</groupId>
			<artifactId>xxx-community-facade-api</artifactId>
			<version>1.2-SNAPSHOT</version>
			<exclusions>
				<exclusion>
					<artifactId>org.aspectj</artifactId>
					<groupId>*</groupId>
				</exclusion>
			</exclusions>
		</dependency>