Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove extra occurrences of org.json.JSONObject on the class path #142

Closed
trisberg opened this issue Jul 14, 2017 · 6 comments
Closed

Remove extra occurrences of org.json.JSONObject on the class path #142

trisberg opened this issue Jul 14, 2017 · 6 comments
Assignees
Milestone

Comments

@trisberg
Copy link
Member

trisberg commented Jul 14, 2017

From the build:

Found multiple occurrences of org.json.JSONObject on the class path:

	jar:file:/Users/trisberg/.m2/repository/com/vaadin/external/google/android-json/0.0.20131108.vaadin1/android-json-0.0.20131108.vaadin1.jar!/org/json/JSONObject.class
	jar:file:/Users/trisberg/.m2/repository/org/json/json/20140107/json-20140107.jar!/org/json/JSONObject.class

You may wish to exclude one of them to ensure predictable runtime behaviour
@trisberg trisberg added the ready label Jul 14, 2017
@trisberg trisberg added this to the 1.2.2.RELEASE milestone Jul 14, 2017
@trisberg trisberg self-assigned this Jul 14, 2017
trisberg added a commit to trisberg/spring-cloud-deployer-kubernetes that referenced this issue Jul 14, 2017
@banduoba
Copy link

you can user rm -rf /Users/trisberg/.m2/repository/com/vaadin/external/google/android-json/*,This method can be solved.

@YShane
Copy link

YShane commented Jan 9, 2018

I'm still hvaing this issue, unfortunately.

@knightofbatons
Copy link

	<dependency>
		<groupId>org.springframework.boot</groupId>
		<artifactId>spring-boot-starter-test</artifactId>
		<scope>test</scope>
		<exclusions>
			<exclusion>
				<groupId>com.vaadin.external.google</groupId>
				<artifactId>android-json</artifactId>
			</exclusion>
		</exclusions>
	</dependency>

edit pom.xml exclude one of them

@rliuzzi
Copy link

rliuzzi commented May 18, 2018

If you are dealing with a gradle project:

testCompile("org.springframework.boot:spring-boot-starter-test"){
	exclude group: "com.vaadin.external.google", module:"android-json"
}

@neerajjain92
Copy link

neerajjain92 commented Jul 16, 2019

My comment might be unrelated due to this issue but it can help someone facing the similar issue as me, I was facing RestClient always gives “I/O reactor status: STOPPED”. With @knightofbatons fix my problem got resolved.

@tb-kubra
Copy link

edit pom.xml exclude one of them

I also needed to exclude it from:

<dependency>
      <groupId>org.springframework.boot</groupId>
      <artifactId>spring-boot-properties-migrator</artifactId>
</dependency>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants