Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow to set-up MapStruct for Java projects through the plug-in #6

Open
gunnarmorling opened this issue Jan 22, 2015 · 2 comments
Open

Comments

@gunnarmorling
Copy link
Member

When working with a Maven project for which MapStruct is enabled (e.g. through via maven-processor-plugin), upon import of the project M2E will automatically configure the Eclipse project to run the MapStruct annotation processor.

But for plain "Java Project"s it'd be nice if the plug-in could be used to set up MapStruct. It could like this:

  • Under "Project Properties" have an entry "MapStruct"
  • On that page have a check box "Enable MapStruct for this project"; When checked this should register the annotation processor (AFAIK there is an extension point through which APs can be registered)
  • Allow to specify the processor options through check boxes as well
  • Optionally, have a global preferences pane which can be used to configure default values for the processor options which would be overridden by project-scoped settings

@larswetzer WDYT, would that make sense?

@wetzer
Copy link
Member

wetzer commented Jan 23, 2015

Very good idea! I think the features you've listed here can be realized using the Eclipse concept of Project Natures. A MapStruct Project Nature could be linked with the annotation processor.

@gunnarmorling
Copy link
Member Author

E.g. this user in https://groups.google.com/forum/#!topic/mapstruct-users/0b-WOfgbLpE would benefit from this feature I guess :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants