You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Michael Osipov (Jira)" <ji...@apache.org> on 2021/01/30 22:12:00 UTC

[jira] [Comment Edited] (MNG-7087) Maven 4 can't build itself with Java 11

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

Michael Osipov edited comment on MNG-7087 at 1/30/21, 10:11 PM:
----------------------------------------------------------------

Just made a step forward to avoid junk. Pushed branch {{avoid-empty-locations}} which turned:
{noformat}
[DEBUG] Looking up lifecycle mappings for packaging jar from ClassRealm[plexus.core, parent: null]
[ERROR] [ERROR] Some problems were encountered while processing the POMs:
[FATAL] input contained no data @
 @
[ERROR] The build could not read 1 project -> [Help 1]
org.apache.maven.project.ProjectBuildingException: Some problems were encountered while processing the POMs:
[FATAL] input contained no data @
{noformat}

into
{noformat}
[DEBUG] Looking up lifecycle mappings for packaging jar from ClassRealm[plexus.core, parent: null]
[ERROR] [ERROR] Some problems were encountered while processing the POMs:
[FATAL] input contained no data
[ERROR] The build could not read 1 project -> [Help 1]
org.apache.maven.project.ProjectBuildingException: Some problems were encountered while processing the POMs:
[FATAL] input contained no data
    at org.apache.maven.project.DefaultProjectBuilder.build (DefaultProjectBuilder.java:417)
    at org.apache.maven.project.collector.DefaultProjectsSelector.selectProjects (DefaultProjectsSelector.java:63)
    at org.apache.maven.project.collector.MultiModuleCollectionStrategy.collectProjects (MultiModuleCollectionStrategy.java:71)
    at org.apache.maven.graph.DefaultGraphBuilder.getProjectsForMavenReactor (DefaultGraphBuilder.java:426)
    at org.apache.maven.graph.DefaultGraphBuilder.build (DefaultGraphBuilder.java:97)
{noformat}


was (Author: michael-o):
Just made a step forward to avoid junk. Pushed branch {{avoid-empty-locations}} which turned:
{noformat}
[DEBUG] Looking up lifecycle mappings for packaging jar from ClassRealm[plexus.core, parent: null]
[ERROR] [ERROR] Some problems were encountered while processing the POMs:
[FATAL] input contained no data @
 @
[ERROR] The build could not read 1 project -> [Help 1]
org.apache.maven.project.ProjectBuildingException: Some problems were encountered while processing the POMs:
[FATAL] input contained no data @
{noformat}

into
{noformat}
[DEBUG] Looking up lifecycle mappings for packaging jar from ClassRealm[plexus.core, parent: null]
[ERROR] [ERROR] Some problems were encountered while processing the POMs:
[FATAL] input contained no data @
[ERROR] The build could not read 1 project -> [Help 1]
org.apache.maven.project.ProjectBuildingException: Some problems were encountered while processing the POMs:
[FATAL] input contained no data
    at org.apache.maven.project.DefaultProjectBuilder.build (DefaultProjectBuilder.java:417)
    at org.apache.maven.project.collector.DefaultProjectsSelector.selectProjects (DefaultProjectsSelector.java:63)
    at org.apache.maven.project.collector.MultiModuleCollectionStrategy.collectProjects (MultiModuleCollectionStrategy.java:71)
    at org.apache.maven.graph.DefaultGraphBuilder.getProjectsForMavenReactor (DefaultGraphBuilder.java:426)
    at org.apache.maven.graph.DefaultGraphBuilder.build (DefaultGraphBuilder.java:97)
{noformat}

> Maven 4 can't build itself with Java 11
> ---------------------------------------
>
>                 Key: MNG-7087
>                 URL: https://issues.apache.org/jira/browse/MNG-7087
>             Project: Maven
>          Issue Type: Bug
>    Affects Versions: 4.0.x-candidate
>         Environment: Apache Maven 4.0.0-alpha-1-SNAPSHOT (bb916d0784c7631866167928e4d0615df3317567)
> Java version: 11.0.10, vendor: AdoptOpenJDK, runtime: /Library/Java/JavaVirtualMachines/adoptopenjdk-11.jdk/Contents/Home
>            Reporter: Maarten Mulders
>            Priority: Major
>             Fix For: 4.0.x-candidate
>
>
> It's not possible to build Maven HEAD (I've tested with rev. bb916d0) using a recent Maven 4 snapshot. Even {{mvn validate}} doesn't succeed:
> {code}
> [INFO] Scanning for projects...
> ERROR:  ''
> [ERROR] [ERROR] Some problems were encountered while processing the POMs:
> [WARNING] 'dependencies.dependency.(groupId:artifactId:type:classifier)' must be unique: org.junit.jupiter:junit-jupiter-params:jar -> version ${junitVersion} vs 5.7.0 @ line 77, column 17
> [FATAL] input contained no data @ 
>  @ 
> [ERROR] The build could not read 1 project -> [Help 1]
> [ERROR]   
> [ERROR]   The project  (/Users/maarten/Code/open-source/maven/maven/maven-model-builder/pom.xml) has 1 error
> [ERROR]     input contained no data
> [ERROR] 
> [ERROR] To see the full stack trace of the errors, re-run Maven with the '-e' switch.
> [ERROR] Re-run Maven using the '-X' switch to enable full debug logging.
> [ERROR] 
> [ERROR] For more information about the errors and possible solutions, please read the following articles:
> [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException
> {code}
> I've done `git bisect` (first time, I hope I did it correctly):
> {code}
> 9f88494b6064ad45ea2e2e1e3478afc7af0bc065 is the first bad commit
> Author: rfscholte
> Date:   Mon Dec 21 22:23:43 2020 +0100
>     [MNG-6957] Versionless reactor dependencies/parent should work even if modules are aggregated in reverse order
>     
>     This closes #391
> {code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)