Building with plain Maven - mondo-project/mondo-hawk GitHub Wiki
Hawk can be reused as a library in a regular Java application, outside OSGi. Non-OSGi developers normally use Maven or a Maven-compatible build system (e.g. Ivy or SBT), rather than Tycho. To make it easier for these developers, Hawk provides a parallel hierarchy of pom-plain.xml
files that can be used to build Hawk with plain Maven (pom.xml
files are reserved for Tycho).
Not all Hawk modules are available through this build, as they may rely on OSGi (e.g. org.hawk.modelio
) or require downloading many external dependencies (e.g. org.hawk.ifc
). .feature
, .dependencies
and .tests
projects are not included either, as they are OSGi-specific. For that reason, this build should only be used for distribution, and not for regular development.
To build with regular Maven, follow these steps:
-
Run
install-maven-deps.sh
to download and install as Maven dependencies a few files that are needed by the build and are not available in Maven Central. This is only needed the first time. -
Run
mvn -f pom-plain.xml install
to compile the artifacts and install them into the local Maven repository, so they can be used in other Maven builds.