Skip to content

Building from Source

Damien Goutte-Gattat edited this page May 23, 2023 · 13 revisions

Details the steps necessary to download the Protege Desktop source code, and build a distribution from those sources.

To follow this step-by-step guide, you must have Java JDK 11, Maven, and Git installed.

Build Protégé Desktop

  1. Clone Protege source code from Github. Type in a console:
git clone https://github.com/protegeproject/protege.git
  1. Change to the protege directory. Type in the console:
cd protege
  1. Build Protege. Type in a console:
mvn clean package

After the build completes, Protégé Desktop packages will be available in the protege/protege-desktop/target directory. There will be four distinct packages, a platform-independent one (that does not include a Java Runtime Environment) and one for each of the following operating systems: GNU/Linux, macOS, and Windows.

Build the Protégé Distribution

The “Protégé Distribution” is a version of Protégé that comes with a set of third-party plugins bundled with Protégé itself. To build it, you must first build Protégé Desktop as per the instructions above. Then, follow the supplementary steps below.

  1. Install the Protégé Desktop packages. From the same directory as above, run:
mvn install

This will install the freshly built packages for Protégé Desktop in your local Maven repository.

  1. Clone the Protégé Distribution's repository from GitHub and move to the newly cloned repository. Run:
git clone https://github.com/protegeproject/protege-distribution.git
cd protege-distribution
  1. Build Protégé Distribution. Run:
mvn clean package

After the build completes, packages for Protégé Distribution will be available in the protege-distribution/target directory.