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

Gili edited comment on MBUILDCACHE-126 at 4/27/25 11:18 AM:
------------------------------------------------------------

Ah, now I see where this is coming from: 
[https://github.com/apache/maven-build-cache-extension/blob/dfc6cd93d8040017d3b25a0458eaf005debf9232/src/main/java/org/apache/maven/buildcache/CacheControllerImpl.java#L716]

You might want to revisit this wording of this warning because:
 # It's not obvious that it's coming from the Maven Build Cache Extension, 
since it shows up while executing a different plugin.
 # It's not clear that the message is a suggestion for how to fix the problem 
as opposed to being a bug that the plugin triggered.
 # It's not necessarily obvious what users are supposed to do to resolve the 
problem. It might be helpful to mention 
[maven-build-cache-config.xml|https://maven.apache.org/extensions/maven-build-cache-extension/maven-build-cache-config.xml]
 to point users in the right direction.

For starters, I suggest adding {{<nolog propertyName="commandLineRules"/>}} to 
the sample config file found at 
[https://maven.apache.org/extensions/maven-build-cache-extension/maven-build-cache-config.xml]


was (Author: cowwoc):
Ah, now I see where this is coming from: 
[https://github.com/apache/maven-build-cache-extension/blob/dfc6cd93d8040017d3b25a0458eaf005debf9232/src/main/java/org/apache/maven/buildcache/CacheControllerImpl.java#L716]

You might want to revisit this wording of this warning because:
 # It's not obvious that it's coming from the Maven Build Cache Extension (as a 
suggestion versus a bug that it triggers)
 # It's not obvious what users are supposed to do to resolve the problem.

For starters, I suggest adding {{<nolog propertyName="commandLineRules"/>}} to 
the sample config file found at 
https://maven.apache.org/extensions/maven-build-cache-extension/maven-build-cache-config.xml

> [WARNING] Cannot find a Mojo parameter 'commandLineRules' to read for Mojo 
> org.apache.maven.plugins:maven-enforcer-plugin:3.5.0:enforce {execution: 
> enforce-maven}. This parameter should be ignored.
> -----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: MBUILDCACHE-126
>                 URL: https://issues.apache.org/jira/browse/MBUILDCACHE-126
>             Project: Maven Build Cache Extension
>          Issue Type: Improvement
>    Affects Versions: 1.2.0
>            Reporter: Gili
>            Priority: Major
>
> When building my project using the Maven Build Cache Extension I get this 
> output:
> [INFO] — duplicate-finder:2.0.1:check (default) @ licensed-client —
> [INFO] Ignoring POM project!
> [WARNING] Cannot find a Mojo parameter 'commandLineRules' to read for Mojo 
> org.apache.maven.plugins:maven-enforcer-plugin:3.5.0:enforce \{execution: 
> enforce-maven}. This parameter should be ignored.
> I know that this issue came up in the past (MBUILDCACHE-56) but it is marked 
> as fixed so I'm not sure why I'm getting this warning in version 1.2.0
> Is this a regression or am I doing something wrong?



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to