Hi,

I suppose it is the parameter "-U" (as stated), something like "mvn -U package".

I personally often removed the cache dir (.m2) in the home dir, this had the 
same effect (I removed it after compile because I needed the space) - this is 
up to you.
The cache is build again by maven.

Michael


________________________________________
Von: [email protected] <[email protected]> im Auftrag von 
Compte Messagerie <[email protected]>
Gesendet: Dienstag, 4. Mai 2021 11:01
An: DSpace Technical Support
Betreff: Re: [dspace-tech] mvn package command error

thank you for response,
how to bypass by the cache? i mean, what is the command to execute?

Le lundi 3 mai 2021 à 13:29:47 UTC+1, Michael Plate a écrit :
Hi,

Am 03.05.21 um 14:11 schrieb Compte Messagerie:
> hello,
> thank you for response,
> with java8 i had this (below) error, and where i googled it i found that
> i must upgrade to java11
[…]

I'm not to deep in Maven and Java building, but
> Caused by: 
> org.apache.maven.wagon.providers.http.httpclient.ConnectionClosedException: 
> Premature end of Content-Length delimited message body (expected: 93,370,598; 
> received: 15,819,508)

sounds like a network problem to me (not 100 % sure)

in the help to that problem

https://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException

you might find a solution by passing by the cache:

> In Maven 3 if you just had a failed download and have fixed it (e.g. by 
> uploading the jar to a repository) it will cache the failure. To force a 
> refresh add -U to the command line.

Michael


--
All messages to this mailing list should adhere to the Code of Conduct: 
https://duraspace.org/about/policies/code-of-conduct/
---
You received this message because you are subscribed to the Google Groups 
"DSpace Technical Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to 
[email protected]<mailto:[email protected]>.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/dspace-tech/60cce743-1b23-4999-b72c-b35b3ab1e115n%40googlegroups.com<https://groups.google.com/d/msgid/dspace-tech/60cce743-1b23-4999-b72c-b35b3ab1e115n%40googlegroups.com?utm_medium=email&utm_source=footer>.

-- 
All messages to this mailing list should adhere to the Code of Conduct: 
https://duraspace.org/about/policies/code-of-conduct/
--- 
You received this message because you are subscribed to the Google Groups 
"DSpace Technical Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/dspace-tech/e81c04fc998c4c3a8047b8cad4de7f44%40bibliothek.uni-kassel.de.

Reply via email to