...
1 - If a pom.xml is found in the project, it will be run with Maven, using the package
lifecycle. Any tests will be run during the build process. The output of the tests will be in the plugin execution log.
If it is not desired to run these steps, it maybe more beneficial to run the runMavenmore control over the lifecycles or arguments is required, the runMaven operation works exactly the same, except that it doesn't save the artifact to the artifact repository automatically. This can be done with the File - saveArtifacts operation.
2- If it is not a Maven project, it will be built using javac and other command line tools. Make sure that the Java_HOME specified on the endpoint is a JDK of the required version.
...