2.4. Maven 依存関係の Maven プロジェクトへの追加

CodeReady Studio で Maven プロジェクトに Maven 依存関係を追加する方法を説明します。

前提条件

手順

  1. CodeReady Studio を起動します。
  2. Project Explorer を開きます。
  3. Maven の projectMavenAdd Dependency を右クリックします。

    crs maven add dependency

    Add Dependency ウインドウが表示されます。

    crs maven dependency enter groupid
  4. Enter groupId, artifactId or sha1 prefix or pattern フィールドに、グループ ID またはアーティファクト ID を入力します。

    上記のフィールドは自動的に入力されます。

  5. OK をクリックします。

依存関係がプロジェクトの pom.xml ファイルに追加されます。