How to scan the java projects which uses Atlassian SDK for compiling

Hi @Palugula_Sunil

I think I may have found it. The atlas-mvn script overrides the MAVEN_OPTS setting forcing a smaller memory footprint.

To test this theory can you instead of executing /opt/atlassian-plugin-sdk-6.2.14/bin/atlas-mvn clean package .... execute /opt/atlassian-plugin-sdk-6.2.14/apache-maven-3.5.4/bin/mvn clean package ...

If you want to keep using the atlas-mvn script then you can either opt to export your memory settings at ATLAS_OPTS and try again. This may not work having multiple memory flags set, but you can also comment out line 64 export MAVEN_OPTS="-Xms512M -Xmx768M $ATLAS_OPTS" of the atlas-mvn script and keep your original MAVEN_OPTS.

1 Like

Hi @Mark_Rekveld

Using /opt/atlassian-plugin-sdk-6.2.14/apache-maven-3.5.4/bin/mvn as suggested by you did the trick. Scan got completed without any issues.

Thanks a lot for your help.

Thanks,
Sunil Palugula

Hi @Palugula_Sunil

Brilliant, your welcome and happy scanning!

Cheers,
Mark