[ https://issues.apache.org/jira/browse/MNG-8177?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17872551#comment-17872551 ]
ASF GitHub Bot commented on MNG-8177: ------------------------------------- cstamas commented on PR #1633: URL: https://github.com/apache/maven/pull/1633#issuecomment-2280379191 @WolfgangHG I think always printing out path would be "too much", Maven is already way way too chatty... but here are few facts to tinker about: * when descriptor reader reports this error all Maven "knows" that some POM somewhere has some issue (uses system scoped dependency pointing at file that does not exists) * later on, when collection happened (built the "dirty graph" -> conflicts resolved -> dep tree), just as in this example, the reported POM may not even be present... * still, IMO developer _should be aware_ of issues like these, as any dependency change/reshuffle may make the offending POM end up in the build (in reproducer is "just lurking somewhere" but is not entering > Warning "'dependencyManagement.dependencies.dependency.systemPath' for > com.sun:tools:jar refers to a non-existing file > C:\Temp\jdk-11.0.23\..\lib\tools.jar" > ------------------------------------------------------------------------------------------------------------------------------------------------------------ > > Key: MNG-8177 > URL: https://issues.apache.org/jira/browse/MNG-8177 > Project: Maven > Issue Type: Bug > Components: Core > Affects Versions: 3.9.8 > Environment: Java 11 > Reporter: Wolfgang Knauf > Assignee: Tamas Cservenak > Priority: Minor > Fix For: 4.0.0, 3.9.9, 4.0.0-beta-4 > > > This warning pops up first with Maven 3.9.8, previous versions up to 3.9.7 > did not report it: > {{[WARNING] 1 problem was encountered while building the effective model for > org.jboss:jboss-dmr:jar:1.3.0.Final}} > When using the "-X" switch, I see this additional message: > {{[WARNING] 'dependencyManagement.dependencies.dependency.systemPath' for > com.sun:tools:jar refers to a non-existing file > C:\Temp\jdk-11.0.23\..\lib\tools.jar. Please verify that you run Maven using > a JDK and not just a JRE. @ org.jboss:jboss-dmr:1.3.0.Final}} > > I run it with JDK 11, but downloaded the zip file only. There is no > "tools.jar", which was removed as part of Java 9. > > To reproduce: create a project from this archetype: > {{mvn archetype:generate -DarchetypeCatalog=local -DgroupId=com.acme > -DartifactId=example-subsystem -Dversion=1.0-SNAPSHOT > -Dmodule=org.test.subsystem -Dpackage=com.acme.example > -DarchetypeGroupId=org.wildfly.archetype > -DarchetypeArtifactId=wildfly-subsystem -DarchetypeVersion=32.0.0.Final > -DinteractiveMode=false}} > > Then run this command to see the warning: > {{mvn dependency:tree -X}} > > Actually, I don't know why jboss-dmr:1.3.0 is tested, as the project should > reference jboss-dmr:1.7.0. -- This message was sent by Atlassian Jira (v8.20.10#820010)