From issues-return-171271-archive-asf-public=cust-asf.ponee.io@maven.apache.org Thu Aug 6 08:25:11 2020 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mailroute1-lw-us.apache.org (mailroute1-lw-us.apache.org [207.244.88.153]) by mx-eu-01.ponee.io (Postfix) with ESMTPS id BE92118061A for ; Thu, 6 Aug 2020 10:25:11 +0200 (CEST) Received: from mail.apache.org (localhost [127.0.0.1]) by mailroute1-lw-us.apache.org (ASF Mail Server at mailroute1-lw-us.apache.org) with SMTP id BBA7512674C for ; Thu, 6 Aug 2020 08:25:10 +0000 (UTC) Received: (qmail 21888 invoked by uid 500); 6 Aug 2020 08:25:07 -0000 Mailing-List: contact issues-help@maven.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@maven.apache.org Delivered-To: mailing list issues@maven.apache.org Received: (qmail 21819 invoked by uid 99); 6 Aug 2020 08:25:06 -0000 Received: from mailrelay1-us-west.apache.org (HELO mailrelay1-us-west.apache.org) (209.188.14.139) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 06 Aug 2020 08:25:06 +0000 Received: from jira-he-de.apache.org (static.172.67.40.188.clients.your-server.de [188.40.67.172]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id CEBB043599 for ; Thu, 6 Aug 2020 08:25:01 +0000 (UTC) Received: from jira-he-de.apache.org (localhost.localdomain [127.0.0.1]) by jira-he-de.apache.org (ASF Mail Server at jira-he-de.apache.org) with ESMTP id 4CF2A78055D for ; Thu, 6 Aug 2020 08:25:00 +0000 (UTC) Date: Thu, 6 Aug 2020 08:25:00 +0000 (UTC) From: "Hudson (Jira)" To: issues@maven.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (MNG-6972) Allow access to org.apache.maven.graph MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/MNG-6972?page=3Dcom.atlassian.j= ira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D171721= 25#comment-17172125 ]=20 Hudson commented on MNG-6972: ----------------------------- Build unstable in Jenkins: Maven =C2=BB Maven TLP =C2=BB maven =C2=BB REMOV= E_DEPRECATED #5 See https://ci-builds.apache.org/job/Maven/job/maven-box/job/maven/job/REMO= VE_DEPRECATED/5/ > Allow access to org.apache.maven.graph > -------------------------------------- > > Key: MNG-6972 > URL: https://issues.apache.org/jira/browse/MNG-6972 > Project: Maven > Issue Type: Improvement > Components: Class Loading, Plugin API > Affects Versions: 3.6.3 > Reporter: Michael Kroll > Assignee: Michael Osipov > Priority: Major > Labels: easyfix, pull-request-available > Fix For: 3.7.0 > > > Hi > maven doesn't export org.apache.maven.graph package in maven-core/src/mai= n/resources/META-INF/maven/extension.xml so the GraphBuilder is not usable = in extensions. > {code:java} > // leads to java.lang.NoClassDefFoundError: Lorg/apache/maven/graph/Graph= Builder; > @Requirement( hint =3D GraphBuilder.HINT ) > private GraphBuilder graphBuilder; > {code} > Background: if one build extension adds dependencies and another build ex= tension uses {{session.getProjectDependencyGraph()}}, then the dependency g= raph is out of date. This is because the graph is only rebuilt after execut= ing _all_ extensions. One solution to this would be to update the {{MavenSe= ssion}} and setting the new dependency graph in the first extension, but fo= r this we need access to the {{GraphBuilder}}. -- This message was sent by Atlassian Jira (v8.3.4#803005)