maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Francois-Xavier Bonnet <fx.bon...@gmail.com>
Subject Re: Post processing generated sources
Date Mon, 21 Mar 2016 13:33:32 GMT
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" <djarnis@gmail.com> a écrit :

> 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 that does the post processing should i
> create my own
>
> On Mon, Mar 21, 2016 at 12:29 PM, Jeff MAURY <jeffmaury@gmail.com> wrote:
>
> > Generate-sources
> >
> > Jeff
> > Le 21 mars 2016 12:25, "Jens Teglhus Møller" <djarnis@gmail.com> 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 generated files
> > > implement certain interfaces, perhaps using roaster).
> > >
> > > I'm a bit unsure which phase I should do that in and if I do it with
> > > roaster I will have probably have a few java files that I would need to
> > > compile and run on the source files (I would prefer not to på that in a
> > > separate project). It could probably be done quite easily with
> > > maven-antrun-plugin but I'm but I'm interested to know if there is a
> > smart
> > > way to do it.
> > >
> > > Best regards Jens
> > >
> >
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message