Skip to content
Philip Helger edited this page Oct 4, 2019 · 5 revisions

Building in general

In the below commands x.y.z denotes the effective version number (like 4.4.5).

as2-server specific

To run this server stand-alone from the source build, perform the following steps.

  1. 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 run build.cmd as an alternative.

  2. 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 run mvn clean install on as2-lib and go back to the first step on this project.

  3. The resulting JAR file is than located at standalone/as2-server.jar

  4. Launch the server (note: src/main/resources/config/config.xml is the path to the configuration file to be used and may be changed):

  5. 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

  6. 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

Clone this wiki locally