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

Tamas Cservenak commented on MNG-8177:
--------------------------------------

You do not address parent POM that is cause of warning. Parent POM was 
addressed "implicitly" when Maven was building the model of your dependency 
POM. Basically, this warning is emitted by the "model builder" that is building 
the model (by applying/importing all the POMs needed, like parent, like import, 
applying interpolation, etc). Also, this lack any contextual information "for 
what" is this being built, as for example, if this POM would be built for some 
plugin present in your build, you will see same warning, hence, this does not 
have to come from dependency at all.

This is the issue MNG-8141 and the thing is that from now on Model Builder 
(that is used in MANY contexts) simply warns if "unsure" (or not fully sure) 
about built model outcome, whenever it cannot be 100% that resulting model is 
fully correct.

> 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
>            Priority: Minor
>
> 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)

Reply via email to