Hi,

On 28/06/18 12:59, Václav Haisman wrote:
Hi.

Is there any effort to make Maven Java 9 friendly and provide modules? I
have hit some issues when I was trying to compile a 3rd party Maven plugin
(nashorn-maven-plugin) as Java 9. When I tried to provide it with
module-info.java I got stuck on errors like this:

[ERROR] error: the unnamed module reads package org.apache.maven.plugin
from both maven.core and maven.plugin.api
[ERROR] error: module maven.plugin.annotations reads package
org.apache.maven.plugin from both maven.plugin.api and maven.core
[ERROR] error: module maven.plugin.api reads package
org.apache.maven.plugin from both maven.plugin.api and maven.core
[ERROR] error: module maven.model reads package org.apache.maven.plugin
from both maven.plugin.api and maven.core
[ERROR] error: module maven.core reads package org.apache.maven.plugin from
both maven.plugin.api and maven.core

Can you please show your pom file or a reference to a github/bitbucket project...cause the error message implies there is something cause you seemed to have dependencies to maven.plugin.api and maven.core which usually does not happen in a usual java project...

Kind regards
Karl Heinz Marbaise

It seems to me that Maven would need some refactoring and Java package
namespace splitting to get it to play nicely with Java 9 modules.

--VH


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to