To analyze applications in environments where a container engine is not available or not needed, you can run the {ProductFullName} command-line interface (CLI) in containerless mode. This way, you can run assessments directly on your local machine by using the provided shell script, bypassing the need for Podman or Docker.
|
Important
|
In {ProductShortName} 7.2.0 and later, containerless CLI is a default mode. To enable container runtime usage for the analysis of Java applications, you must set the --run-local=false The analysis for other applications runs in the container mode automatically. |
-
You installed the {ProductShortName} CLI. For more information, see Installing the CLI by using a .zip file.
-
You installed Java Development Kit (JDK) version 17 or later.
-
If you use OpenJDK on Red Hat Enterprise Linux (RHEL) or Fedora, you installed the Java
develpackage. -
You installed Maven version 3.9.9 or later.
-
The CLI assumes that a path to the
mvnbinary is correctly registered in the system variable. Therefore, ensure that you addedmvnto the following variable:-
Pathfor Windows. -
PATHfor Linux and macOS.
-
-
You set the
JAVA_HOMEenvironmental variable. -
You set the
JVM_MAX_MEMsystem variable.NoteIf you do not set JVM_MAX_MEM, the analysis might hang because Java might require more memory than the defaultJVM_MAX_MEMvalue. -
For Gradle analysis:
-
You installed OpenJDK version 8.
-
You set
$JAVA8_HOMEand it is pointing to the OpenJDK 8 home directory. -
Your project has a Gradle wrapper.
-
-
Optional: Display all
mta-cli analyzecommand options:$ mta-cli analyze --help
-
Run the application analysis:
$ mta-cli analyze --overwrite --input <path_to_input> --output <path_to_output> --target <target_source>
NoteThe --overwriteoption overwrites the output folder if it exists.