whitesource / unified-agent-distribution

51 stars 48 forks source link

error in execute command 'mvn -T1 dependency:tree -DoutputFile=whitesource_mvn_dependency_tree.txt -B', Exit Status 1 #11

Closed darveshsingh closed 2 years ago

darveshsingh commented 3 years ago

Hi team,

Hope you are doing good and staying well 💯

I've temporary done a workaround for the issue by running a clean install.

However, according to this article: https://stackoverflow.com/questions/28835418/mvn-dependencytree-fails-on-trivial-project. It seems that we have to clean and install all the jar files locally before running the dependency tree.

This seems to be a maven behaviour.

This seems to happen for SNAPSHOT builds.

LenaKleyner commented 3 years ago

Hi @darveshsingh ,

This indeed looks like a Maven issue. If you'll set the maven.runPreStep parameter to true, it will trigger a clean Maven install. Will that meet your needs?

Thanks,

Lena

darveshsingh commented 3 years ago

Hello @LenaKleyner ,

Thank you for your response. :) I am using the whitesource's Unified agent. Is it possible to set parameter that way?

Following is a sample java -jar /path/to/wss-unified-agent-20.11.1.jar -c current/folder/whitesource/wss-unified-agent.config

LenaKleyner commented 3 years ago

@darveshsingh, sure, this parameter can be set in the config file or passed as an environment variable.

annarozin commented 2 years ago

@darveshsingh I am closing this issue, feel free to reopen or contact support if you have follow-up questions. Thanks, Anna