Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » Eclipse Mars: Archive for required library: <JAR-file-Path> in project <My-Project-name>(Maven dependencies are not getting downloaded properly)
Eclipse Mars: Archive for required library: <JAR-file-Path> in project <My-Project-name> [message #1705517] Mon, 17 August 2015 06:47 Go to next message
Eclipse UserFriend
Hi,

I am unable to build my project's WAR. It uses embedded Maven v.3.2.5. The project was getting build without any issues a few days back and then it stopped suddenly. In Maven console it gives this error-
[WARN] The POM for <Name-of-JAR> is invalid, transitive dependencies (if any) will not be available, enable debug logging for more details


In Problems tab it shows following message-
Archive for required library: <JAR-file-Path> in project <My-Project-name> cannot be read or is not a valid ZIP file
.

When I tried to open the JAR file from the .m2 repository, it says that the JAR is corrupted. I also noticed that the SHA1 files are created but their names end up with
*.jar.sha1-in-progress
.

I would really appreciate any help to resolve the issue. I tried closing and opening the project and Eclipse itself several times. Also tried to Maven > Update Project (force dependencies). Tried to clean install as well. But nothing seems to work.

Let me know if more information is required.

Versions:
Eclipse Mars
Maven 3.2.5
JDK 7
Windows 7 (32-Bit)
System JRE- 8
Re: Eclipse Mars: Archive for required library: <JAR-file-Path> in project <My-Project-name [message #1705609 is a reply to message #1705517] Mon, 17 August 2015 15:12 Go to previous messageGo to next message
Eclipse UserFriend
You're asking in the forum of the Eclipse Java Development Tools. We don't necessarily know much about Maven.
If you believe your's is a problem originating from the Maven integration in Eclipse, look for the m2e forum.
But it might also be a genuine Maven problem, right?
Unfortunately, I cannot point you to a general Maven support forum.

That said, I'd probably try removing the offending artifact from your local maven repository (jar + metadata), rebuild and watch how the missing artifact is fetched again.

Stephan
Re: Eclipse Mars: Archive for required library: <JAR-file-Path> in project <My-Project-name [message #1705677 is a reply to message #1705609] Tue, 18 August 2015 06:21 Go to previous message
Eclipse UserFriend
Thanks Stephen. I will start looking into other forums as well. May be m2e should be the point I should start from.

Thanks,
Kunal
Previous Topic:JDT Debug dependencies in MAVEN
Next Topic:Java Annotation Processing
Goto Forum:
  


Current Time: Sun Apr 20 17:42:04 EDT 2025

Powered by FUDForum. Page generated in 0.03262 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top