Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jdt-core-dev] Questions on Java 9 Modules API

On 06.09.2017 00:06, Fred Bricon wrote:
We could of course add the Java nature, set the Maven classpath container, save the classpath and then go back on each classpath entry to tune the module flag, then save the classpath again.
The last part looks wrong to me: why save the classpath again?
You're not adding individual dependencies for individual artifacts
to the classpath, are you?

Do you speak about configuration time (creating a Java project) or
resolution time (populating a classpath container)?

So, if the Maven classpath *container* does not have the "module" attribute,
then when you (later) resolve the container to its individual entries,
add "module" to those that you consider as modules.

OTOH, if you need Java 9 smarts before JDT is enabled, I'd expect
that you could easily use Maven API to inspect Maven dependencies?

am I missing anything?
Stephan


Back to the top