RE: creating a source directory on the fly

2023-12-06 Thread Dave Dyer
At 06:55 AM 12/6/2023, mark.yagnatin...@barclays.com.INVALID wrote: >Pretty sure that plugin is flexible enough to just copy what you tell it to? >https://maven.apache.org/plugins/maven-resources-plugin/examples/include-exclude.html Thanks. I just hadn't encountered the right examples!

Re: creating a source directory on the fly

2023-12-09 Thread Dave Dyer
: >On 2023/12/06 03:34:58 Dave Dyer wrote: >> >> I'm trying to tune up my maven build, which requires that I construct >> a source directory on the fly by copying from the canonical location. >> >> The best advice I've found is to use mavin-resources-plugin, but

creating a source directory on the fly

2023-12-05 Thread Dave Dyer
I'm trying to tune up my maven build, which requires that I construct a source directory on the fly by copying from the canonical location. The best advice I've found is to use mavin-resources-plugin, but that's a bit inelegant because it copies everything, not just the sources. Is there a

Re: what javac is actually used?

2023-12-04 Thread Dave Dyer
I think I've peeled the next layer of the onion. The maven build I'm using doesn't call javac as part of the build process; Instead it uses the classes already produced by Eclipse, which supports debugging and development. These classes are not optimized at all, and in particular each class is

Re: what javac is actually used?

2023-12-03 Thread Dave Dyer
> >Maven, by default uses maven-compiler-plugin, but that plugin itself is >pluggable (can use javac, which is default, but also eclipse compiler, etc). >The plugin by default uses javac. The build I'm using seems to not be using javac - where is guidance to configuring it?

what javac is actually used?

2023-12-03 Thread Dave Dyer
The problem I'm investigating is that the code produced by a maven build is different, and inferior, to the code produced but any javac I can find. My questions are, what java compiler is it actually using, and of course, how can I change it? The best info I have is that it's using

Re: what javac is actually used?

2023-12-03 Thread Dave Dyer
> >Inferior bytecode means what in this case? It's a little outside my comfort zone, but it appears that some virtual methods are inlined by most java compilers, but are real funcion calls as produced by maven. There may be more but that was the smoking gun. It's not a bleeding edge javac

Re: what javac is actually used?

2023-12-03 Thread Dave Dyer
the compilation) you >> must configure it via the fork option >> (https://maven.apache.org/plugins/maven-compiler-plugin/compile-mojo.html#fork) >> >> >> On Mon, 4 Dec 2023 at 07:07, Dave Dyer wrote: >>> >>> >>> > >>> >Ma

Re: what javac is actually used?

2023-12-04 Thread Dave Dyer
fels wrote: >Hallo, > >Dave Dyer wrote on 4. Dec 2023 08:27 (GMT +01:00): > >> It seems odd to me for maven to have its own javac, > >It does not, when you use the compiler plugin in the default config it uses >the Java compiler from the JDK you started maven with