mapstruct / mapstruct/mapstruct-examples

Add example of configuration arguments using Maven in Kotlin example

未關閉
#36 4 則留言 3 個 reaction 已指派 0 人 在 GitHub 檢視

還沒有人認領這個 Issue。

主要語言
Java
星號
1.4k
分支
504
PR 合併指標
30 天內沒有已合併 PR

描述

Can we get added to the [`pom.xml`](https://github.com/mapstruct/mapstruct-examples/blob/master/mapstruct-kotlin/pom.xml) file in the [kotlin example](https://github.com/mapstruct/mapstruct-examples/tree/master/mapstruct-kotlin) some configuration arguments?

Right now I have the following and it's not working...because `kapt` is being used rather than the maven compiler plugin for annotation processing _(and after a lot of googling and searching, I can't find anything on how `kapt` processor args are meant to be formatted when using maven)_:

```xml
...


org.mapstruct
mapstruct-processor
${mapstruct.version}



-Amapstruct.defaultComponentModel=spring
-Amapstruct.unmappedTargetPolicy=IGNORE
-Amapstruct.suppressGeneratorTimestamp=true
-Amapstruct.suppressGeneratorVersionInfoComment=true

...
```

貢獻指南

這個儲存庫沒有索引到貢獻指南

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

研究方向

從 mapstruct-kotlin/pom.xml 開始,將其註解處理器設定與所要求的 MapStruct 引數進行比較。確認範例的 Maven 設定接受列出的引數,且 Kotlin 範例仍能成功建置;完成表示該設定以可用範例的形式存在。

由索引模型根據 Issue 內容生成。

評估

技術堆疊
kotlin
領域
build-system
Issue 類型
文件
難度
2/5
預估耗時
1-3 小時
活躍度
停滯
描述清晰度
基本清楚
新手友好度
45/100

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。