Description of problem
Multi-module application (source+deps) analysis fails when maven credentials are associated. This will be required for secured maven repositories.
How reproducible
Always.
Steps to Reproduce:
- Create an application. Recommend: https://github.com/WASdev/sample.daytrader7
- Associate maven credentials.
- Run analysis.
Actual results
Task fails with error="file already exists."
Expected results
Succeeds.
Additional info
The file already exists is a safety put in place to support local testing. It ensured that when running the addon locally, we did not overwrite a developer's git, svn and maven configuration and credentials. For multi-module applications, maven runs twice. Each time it will install the settings.xml. The second time, it detects that it already exists and fails.
I think the fix is to adjust the safety to skip installing configuration and credentials when they already exist rather than error.