Skip to content

cobigen intellij installation

devonfw-core edited this page Mar 3, 2023 · 1 revision

Installation

IntelliJ setup

If you want to use IntelliJ for CobiGen project, you can follow the steps below:

  1. You can easily install IntelliJ, create a launch script for it etc. as described in

  2. After starting IntelliJ, you need to import the cobigen folder as maven project

  3. Next you have to configure the maven settings in IntelliJ as follows:

    1. Go to FileSettingsBuild, Execution, DeploymentBuild ToolsMaven

      1. Choose (Maven home Path) from your devonFolder → devonProjects/software/maven

      2. Override (user settings file) → devonProjects/conf/.m2/settings.xml

      3. Override (Local repository) → devonProjects/conf/.m2/repository

      Maven Settings
    2. Now go to FileProject StructureProject SettingsProject add java sdk version fromdevonProjects/software/java.

      Make sure you are using Java 11. If you have set up your devonfw-ide with this settings URL https://github.com/devonfw/cobigen-ide-settings.git, the correct version will be set automatically. If not, you can download Java 11 manually and place it into devonProjects/software/java11.

      Java SDK
    3. Go to the Maven tool window by clicking on ViewTool WindowsMaven and toggle the "Skip Tests" mode.

After you have finished your configuration, run maven clean and maven install within IntelliJ. CobiGen should build without any errors.

Plugin installation

You can easily install plugins in IntelliJ as described in

Adapter for Eclipse Code Formatter

If you want to contribute to CobiGen, you must have this plugin installed so that the developer team can use the same coding style. This plugin solves the problem of maintaining a common code style in team environments where both IDEA and Eclipse are used. Although it should be enabled and the config file location can be found in devon/workspaces/main as shown below

Eclipse Formatter Plugin

IntelliJ Testing and Debugging

  1. Disable ArgLine:

    If there are any tests that do not work, you might want to disable argline. Go to FileSettingsBuild, Execution, DeploymentBuild ToolsMavenRunning Tests then uncheck ArgLine

    Unchecked Argline
  2. Delegate IDE build and run actions to Maven:

    Go to FileSettingsBuild, Execution, DeploymentBuild ToolsMavenRunner and check Delegate IDE build/run actions to Maven.

    Delegate build/run actions to Maven
  3. CLI DEBUGGING:

    If you want to debug an application in IntelliJ, for example, the CLI project, you can go to RunEdit Configurations. Simply add a new configuration and configure the CLI as shown in the picture.

    CLI Debug Configuration

For more information please visit

Clone this wiki locally