You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Robert Scholte (JIRA)" <ji...@apache.org> on 2018/01/27 13:46:00 UTC
[jira] [Updated] (MRESOLVER-41) JDK 9 - Module Auto Naming conflict
- maven.resolver.api please repackage the code inside with
org.apache.maven.resolver.api
[ https://issues.apache.org/jira/browse/MRESOLVER-41?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Robert Scholte updated MRESOLVER-41:
------------------------------------
Description:
Include the following in {{pom.xml}}.
{code:xml}
<dependency>
<groupId>org.apache.maven.resolver</groupId>
<artifactId>maven-resolver-api</artifactId>
<version>1.1.0</version>
</dependency>
{code}
add the following requires line in your {{module-info.java}}
{code}
requires maven-resolver-api
{code}
The module won't resolve this is due the fact that internal package name is different then outer one. Ideally both should match.
was:
Include the following in pom.xml.
<dependency>
<groupId>org.apache.maven.resolver</groupId>
<artifactId>maven-resolver-api</artifactId>
<version>1.1.0</version>
</dependency>
add the following requires line in your module-info.java
requires maven-resolver-api
The module won't resolve this is due the fact that internal package name is different then outer one. Ideally both should match.
> JDK 9 - Module Auto Naming conflict - maven.resolver.api please repackage the code inside with org.apache.maven.resolver.api
> ----------------------------------------------------------------------------------------------------------------------------
>
> Key: MRESOLVER-41
> URL: https://issues.apache.org/jira/browse/MRESOLVER-41
> Project: Maven Resolver
> Issue Type: Bug
> Components: resolver
> Affects Versions: Maven Artifact Resolver 1.2.0 pre-reset, Maven Artifact Resolver 1.1.0, Maven Artifact Resolver 1.1.1
> Environment: JDK 9, JDK 9.1, JDK 10
> Reporter: Pratik Parikh
> Priority: Major
>
> Include the following in {{pom.xml}}.
> {code:xml}
> <dependency>
> <groupId>org.apache.maven.resolver</groupId>
> <artifactId>maven-resolver-api</artifactId>
> <version>1.1.0</version>
> </dependency>
> {code}
> add the following requires line in your {{module-info.java}}
> {code}
> requires maven-resolver-api
> {code}
> The module won't resolve this is due the fact that internal package name is different then outer one. Ideally both should match.
>
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)