SORMAS-Foundation / SORMAS-Project

SORMAS (Surveillance, Outbreak Response Management and Analysis System) is an early warning and management system to fight the spread of infectious diseases.
https://sormas.org
GNU General Public License v3.0
292 stars 140 forks source link

Maven clean install on sormas-base is sometimes not able to resolve geotools dependencies #12403

Open MartinWahnschaffe opened 1 year ago

MartinWahnschaffe commented 1 year ago

Problem Description

Running mvn clean install on sormas-base lead to the following errors (screenshot shared by @adinaflorea9)

grafik

The related maven log also contained the following warning:

[INFO] [INFO] -----------------< de.symeda.sormas:sormas-serverlibs >----------------- [INFO] Building sormas-serverlibs 1.87.0-SNAPSHOT [9/10] [INFO] --------------------------------[ pom ]--------------------------------- [WARNING] org.eclipse.emf:org.eclipse.emf.common/maven-metadata.xmlfailed to transfer from https://repo.osgeo.org/repository/snapshot/ during a previous attempt. This failure was cached in the local repository and resolution will not be reattempted until the update interval of osgeo-snapshot has elapsed or updates are forced. Original error: Could not transfer metadata org.eclipse.emf:org.eclipse.emf.common/maven-metadata.xml from/to osgeo-snapshot (https://repo.osgeo.org/repository/snapshot/): transfer failed for https://repo.osgeo.org/repository/snapshot/org/eclipse/emf/org.eclipse.emf.common/maven-metadata.xml

The used repository in the pom is

        <repository>
            <id>osgeo</id>
            <name>Open Source Geospatial Foundation Repository</name>
            <url>https://repo.osgeo.org/repository/release/</url>
        </repository>

Likely related to the update of geotools done in #12327

Reproduction Steps

For @sergiupacurariu and @adinaflorea9 it mostly happens when the system was restarted and mvn clean install is called on sormas-base. Unfortunately we were never able to reproduce it to look into it together and I was never able to reproduce it on my system.

We expected that deleting the local geotools maven repository would fix the problem, but after some time it happened again.

Happened with maven 3.6.3 and 3.8.1.

Expected Behavior

mvn clean install on sormas-base should work.

SORMAS Version

SORMAS-1.87.0+

MartinWahnschaffe commented 1 year ago

@adinaflorea9 @sergiupacurariu Please provide full maven logs, once the problem occurs again.

adinaflorea9 commented 1 year ago

I was able to reproduce the error again this morning: image

The full logs that are shown at each of those steps in maven are in the file below: Full Maven Log Adina.txt