Skip to content
This repository has been archived by the owner on Oct 17, 2018. It is now read-only.

Maven processor plugin and eclipse apt compatiblity #62

Open
lalmeras opened this issue Nov 14, 2016 · 1 comment
Open

Maven processor plugin and eclipse apt compatiblity #62

lalmeras opened this issue Nov 14, 2016 · 1 comment

Comments

@lalmeras
Copy link
Member

Currently, owsi-core projects can be both built with maven or eclipse.

For code generation based on java compiler annotation processing (used with querydsl and bindgen), we use an old excilys m2e plugin to delegate build phase to maven. This method should be replaced as newer plugin like jboss' one provides better integration (with apt eclipse's plugin) and configurability.

This should be an opportunity to rewrite maven configuration to enhance eclipse and maven build compatibility.

Here is a reminder of the current choices made for eclipse build:

  • code generation is not done automatically by eclipse, as maven delegation is quite cpu-intensive. Eclipse never really triggers code generation.
  • but as eclipse needs source folder configuration, a fake processor configuration is used with an empty include filter (so that no source files are processed, but generated source folder is added)
  • eclipse does not trigger generate-test-sources so both process and process-test are bound to generate-sources when in eclipse mode (based on m2e.version environment variable)
@lalmeras
Copy link
Member Author

Branch eclipse-processor created for work on this topic.

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

No branches or pull requests

1 participant