On Thu, Jun 28, 2018 at 5:59 PM Karl Heinz Marbaise <khmarba...@gmx.de>
wrote:

> 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...
>

You probably missed “I was trying to compile a 3rd party Maven plugin
(nashorn-maven-plugin) as Java 9” from the original message.

Reply via email to