mapstruct / mapstruct/mapstruct-idea

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

Open
#148 1 comment 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
Java
Stars
168
Forks
41
PR merge metrics
No merged PRs in 30d

Description

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
```xml



org.apache.maven.plugins
maven-compiler-plugin

true


com.github.therapi
therapi-runtime-javadoc-scribe
${therapi-runtime-javadoc-scribe.version}


org.springframework.boot
spring-boot-configuration-processor
${spring-boot.version}


org.projectlombok
lombok
${lombok.version}


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


true



default-compile

compile




-Amapstruct.unmappedTargetPolicy=IGNORE






```

![image](https://github.com/mapstruct/mapstruct-idea/assets/15225070/477f4c4b-8aa0-43a7-b728-f05331d3edb6)

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing how mapstruct-idea reads Maven compiler arguments and MapStruct processor options; no source files or tests are named in the issue. Reproduce the pom.xml configuration, then verify that the IDE no longer reports unmapped target properties when the option is set to IGNORE.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
developer-experience, tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.