Developer guide

This developer guide provides step-by-step instructions on how to set up your developer environment, contribute to the codebase, and enhance the capability of SysON.

1. Retrieving the source code

SysON is built upon the Eclipse Sirius Web project. SysON is licensed under the (EPL v2) Open Source license The source code is openly available on GitHub:https://github.com/eclipse-syson/syson

To get the source code, clone the repository by using either SSH:

git clone git@github.com:eclipse-syson/syson.git

or HTTPS:

git clone https://github.com/eclipse-syson/syson.git

2. Setting up your development environment

  1. Download your coding environment Spring Tools 4.22.0

  2. Ensure that m2e version from your environment is 2.6.0

    m2e version
  3. Retrieve the source code or fork it if you want to make contribution

  4. Import backend plugins from syson repository in your workspace

  5. Update settings.xml file from your .m2 folder to give access to other repositories during the build To see dependance with access to add in settings.xml, have a look on backend\application\syson-application\pom.xml You need to create access tokens on Github to complete settings.xml.

    settings file
  6. Right click syson-services module and then Properties>JavaBuildPath>Source Add main/generated folder and remove excluded content and former antlr/grammar You should retrieve the following Java build path

    Java build path
  7. Update Maven project by launching "ALT+F5" shortcut on all modules of your workspace

3. Generate a new version of SysIDE CLI

In the syson-import module, you’ll found a syside-cli-.js file in src/main/resources. This file is used by the import process, to parse the SysML v2 textual files. If you want to update the version on SysIDE used to parse textual files, you need to generate a new version of this syside-cli-.js file.

Here are the steps to follow:

  1. Clone the SysIDE repository from github.

  2. Install pnpm.

  3. Go to the root of your local SysIDE repository.

  4. Execute pnpm install command.

  5. Execute `pnpm run build`command.

  6. Execute pnpm run --dir packages/syside-cli/ esbuild command.

  7. It produces a your_local_syside_repo/packages/syside-cli/out/index.js file

  8. Get a copy of the your-local-syside-repo/packages/syside-cli/out/index.js file.

  9. Edit this file:

    1. add #!/usr/bin/env node as first line

    2. add src_default(); as last line

    3. rename it to syside-cli.js

  10. Copy the renamed file into your_local_syson_repo/backend/application/syson-import/src/main/resources (overwrite the existing file).