05_developer_tutorials:01_setup:getting-started
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revision | |||
| 05_developer_tutorials:01_setup:getting-started [2025/01/31 15:32] – removed - external edit (Unknown date) 127.0.0.1 | 05_developer_tutorials:01_setup:getting-started [2025/01/31 15:32] (current) – ↷ Page moved from 04_developer_documentation:dev-guide:getting-started to 05_developer_tutorials:01_setup:getting-started tim2 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ====== Developer Guide ====== | ||
| + | Welcome to this developer guide! | ||
| + | |||
| + | Developing on the GroIMP source code only require a java compiler. Additionally GroIMP support two development setup: Maven and Eclipse. | ||
| + | |||
| + | ==== Requirements ==== | ||
| + | |||
| + | To compile GroIMP you will need the following additional tools: | ||
| + | * [[https:// | ||
| + | * [[https:// | ||
| + | * [[https:// | ||
| + | ===== Get the source code ===== | ||
| + | |||
| + | The first step to start developing on the code is to get it. The code is entirely open source and available on [[https:// | ||
| + | |||
| + | The source code is split between the " | ||
| + | |||
| + | |||
| + | ==== (Optional) Forking the repository ==== | ||
| + | |||
| + | * Go to the git repository page in your internet browser. | ||
| + | * Click on the //Fork// button of the repository. | ||
| + | * Select your own gitlab namespace and optionally an other project name (not recommended). | ||
| + | * Change or reuse the project slug and description. | ||
| + | * Click on //Fork project//. | ||
| + | |||
| + | ==== (Optional) Mirroring the repository ==== | ||
| + | |||
| + | * In an internet browser, go to your own repository that forks the official one. | ||
| + | * On the side bar, click on // | ||
| + | * Expand the category `Mirroring repositories`. | ||
| + | * Insert the URL of the official repository: [[https:// | ||
| + | * Click on //Mirror repository// | ||
| + | **Note: the two previous steps are optional for users, but highly recommended if you plan on contributing to the code.** | ||
| + | |||
| + | ==== Cloning the repository ==== | ||
| + | |||
| + | === From GitLab === | ||
| + | |||
| + | This method do not require any Gitlab account. | ||
| + | |||
| + | It is possible to simply download the directory of source code from GitLab on the main page [[https:// | ||
| + | You can then download the whole repository as any archive format you like. | ||
| + | Once it is downloaded, extract the archive to the directory in your workspace. | ||
| + | |||
| + | === From a bash command === | ||
| + | |||
| + | You can clone a repository from GitLab with the command line: | ||
| + | < | ||
| + | git clone https:// | ||
| + | </ | ||
| + | |||
| + | This will create a directory named groimp and download all the remote content in it. | ||
| + | |||
| + | |||
| + | ===== Compile with Maven ===== | ||
| + | |||
| + | Now that you have the source code on your local device, you can compile it with Maven. Maven require '' | ||
| + | GroIMP core have both a parent pom.xml and a pom.xml for each plugins. Additional plugins only have their pom.xml. | ||
| + | Maven commands are executed from a terminal (bash, Powershell, ...). | ||
| + | Maven commands can be executed either at the project level (on the parent '' | ||
| + | |||
| + | The plugins are added with the < | ||
| + | |||
| + | The most useful maven commands are: | ||
| + | |||
| + | * '' | ||
| + | * '' | ||
| + | * '' | ||
| + | |||
| + | If you package the groimp core code, you will have a '' | ||
| + | '' | ||
| + | |||
| + | ==== Common errors ==== | ||
| + | |||
| + | The maven commands can fail, here are some common errors: | ||
| + | * '' | ||
| + | * '' | ||
| + | * '' | ||
| + | |||
| + | ===== Eclipse ===== | ||
| + | |||
| + | See the guide on how to setup your Eclipse environment [[05_developer_tutorials: | ||
