-
Notifications
You must be signed in to change notification settings - Fork 50
Building
In the below commands x.y.z denotes the effective version number (like 4.4.5).
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.cmdas an alternative. -
If this fails than potentially because a SNAPSHOT version of
as2-libis referenced. In that case you need to build the whole as2-lib first. Simply runmvn clean installon 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.xmlis 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.cmdfile:"%JAVA_HOME%\bin\java" -cp "standalone/*" com.helger.as2.app.MainOpenAS2Server standalone/config/config.xml