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

Replace ant scripts with maven scripts OR make sure ant scripts properly run on all dev systems #813

Open MartinWahnschaffe opened 5 years ago

MartinWahnschaffe commented 5 years ago

Maven 3.5 no longer gives the instruction to setup the M2_HOME variable, because it is related to several bugs/problems (see https://maven.apache.org/docs/3.5.0/release-notes.html). Our ant scripts rely on this and thus should better be replaced with maven goals (at least to collect server libs, etc.). In addition the maven-ant-tasks plugin for ant is retired (see http://maven.apache.org/ant-tasks/), it has been superseded by Maven Artifact Resolver Ant Tasks.

jabrandes commented 4 years ago

I would like to suggest an alternative: It may be worth looking at migrating the project to Gradle instead of sticking with Maven and Ant. In my point of view, its featureset combines many good features of both Maven and Ant:

Additional advantages from using Gradle as the build system:

StefanKock commented 3 years ago

It seems that resolver-ant-tasks could avoid the M2_HOME with overwrite mechanism for settings.xml file.