-
Notifications
You must be signed in to change notification settings - Fork 44
Building
In the below commands x.y.z
denotes the effective version number (like 5.0.0
).
This project is build with Apache Maven 3.x. Simply call mvn clean install
and you will end up with a JAR/WAR files in the respective target
directories of the submodules.
All projects require Java 11 or higher for building and running. The last version using Java 1.8 was 4.11.0.
The as2-partnership-mongodb
sub-project downloads an embedded MongoDB from the official web site and extracts it for testing. If this makes problems specify the -DskipTests=true
commandline parameter when invoking Maven, to ignore all tests.
To run this server stand-alone from the source build, perform the following steps.
-
build the binary artefacts using Apache Maven 3.x:
mvn clean install -Pwithdep
(selects the profile "withdep" which means "with dependencies"). On Windows you may runbuild.cmd
as an alternative. -
If this fails than potentially because a SNAPSHOT version of
as2-lib
is referenced. In that case you need to build the whole as2-lib first. Simply runmvn clean install
on as2-lib and go back to the first step on this project. -
The resulting JAR file is than located at
standalone/as2-server.jar
-
Launch the server (note:
src/main/resources/config/config.xml
is the path to the configuration file to be used and may be changed): -
On Unix/Linux systems run the AS2 server using the following command (on one line):
java -cp "standalone/*" com.helger.as2.app.MainOpenAS2Server standalone/config/config.xml
-
On Windows systems run the AS2 server using the following command (on one line) or execute the
run.cmd
file:"%JAVA_HOME%\bin\java" -cp "standalone/*" com.helger.as2.app.MainOpenAS2Server standalone/config/config.xml