Using mvn cmd with jfrog cli doesn’t redirect mvn stdout contents.
Is your feature request related to a problem? Please describe. Running the below command, version variable is empty. As an example this is not working as expected: #version=$(jf mvn org.apache.maven.plugins:maven-help-plugin:3.2.0:evaluate -Dexpression=project.version -q -DforceStdout) #echo “version=${version}”
Describe the solution you'd like to see The jfrog cli should redirect mvn stdout contents.
Describe alternatives you've considered Use maven client to overcome the issue
Additional context
Working with maven client
maven-example % version=$(mvn org.apache.maven.plugins:maven-help-plugin:3.2.0:evaluate -Dexpression=project.version -q -DforceStdout)
maven-example % echo $version
3.7-SNAPSHOT
With Jfrog cli as wrapper
maven-example % version=$(jf mvn org.apache.maven.plugins:maven-help-plugin:3.2.0:evaluate -Dexpression=project.version -q -DforceStdout)
16:07:00 [:large_blue_circle:Info] Running Mvn...
16:07:00 [:large_blue_circle:Info] Running mvn command:..................
3.7-SNAPSHOT%
maven-example %
maven-example % echo $version
{
"status": "failure",
"totals": {
"success": 0,
"failure": 1
}
}
More like a bug than a feature request...
This issue has been marked as stale due to 6 months of inactivity. As part of our effort to address every issue properly, please feel free to remove the stale label or keep this issue active by leaving a comment. Otherwise, it will be closed in 7 days
This issue was closed due to 7 days of inactivity after being marked as stale. Feel free to reopen it if it remains relevant.