Le ven. 20 oct. 2023 à 21:48, Adam Cimarosti <[email protected]> a écrit :

> I don't think I can really split things into a different modile as the
> plugin writes binaries to the /target/classes directory for inclusion in
> the jar file.
>

This is not a blocker if you aggregate in a 3rd module.



> Could you go into more details on what would be involved in a custom life
> cycle?
>

An extension rewriter the pom to.add skip flag to compiler plugin when
yours is enabled then in yours you do what you want.

For ex https://github.com/sormuras/junit-platform-maven-plugin replaces
surefire.


> Would you have some pointers for this (class names, docs, examples)? It
> exceeds my Maven-fu ;-).
>
> Thanks,
> Adam
>
>
> On Fri, 20 Oct 2023, 20:32 Romain Manni-Bucau, <[email protected]>
> wrote:
>
> > Hi,
> >
> > did you try splitting rust and java code in 2 modules and using
> > -T$something ? would do it, otherwise you probably need to write an
> > extension which will capture compiler config, make it skipped to replace
> it
> > but a custom lifecycle management in your own plugin but looks more
> > complicated to achieve this goal.
> >
> > Romain Manni-Bucau
> > @rmannibucau <https://twitter.com/rmannibucau> |  Blog
> > <https://rmannibucau.metawerx.net/> | Old Blog
> > <http://rmannibucau.wordpress.com> | Github <
> > https://github.com/rmannibucau> |
> > LinkedIn <https://www.linkedin.com/in/rmannibucau> | Book
> > <
> >
> https://www.packtpub.com/application-development/java-ee-8-high-performance
> > >
> >
> >
> > Le ven. 20 oct. 2023 à 21:28, Adam Cimarosti <[email protected]> a
> > écrit :
> >
> > > Hello,
> > >
> > > I am the author of the rust-maven-plugin (
> > > https://github.com/questdb/rust-maven-plugin/).
> > >
> > > We use this plugin ourselves at QuestDB and in CI `mvn compile` takes
> > > around 8 minutes.
> > >
> > > It appears that the Java and Rust builds happen serially.
> > >
> > > Is there a way to parallelise things so our plugin kicks off building
> > Rust
> > > in parallel while the Kava code is building?
> > >
> > > Your advice is much appreciated!
> > >
> > > Thanks,
> > > Adam
> > >
> >
>

Reply via email to