mapstruct / mapstruct/mapstruct-examples
Add example of configuration arguments using Maven in Kotlin example
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 1.4k
- Forks
- 504
- PR merge metrics
- No merged PRs in 30d
Description
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
...
```
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with mapstruct-kotlin/pom.xml and compare its annotation processor configuration with the requested MapStruct arguments. Verify the example's Maven configuration accepts the listed arguments and that the Kotlin example still builds successfully; done means the configuration is present as a usable example.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- kotlin
- Domain
- build-system
- Issue type
- Documentation
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100