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

See original GitHub issue

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

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:5

github_iconTop GitHub Comments

49reactions
knightofbatonscommented, Mar 13, 2018
	<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

45reactions
banduobacommented, Jul 25, 2017

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

Read more comments on GitHub >

github_iconTop Results From Across the Web

Maven + Spring Boot: Found multiple occurrences of org.json ...
How can I fix it? Found multiple occurrences of org.json.JSONObject on the class path: jar ...
Read more >
org.json.JSONObject.remove java code examples - Tabnine
Construct an empty JSONObject. ... Get the string associated with a key. ... Put a key/boolean pair in the JSONObject. ... Get the...
Read more >
Multiple jar occurrences - How to exclude a provided Vaadin ...
I've checked and the JSON jar that ships Vaadin contains less classes than I need, so I would like to exclude that, in...
Read more >
How to Remove Special Characters from String in Java
How to Remove Special Characters from String in Java. A character which is not an alphabet or numeric character is called a special...
Read more >
“How-to” Guides - Spring
There is more than one way to register additional customizations: ... YAML file is parsed to a Java Map<String,Object> (like a JSON object), ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found