Problem
While running a Prioritize scan with the Unified Agent, it can return [EUA000] which indicates the analysis is completed successfully. If the scan completed with any code other than a [EUA000] code, it will return the [-100] exit code.
This article describes how to troubleshooting the [EUA010] exit code in a Java-related (Maven/Gradle) project.
Solution
The Unified Agent will return [EUA010] exit code when a dependency filename was not found or is possibly corrupted. In most of the case, this means one of your dependency files cannot be found in the global/local cache folder.
-
Make sure the project builds successfully with no errors.
-
Confirm the dependency Jar file that marked as EUA010 exist in one of the following cache folders (by default):
-
Windows -
-
C:\Users\<User_Name>\.m2\repository\
-
C:\Users\<User_Name>\.gradle\caches\modules-2\files-2.1\
-
-
Linux -
-
/home/<User_Name>/.m2/repository/
-
/home/<User_Name>/.gradle/caches/modules-2/files-2.1/
-
-
-
If the local cache folder is different than the default, please set the following parameter:
-
For Maven project
-
maven.m2RepositoryPath=/local/cache/folder
-
-
For Gradle project
-
gradle.localRepositoryPath=/local/cache/folder
-
-
-
If the Jar file doesn’t exist, please download the missing Jar to this folder, or set the following parameter:
-
For Maven project
-
maven.downloadMissingDependencies=true
-
-
For Gradle project
-
gradle.downloadMissingDependencies=true
-
-
-
Re-run the Prioritize scan.
If the issue still persists, please contact Mend Support.