i posted the same question in maven mailing list and that was the resonse: Hi, you need to use https URLs in your repositories. http URLs are now blocked by default. That should resolve the issue you are having. You should take a look at your $HOME/.m2/settings.xml, as well as potential occurrences of repository tags in your pom.xml files. Best regards, Ben
there is no settings.xml file in /home/dspace/.m2 folder in what pom.xml file must i take a look? what repository tags must i search for in pom.xml file? thanks Le mardi 4 mai 2021 à 10:28:02 UTC+1, Plate, Michael a écrit : > 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/c6d90401-9830-40ec-aa2b-35cbcae69c30n%40googlegroups.com.
