Eclipse Sirius Web is a framework to easily create and deploy studios to the web. We keep the principles which made the success of Eclipse Sirius Desktop and make them available on a modern cloud-based stack.
This repository, sirius-components
, contains the building blocks from which Sirius Web applications are built. The folder packages
contains both the Spring Boot projects from which the corresponding backend is built and the reusable React components used to build the application’s UI.
To actually build and run a complete example application, see the sirius-web
repository which contains a complete example of a Sirius Web modeler built using these components.
To build the components in this repository on your own, you will need the following tools installed:
-
Git, and a GitHub account
-
To build the backend components:
-
Java 11 (Java 12 or later are currently not supported)
-
-
To build the frontend components:
-
Recent versions of Node and NPM: in particular, Node >= 18.7.0 is required along with npm >= 8.15.0.
-
rollup (
npm install -g rollup
) -
yalc (
npm install -g yalc
)
-
Warning
|
Note that there are issues with NPM under Windows Subsystem for Linux (WSL). If you use WSL and encounter error messages like "Maximum call stack size exceeded" when running NPM, switch to plain Windows where this should work. |
The backend part of Sirius Components depends on sirius-emf-json
, which is published as Maven artifacts in GitHub Packages.
To build sirius-components
locally, you need a GitHub Access Token so that Maven can download the sirius-emf-json
and Flow-Designer
artifacts.
-
Create a personal token with a scope of
read:package
by following the GitHub documentation if you do not have one already.WarningOnce generated, a token cannot be displayed anymore, so make sure to copy it in a secure location. -
Create or edit
$HOME/.m2/settings.xml
to tell Maven to use this token when accessing the Sirius EMF JSON repository:<?xml version="1.0" encoding="UTF-8"?> <settings xmlns="http://maven.apache.org/SETTINGS/1.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 https://maven.apache.org/xsd/settings-1.0.0.xsd"> <servers> <server> <id>github-sirius-emfjson</id> <username>$GITHUB_USERNAME</username> <password>$GITHUB_ACCESS_TOKEN</password> </server> <server> <id>github-flow</id> <username>$GITHUB_USERNAME</username> <password>$GITHUB_ACCESS_TOKEN</password> </server> </servers> </settings>
Be sure to replace
$GITHUB_USERNAME
with your GitHub user id, and$GITHUB_ACCESS_TOKEN
with the value of your acess token.ImportantThe id
used in yoursettings.xml
must begithub-sirius-emfjson
andgithub-flow
to match what is used in the POMs.
-
Clone the Sirius Components repository:
git clone https://github.com/eclipse-sirius/sirius-components.git
-
Build the frontend packages
npm ci npx turbo run build
NoteIn order to run tests, use npx turbo run coverage
and if you want to publish the packages on yalc usenpx turbo run publish:local
. If you want to run the whole Sirius Web frontend, usenpm start
. -
Build the backend components. From the
sirius-components/packages
directory:mvn clean install
TipIf you are behind a proxy, you may get Maven errors about checkstyle.org not being available. In this case you need to explicitly disable CheckStyle from the build: mvn clean install -f releng/org.eclipse.sirius.emfjson.releng/pom.xml -P\!checkstyle