Interesting, I just replied with a rather complex antrun based solution
elsewhere in this thread, but the builder-maven-plugin can probably
simplify that a bit.
I will look into it, thanks for the pointer.
Best regards Jens
On Mon, Mar 21, 2016 at 2:33 PM, Francois-Xavier Bonnet wrote:
> Hi,
>
I think most plugins that generate source code add the target folders as
source folders themselves.
My current problem is to compile and run the rewrite code as part of the
generate-sources phase. What I have right now is the following antrun
invocation:
org.apache.maven.plugins
maven-antrun-plu
Hi,
You may compile and execute your preprocess code using maven-builder-plugin
https://javabuild.java.net/builder-maven-plugin/usage.html
Le 21 mars 2016 1:05 PM, "Jens Teglhus Møller" a écrit :
> Thanks for the short and precise answer.
>
> Any guidelines as how to organize the code that perfo
You can generate in any folder (under target) but you must add this folder
to the list of source directories so that the maven compiler will process
them
This can be done with the maven API if you have your own Maven plugin or
with the build-helper-plugin
Jeff
Le 21 mars 2016 12:45, "Jens Teglhus
Thanks for the short and precise answer.
Any guidelines as how to organize the code that performs the processing.
Should I create a new directory in src separate from main and test i.e.
preprocess and compile it to target/preprocess-classes?
Best regards Jens
And where should i put my source tha
Generate-sources
Jeff
Le 21 mars 2016 12:25, "Jens Teglhus Møller" a écrit :
> Hi
>
> I'm generating java sources (using jsonschema2pojo and jaxb2-maven-plugin
> plugin) and I would like to do some post processing on the generated source
> files before compiling them (like have some of the gener
Hi
I'm generating java sources (using jsonschema2pojo and jaxb2-maven-plugin
plugin) and I would like to do some post processing on the generated source
files before compiling them (like have some of the generated files
implement certain interfaces, perhaps using roaster).
I'm a bit unsure which