[ https://issues.apache.org/jira/browse/MNG-7202?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17731770#comment-17731770 ]
Guillaume Nodet edited comment on MNG-7202 at 6/12/23 8:36 PM: --------------------------------------------------------------- This works perfectly well in my case. {code} ➜ maven ✗ mvn help:evaluate -Dexpression=settings.offline -N -q -DforceStdout -o true% {code} The [evaluator code|https://github.com/apache/maven/blob/22d2b47c04c8b14faf24954a1a903c210d40f58d/maven-core/src/main/java/org/apache/maven/plugin/PluginParameterExpressionEvaluator.java#L260] is using reflection to evaluate the property. was (Author: gnt): This works perfectly well in my case. {code} ➜ maven ✗ mvn help:evaluate -Dexpression=settings.offline -N -q -DforceStdout -o true% {code} > settings.offline property not working > ------------------------------------- > > Key: MNG-7202 > URL: https://issues.apache.org/jira/browse/MNG-7202 > Project: Maven > Issue Type: Bug > Components: POM, Settings > Affects Versions: 3.8.1 > Environment: Debian 10.10, OpenJDK 11.0.12, Maven 3.8.1 > Reporter: AO Industries, Inc. > Priority: Minor > Attachments: pom.xml > > > The documentation cites ${settings.offline} as a means to determine if the > current build is offline: [https://maven.apache.org/settings.html#properties] > For the life of me, I cannot get anything from a ${settings.offline} property > in any way. ${settings.localRepository} works, though. > --- > I hope to use ${settings.offline} within a maven-antrun-plugin target to > avoid some WSDL GET requests when operating offline. > --- > Thank you. -- This message was sent by Atlassian Jira (v8.20.10#820010)