You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by 王聡 <co...@gmail.com> on 2019/04/09 09:05:33 UTC

Error occurred during mvn deploy

Hello all,

I built a project and used several java library in my project, but I got some errors during mvn deploy whichi seemed frustrated.
The error log showed:

[ERROR] error: error reading /root/.m2/repository/org/slf4j/slf4j-api/1.7.25/slf4j-api-1.7.25.jar; zip END header not found
[ERROR] error: error reading /root/.m2/repository/ch/qos/logback/logback-classic/1.2.2/logback-classic-1.2.2.jar; zip END header not found
[ERROR] error: error reading /root/.m2/repository/com/fasterxml/jackson/core/jackson-databind/2.8.7/jackson-databind-2.8.7.jar; zip END header not found

Actually these jar files are public libraries downloaded from repository, but seems not worked properly.
Is there any advice on this problem?

P.S. My maven version:

$ mvn --version
Apache Maven 3.6.0 (97c98ec64a1fdfee7767ce5ffb20918da4f719f3; 2018-10-24T18:41:47Z)
Maven home: /usr/share/maven
Java version: 11.0.3, vendor: Oracle Corporation, runtime: /usr/lib/jvm/java-11-openjdk-amd64
Default locale: en, platform encoding: UTF-8
OS name: "linux", version: "4.14.51-60.38.amzn1.x86_64", arch: "amd64", family: “unix"

<artifactId>maven-compiler-plugin</artifactId>
<version>3.6.1</version>

<artifactId>maven-jar-plugin</artifactId>
<version>3.0.2</version>

<artifactId>maven-dependency-plugin</artifactId>
<version>3.0.0</version>

<artifactId>maven-javadoc-plugin</artifactId>
<version>2.10.4</version>

<artifactId>maven-deploy-plugin</artifactId>
<version>2.8.2</version>

Regards.
C.Wang

Re: Error occurred during mvn deploy

Posted by Bernd Eckenfels <ec...@zusammenkunft.net>.
You can try to open them with jar or an archived or compare them with the central Repo (checksum). If they are incomplete/different or corrupt (maybe contain a html error page) just delete them and run `man package` again.

Du you have unfiltered Internet Access?

Gruss
Bernd
--
http://bernd.eckenfels.net

________________________________
Von: 王聡 <co...@gmail.com>
Gesendet: Mittwoch, April 10, 2019 12:29 AM
An: users@maven.apache.org
Betreff: Error occurred during mvn deploy

Hello all,

I built a project and used several java library in my project, but I got some errors during mvn deploy whichi seemed frustrated.
The error log showed:

[ERROR] error: error reading /root/.m2/repository/org/slf4j/slf4j-api/1.7.25/slf4j-api-1.7.25.jar; zip END header not found
[ERROR] error: error reading /root/.m2/repository/ch/qos/logback/logback-classic/1.2.2/logback-classic-1.2.2.jar; zip END header not found
[ERROR] error: error reading /root/.m2/repository/com/fasterxml/jackson/core/jackson-databind/2.8.7/jackson-databind-2.8.7.jar; zip END header not found

Actually these jar files are public libraries downloaded from repository, but seems not worked properly.
Is there any advice on this problem?

P.S. My maven version:

$ mvn --version
Apache Maven 3.6.0 (97c98ec64a1fdfee7767ce5ffb20918da4f719f3; 2018-10-24T18:41:47Z)
Maven home: /usr/share/maven
Java version: 11.0.3, vendor: Oracle Corporation, runtime: /usr/lib/jvm/java-11-openjdk-amd64
Default locale: en, platform encoding: UTF-8
OS name: "linux", version: "4.14.51-60.38.amzn1.x86_64", arch: "amd64", family: “unix"

<artifactId>maven-compiler-plugin</artifactId>
<version>3.6.1</version>

<artifactId>maven-jar-plugin</artifactId>
<version>3.0.2</version>

<artifactId>maven-dependency-plugin</artifactId>
<version>3.0.0</version>

<artifactId>maven-javadoc-plugin</artifactId>
<version>2.10.4</version>

<artifactId>maven-deploy-plugin</artifactId>
<version>2.8.2</version>

Regards.
C.Wang