mapstruct / mapstruct/mapstruct-idea

Support the '-Amapstruct.unmappedTargetPolicy' config of maven-compiler-plugin

オープン
#148 コメント 1 件 リアクション 1 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

enhancement
主要言語
Java
スター
168
フォーク
41
PR マージ指標
30日以内にマージされた PR はありません

説明

When I use the -Amapstruct.unmappedTargetPolicy=IGNORE config in maven-compiler-plugin , mapstruct-idea don't understand this config, and the IDEA still throw warn msg 'Unmapped target properties'.

pom.xml

<pluginManagement>
      <plugins>
        <plugin>
          <groupId>org.apache.maven.plugins</groupId>
          <artifactId>maven-compiler-plugin</artifactId>
          <configuration>
            <parameters>true</parameters>
            <annotationProcessorPaths>
              <path>
                <groupId>com.github.therapi</groupId>
                <artifactId>therapi-runtime-javadoc-scribe</artifactId>
                <version>${therapi-runtime-javadoc-scribe.version}</version>
              </path>
              <path>
                <groupId>org.springframework.boot</groupId>
                <artifactId>spring-boot-configuration-processor</artifactId>
                <version>${spring-boot.version}</version>
              </path>
              <path>
                <groupId>org.projectlombok</groupId>
                <artifactId>lombok</artifactId>
                <version>${lombok.version}</version>
              </path>
              <path>
                <groupId>org.mapstruct</groupId>
                <artifactId>mapstruct-processor</artifactId>
                <version>${mapstruct.version}</version>
              </path>
            </annotationProcessorPaths>
            <showWarnings>true</showWarnings>
          </configuration>
          <executions>
            <execution>
              <id>default-compile</id>
              <goals>
                <goal>compile</goal>
              </goals>
              <configuration>
                <compilerArgs>
                  <arg>
                    -Amapstruct.unmappedTargetPolicy=IGNORE
                  </arg>
                </compilerArgs>
              </configuration>
            </execution>
          </executions>
        </plugin>
    </plugins>
</pluginManagement>

image

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

調査の方向性

まず、mapstruct-idea が Maven コンパイラ引数と MapStruct プロセッサオプションをどのように読み取るかを追跡してください。issue ではソースファイルやテストは指定されていません。pom.xml の設定を再現し、そのオプションを IGNORE に設定したときに、IDE がマッピングされていないターゲットプロパティを報告しなくなることを確認してください。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
java
領域
developer-experience, tooling
issue の種類
バグ
難易度
3/5
見積もり時間
1〜2日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
38/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。