[JAVA] What to do if the Eclipse Maven dependency Jar is wrong

(Because it is the first article, please understand that there are places where words are sparse)

In the Maven project in Eclipse [! ] Is displayed, but the flow of measures to be taken when a problem is encountered that cannot be fixed even if the project is updated or the source is downloaded again.

environment

The library you tried to use

When I got hooked

First of all, as a common remedy [Build Path] → [Library] I tried to open and check the strange place スクリーンショット 2018-02-12 14.25.03.png No abnormality is displayed

Even if you go to check the jar normally スクリーンショット 2018-02-12 14.26.49.png There is properly

Then check the problem tab

'C: /Users/~~~/.m2/repository/org/apache/httpcomponents/httpcore/4.4.8/httpcore-4.4.8.jar' cannot be loaded or is not a valid ZIP file

I was addicted to it from here [Quick fix] When I selected, I ended up just opening the [Build Path] window, and I couldn't deal with it, so I couldn't move from here.

Final action

I tried to decompile the problematic Jar スクリーンショット 2018-02-12 14.38.12.png that? I can't open the contents

The cause was that the ** jar file itself was corrupted ** As a final method

/4.4.8/httpcore-4.4.8.jar

After dropping Eclipse, I deleted it entirely, restarted Eclipse, downloaded the source again, and it was fixed.

(I wonder if the first article should be like this ...)

Recommended Posts

What to do if the Eclipse Maven dependency Jar is wrong
[Ubuntu 20.04] What to do if the external monitor is not recognized
What to do if Cloud9 is full in the Rails tutorial
What to do if the server tomcat dies
What to do if the background image is not applied after deployment
What to do if the prefix c is not bound in JSP
What to do if you can't install the plugin from the Eclipse marketplace
What to do if tomcat process remains when tomcat is stopped in eclipse
[Maven] What to do if you are asked to incorporate a jar that is not in the remote repository into the war
What to do if the debug gem installation fails
What to do if the Rails server can't start
What to do if the changes are not reflected in the jar manifest file
[Gradle] [checkstyle] What to do if the active setting of Checkstyle is removed by "Refresh Gradle project" from Eclipse
What to do when "Fail to load the JNI shared library" is displayed in Eclipse
What to do if the breakpoint is shaded and does not stop during debugging
What to do if audio is not available on discordrb
What to do if FacesMessage is set but not displayed
What to do if the adb command cannot be executed
What to do if you can't use the rails command
What to do if validation doesn't work with the update action
[Rails] What to do if data is not registered in DB
What to do if the Rails page doesn't appear in Rails tutorial 1.3.2
What to do if you forget the root password in CentOS7
What to do if you cannot roll back the migration (UnknownMigrationVersionError)
[Note] What to do if bundle install in Chapter 3 of the rails tutorial is not possible
What to do if you install Ubuntu
What to do if the app is not created with the latest Rails version installed when rails new
[IOS] What to do when the image is filled with one color
What to do if you don't like the code generated by swagger-codegen-cli
What is maven?
What to do if zip dies if there is a pom when making an executable jar with gradle
What to do if Operation not permitted is displayed when you execute a command in the terminal
[Rails / Docker] What to do if access is denied by the browser (localhost: 3000) after adding a gem
What to do if mvn archetype: generate fails
What to do if you get a SQLite3 :: BusyException: database is locked error
What to do if you can't activate the select box created by bootstrap-select
What to do if you get the error message unrecognized selector send to instance "***"
What to do if you get To install the missing version, run `gem install bundler: 2.1.4`
Androd: What to do about "The Realm is already in a write transaction in"
What to do if the rails server doesn't run out on AWS cloud9
What to do if you get an "A server is already running." Error when you try to start the rails server
What to do if you are told "there is no main manifest attribute" when creating a jar file containing dependencies in a maven project
What is Maven Assembly?
When the hover of Eclipse is hard to see
What to do if you get a wrong number of arguments error in binding.pry
What to do when The SSL certificate has expired
What to do if ClassNotFoundException occurs when starting Tomcat
What to do if you can't get the text of an element in Selenium
What to do if rails server can't be stopped
What to do if TextToSpeech doesn't work on Android 11
What to do if you get a NoClassDefFoundError when trying to run eclipse on Java9
What to do if you accidentally create a model
What to do if an ActionController :: UnknownFormat error occurs
What to do if you get the error Couldn't find Item without an ID
How to debug the generated jar file in Eclipse
What to do if the JSONHint annotation does not work with lombok and JSONIC
What to do if password authentication fails in Docker/Postgres
[Solution] What to do if you get a Docker error'ERROR: Cannot connect to the Docker daemon at unix: ///var/run/docker.sock. Is the docker daemon running?'
ParseException: What to do when Unparseable date is reached
What to do if you cannot execute with the command "Java package name / class name"
What to do if you select a JRE in Eclipse and get "The selected JRE does not support the current compliance level 11"