maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Karl Heinz Marbaise (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (MNG-6500) Dependency resolution broken with Java 11
Date Mon, 04 Feb 2019 21:00:00 GMT

    [ https://issues.apache.org/jira/browse/MNG-6500?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16760216#comment-16760216
] 

Karl Heinz Marbaise commented on MNG-6500:
------------------------------------------

Ok. I have checked another time: First we start with large number of warnings:
{code}
[INFO] Scanning for projects...
[WARNING] 
[WARNING] Some problems were encountered while building the effective model for com.devonfw.java.boms:devon4j-minimal-bom:pom:3.0.0-SNAPSHOT
[WARNING] 'version' contains an expression but should be a constant. @ com.devonfw.java.boms:devon4j-minimal-bom:${devon4j.version},
/Users/khmarbaise/ws-git-so/devon4j/boms/minimal/pom.xml, line 12, column 12
[WARNING] 
[WARNING] Some problems were encountered while building the effective model for com.devonfw.java.boms:devon4j-bom:pom:3.0.0-SNAPSHOT
[WARNING] 'version' contains an expression but should be a constant. @ com.devonfw.java.boms:devon4j-bom:${devon4j.version},
/Users/khmarbaise/ws-git-so/devon4j/boms/bom/pom.xml, line 12, column 12
[WARNING] 
[WARNING] Some problems were encountered while building the effective model for com.devonfw.java.modules:devon4j-logging:jar:3.0.0-SNAPSHOT
[WARNING] 'version' contains an expression but should be a constant. @ com.devonfw.java.modules:devon4j-logging:${devon4j.version},
/Users/khmarbaise/ws-git-so/devon4j/modules/logging/pom.xml, line 12, column 12
[WARNING] 
[WARNING] Some problems were encountered while building the effective model for com.devonfw.java.modules:devon4j-test:jar:3.0.0-SNAPSHOT
[WARNING] 'version' contains an expression but should be a constant. @ com.devonfw.java.modules:devon4j-test:${devon4j.version},
/Users/khmarbaise/ws-git-so/devon4j/modules/test/pom.xml, line 11, column 12
[WARNING] 
[WARNING] Some problems were encountered while building the effective model for com.devonfw.java.modules:devon4j-configuration:jar:3.0.0-SNAPSHOT
[WARNING] 'version' contains an expression but should be a constant. @ com.devonfw.java.modules:devon4j-configuration:${devon4j.version},
/Users/khmarbaise/ws-git-so/devon4j/modules/configuration/pom.xml, line 12, column 12
[WARNING] 
[WARNING] Some problems were encountered while building the effective model for com.devonfw.java.modules:devon4j-beanmapping:jar:3.0.0-SNAPSHOT
[WARNING] 'version' contains an expression but should be a constant. @ com.devonfw.java.modules:devon4j-beanmapping:${devon4j.version},
/Users/khmarbaise/ws-git-so/devon4j/modules/beanmapping/pom.xml, line 12, column 12
[WARNING] 
[WARNING] Some problems were encountered while building the effective model for com.devonfw.java.modules:devon4j-service:jar:3.0.0-SNAPSHOT
[WARNING] 'version' contains an expression but should be a constant. @ com.devonfw.java.modules:devon4j-service:${devon4j.version},
/Users/khmarbaise/ws-git-so/devon4j/modules/service/pom.xml, line 12, column 12
[WARNING] 
[WARNING] Some problems were encountered while building the effective model for com.devonfw.java.modules:devon4j-json:jar:3.0.0-SNAPSHOT
[WARNING] 'version' contains an expression but should be a constant. @ com.devonfw.java.modules:devon4j-json:${devon4j.version},
/Users/khmarbaise/ws-git-so/devon4j/modules/json/pom.xml, line 12, column 12
[WARNING] 
[WARNING] Some problems were encountered while building the effective model for com.devonfw.java.modules:devon4j-rest:jar:3.0.0-SNAPSHOT
[WARNING] 'version' contains an expression but should be a constant. @ com.devonfw.java.modules:devon4j-rest:${devon4j.version},
/Users/khmarbaise/ws-git-so/devon4j/modules/rest/pom.xml, line 12, column 12
[WARNING] 
[WARNING] Some problems were encountered while building the effective model for com.devonfw.java.modules:devon4j-cxf-client:jar:3.0.0-SNAPSHOT
[WARNING] 'version' contains an expression but should be a constant. @ com.devonfw.java.modules:devon4j-cxf-client:${devon4j.version},
/Users/khmarbaise/ws-git-so/devon4j/modules/cxf-client/pom.xml, line 12, column 12
[WARNING] 
[WARNING] Some problems were encountered while building the effective model for com.devonfw.java.modules:devon4j-cxf-client-rest:jar:3.0.0-SNAPSHOT
[WARNING] 'version' contains an expression but should be a constant. @ com.devonfw.java.modules:devon4j-cxf-client-rest:${devon4j.version},
/Users/khmarbaise/ws-git-so/devon4j/modules/cxf-client-rest/pom.xml, line 12, column 12
[WARNING] 
[WARNING] Some problems were encountered while building the effective model for com.devonfw.java.modules:devon4j-cxf-client-ws:jar:3.0.0-SNAPSHOT
[WARNING] 'version' contains an expression but should be a constant. @ com.devonfw.java.modules:devon4j-cxf-client-ws:${devon4j.version},
/Users/khmarbaise/ws-git-so/devon4j/modules/cxf-client-ws/pom.xml, line 12, column 12
[WARNING] 
[WARNING] Some problems were encountered while building the effective model for com.devonfw.java.modules:devon4j-cxf-server:jar:3.0.0-SNAPSHOT
[WARNING] 'version' contains an expression but should be a constant. @ com.devonfw.java.modules:devon4j-cxf-server:${devon4j.version},
/Users/khmarbaise/ws-git-so/devon4j/modules/cxf-server/pom.xml, line 12, column 12
[WARNING] 
[WARNING] Some problems were encountered while building the effective model for com.devonfw.java.modules:devon4j-cxf-server-rest:jar:3.0.0-SNAPSHOT
[WARNING] 'version' contains an expression but should be a constant. @ com.devonfw.java.modules:devon4j-cxf-server-rest:${devon4j.version},
/Users/khmarbaise/ws-git-so/devon4j/modules/cxf-server-rest/pom.xml, line 12, column 12
[WARNING] 
[WARNING] Some problems were encountered while building the effective model for com.devonfw.java.modules:devon4j-cxf-server-ws:jar:3.0.0-SNAPSHOT
[WARNING] 'version' contains an expression but should be a constant. @ com.devonfw.java.modules:devon4j-cxf-server-ws:${devon4j.version},
/Users/khmarbaise/ws-git-so/devon4j/modules/cxf-server-ws/pom.xml, line 12, column 12
[WARNING] 
[WARNING] Some problems were encountered while building the effective model for com.devonfw.java.modules:devon4j-security:jar:3.0.0-SNAPSHOT
[WARNING] 'version' contains an expression but should be a constant. @ com.devonfw.java.modules:devon4j-security:${devon4j.version},
/Users/khmarbaise/ws-git-so/devon4j/modules/security/pom.xml, line 12, column 12
[WARNING] 
[WARNING] Some problems were encountered while building the effective model for com.devonfw.java.modules:devon4j-jpa-basic:jar:3.0.0-SNAPSHOT
[WARNING] 'version' contains an expression but should be a constant. @ com.devonfw.java.modules:devon4j-jpa-basic:${devon4j.version},
/Users/khmarbaise/ws-git-so/devon4j/modules/jpa-basic/pom.xml, line 12, column 12
[WARNING] 
[WARNING] Some problems were encountered while building the effective model for com.devonfw.java.modules:devon4j-jpa-dao:jar:3.0.0-SNAPSHOT
[WARNING] 'version' contains an expression but should be a constant. @ com.devonfw.java.modules:devon4j-jpa-dao:${devon4j.version},
/Users/khmarbaise/ws-git-so/devon4j/modules/jpa-dao/pom.xml, line 12, column 12
[WARNING] 
[WARNING] Some problems were encountered while building the effective model for com.devonfw.java.modules:devon4j-jpa-envers:jar:3.0.0-SNAPSHOT
[WARNING] 'version' contains an expression but should be a constant. @ com.devonfw.java.modules:devon4j-jpa-envers:${devon4j.version},
/Users/khmarbaise/ws-git-so/devon4j/modules/jpa-envers/pom.xml, line 12, column 12
[WARNING] 
[WARNING] Some problems were encountered while building the effective model for com.devonfw.java.modules:devon4j-jpa-spring-data:jar:3.0.0-SNAPSHOT
[WARNING] 'version' contains an expression but should be a constant. @ com.devonfw.java.modules:devon4j-jpa-spring-data:${devon4j.version},
/Users/khmarbaise/ws-git-so/devon4j/modules/jpa-spring-data/pom.xml, line 12, column 12
[WARNING] 
[WARNING] Some problems were encountered while building the effective model for com.devonfw.java.modules:devon4j-test-jpa:jar:3.0.0-SNAPSHOT
[WARNING] 'version' contains an expression but should be a constant. @ com.devonfw.java.modules:devon4j-test-jpa:${devon4j.version},
/Users/khmarbaise/ws-git-so/devon4j/modules/test-jpa/pom.xml, line 11, column 12
[WARNING] 
[WARNING] Some problems were encountered while building the effective model for com.devonfw.java.modules:devon4j-batch:jar:3.0.0-SNAPSHOT
[WARNING] 'version' contains an expression but should be a constant. @ com.devonfw.java.modules:devon4j-batch:${devon4j.version},
/Users/khmarbaise/ws-git-so/devon4j/modules/batch/pom.xml, line 12, column 12
[WARNING] 
[WARNING] Some problems were encountered while building the effective model for com.devonfw.java.modules:devon4j-web:jar:3.0.0-SNAPSHOT
[WARNING] 'version' contains an expression but should be a constant. @ com.devonfw.java.modules:devon4j-web:${devon4j.version},
/Users/khmarbaise/ws-git-so/devon4j/modules/web/pom.xml, line 12, column 12
[WARNING] 
[WARNING] Some problems were encountered while building the effective model for com.devonfw.java.modules:devon4j-basic:jar:3.0.0-SNAPSHOT
[WARNING] 'version' contains an expression but should be a constant. @ com.devonfw.java.modules:devon4j-basic:${devon4j.version},
/Users/khmarbaise/ws-git-so/devon4j/modules/basic/pom.xml, line 12, column 12
[WARNING] 
[WARNING] Some problems were encountered while building the effective model for com.devonfw.java.starters:devon4j-starter-cxf-client:jar:3.0.0-SNAPSHOT
[WARNING] 'version' contains an expression but should be a constant. @ com.devonfw.java.starters:devon4j-starter-cxf-client:${devon4j.version},
/Users/khmarbaise/ws-git-so/devon4j/starters/starter-cxf-client/pom.xml, line 12, column 12
[WARNING] 
[WARNING] Some problems were encountered while building the effective model for com.devonfw.java.starters:devon4j-starter-cxf-client-rest:jar:3.0.0-SNAPSHOT
[WARNING] 'version' contains an expression but should be a constant. @ com.devonfw.java.starters:devon4j-starter-cxf-client-rest:${devon4j.version},
/Users/khmarbaise/ws-git-so/devon4j/starters/starter-cxf-client-rest/pom.xml, line 12, column
12
[WARNING] 
[WARNING] Some problems were encountered while building the effective model for com.devonfw.java.starters:devon4j-starter-cxf-client-ws:jar:3.0.0-SNAPSHOT
[WARNING] 'version' contains an expression but should be a constant. @ com.devonfw.java.starters:devon4j-starter-cxf-client-ws:${devon4j.version},
/Users/khmarbaise/ws-git-so/devon4j/starters/starter-cxf-client-ws/pom.xml, line 12, column
12
[WARNING] 
[WARNING] Some problems were encountered while building the effective model for com.devonfw.java.starters:devon4j-starter-cxf-server:jar:3.0.0-SNAPSHOT
[WARNING] 'version' contains an expression but should be a constant. @ com.devonfw.java.starters:devon4j-starter-cxf-server:${devon4j.version},
/Users/khmarbaise/ws-git-so/devon4j/starters/starter-cxf-server/pom.xml, line 12, column 12
[WARNING] 
[WARNING] Some problems were encountered while building the effective model for com.devonfw.java.starters:devon4j-starter-cxf-server-rest:jar:3.0.0-SNAPSHOT
[WARNING] 'version' contains an expression but should be a constant. @ com.devonfw.java.starters:devon4j-starter-cxf-server-rest:${devon4j.version},
/Users/khmarbaise/ws-git-so/devon4j/starters/starter-cxf-server-rest/pom.xml, line 12, column
12
[WARNING] 
[WARNING] Some problems were encountered while building the effective model for com.devonfw.java.starters:devon4j-starter-cxf-server-ws:jar:3.0.0-SNAPSHOT
[WARNING] 'version' contains an expression but should be a constant. @ com.devonfw.java.starters:devon4j-starter-cxf-server-ws:${devon4j.version},
/Users/khmarbaise/ws-git-so/devon4j/starters/starter-cxf-server-ws/pom.xml, line 12, column
12
[WARNING] 
[WARNING] Some problems were encountered while building the effective model for com.devonfw.java.starters:devon4j-starter-spring-data-jpa:jar:3.0.0-SNAPSHOT
[WARNING] 'version' contains an expression but should be a constant. @ com.devonfw.java.starters:devon4j-starter-spring-data-jpa:${devon4j.version},
/Users/khmarbaise/ws-git-so/devon4j/starters/starter-spring-data-jpa/pom.xml, line 12, column
12
[WARNING] 
[WARNING] Some problems were encountered while building the effective model for com.devonfw.java.templates:devon4j-template-server:maven-archetype:3.0.0-SNAPSHOT
[WARNING] 'version' contains an expression but should be a constant. @ com.devonfw.java.templates:devon4j-template-server:${devon4j.version},
/Users/khmarbaise/ws-git-so/devon4j/templates/server/pom.xml, line 12, column 12
[WARNING] 
[WARNING] It is highly recommended to fix these problems because they threaten the stability
of your build.
[WARNING] 
[WARNING] For this reason, future Maven versions might no longer support building such malformed
projects.
[WARNING] 
{code}
So after a little bit search I found the issue:

The dependency:
{{./org/hibernate/validator/hibernate-validator/6.0.11.Final/hibernate-validator-6.0.11.Final.pom}}
contains the following profile:
{code:xml}
      <profile>
            <id>jdk11+</id>
            <activation>
                <jdk>[11,)</jdk>
            </activation>
            <dependencies>
                <dependency>
                    <groupId>org.openjfx</groupId>
                    <artifactId>javafx.base</artifactId>
                    <version>11.0.0-SNAPSHOT</version>
                </dependency>
            </dependencies>
        </profile>
{code}
which exactly is causing the issue.

> Dependency resolution broken with Java 11
> -----------------------------------------
>
>                 Key: MNG-6500
>                 URL: https://issues.apache.org/jira/browse/MNG-6500
>             Project: Maven
>          Issue Type: Bug
>    Affects Versions: 3.5.4
>         Environment: Java 11
>            Reporter: Jörg Hohwiller
>            Priority: Major
>
> I am facing an issue that some transitive dependencies are missing on maven dependency
resolution. This reproducible works fine with older Java (java8) and always fails with java
11.
> The code that fails can be found in this feature branch:
> [https://github.com/hohwille/devon4j/tree/feature-16-java-11-build]
> A detailed description of the issue can be found here:
> [https://github.com/devonfw/devon4j/issues/16]
> It would be awesome if someone could have a look and make maven work smooth with Java
11.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message