Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [m2e-dev] How are generated-sources prevented from compiling?

Hello,
M2E doesn't build any jars itself. Source generation is usually handled by m2e connectors which add generated sources as build path entries. Those get compiled by jdt automatically and end up in a single classpath along with regular sources.


2015-02-10 17:05 GMT+02:00 Richard Bondi <rbondi@xxxxxxxxx>:
Hi m2e devs,

How does the eclipse plugin avoid the following confusion?

AFAIK the m2e plugin (i) uses the generat-sources jar when doing builds, but (ii) also optionally allows the user to display the generated .java files in a Source folder... and yet (iii) Eclipse doesn't get confused by duplicate classes of the jar and the compiled .java files.

I'm asking on behalf of someone who is writing an Eclipse plugin for a different, non-Maven build system, and who claims he can't show the .java files from JAXB generated source because Eclipse will get confused by the jar he is telling Eclipse to use for builds.

TMIA,
/rb


_______________________________________________
m2e-dev mailing list
m2e-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/m2e-dev



--
Regards,
Anton.

Back to the top