Support "jf mvn compile" using JFrog CLI command
When attempting to configure a Maven project using the JFrog CLI, the "jf mvn compile" command successfully completes the build process, but the actual compilation fails.
I tried setting up a sample maven project, and encountered the below error while executing the "jf mvn compile"
17:29:00 [🔵Info] Running Mvn... 17:29:00 [🔵Info] Running mvn command: /usr/bin/java -classpath /usr/share/maven/boot/plexus-classworlds-2.x.jar -Dmaven.home=/usr/share/maven -DbuildInfoConfig.propertiesFile=/tmp/jfrog/properties/extractorProperties135610658 -Dm3plugin.lib=/root/.jfrog/dependencies/maven/2.41.16 -Dclassworlds.conf=/root/.jfrog/dependencies/maven/2.41.16/classworlds.conf -Dmaven.multiModuleProjectDirectory=/root/proj/my-sample-project -DbuildInfoConfig.artifactoryResolutionEnabled=true org.codehaus.plexus.classworlds.launcher.Launcher compile [main] INFO org.apache.maven.cli.event.ExecutionEventLogger - Scanning for projects... [main] INFO org.jfrog.build.extractor.maven.BuildInfoRecorder - Initializing Artifactory Build-Info Recording [main] INFO org.apache.maven.cli.event.ExecutionEventLogger - [main] INFO org.apache.maven.cli.event.ExecutionEventLogger - ---------------------< com.example:sample-project >--------------------- [main] INFO org.apache.maven.cli.event.ExecutionEventLogger - Building sample-project 1.0-SNAPSHOT [main] INFO org.apache.maven.cli.event.ExecutionEventLogger - --------------------------------[ jar ]--------------------------------- [main] INFO org.apache.maven.cli.event.ExecutionEventLogger - [main] INFO org.apache.maven.cli.event.ExecutionEventLogger - --- maven-resources-plugin:2.6:resources (default-resources) @ sample-project --- [main] WARNING org.apache.maven.shared.filtering.DefaultMavenResourcesFiltering - Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent! [main] INFO org.apache.maven.shared.filtering.DefaultMavenResourcesFiltering - skip non existing resourceDirectory /root/proj/my-sample-project/src/main/resources [main] INFO org.apache.maven.cli.event.ExecutionEventLogger - [main] INFO org.apache.maven.cli.event.ExecutionEventLogger - --- maven-compiler-plugin:3.1:compile (default-compile) @ sample-project --- [main] INFO org.apache.maven.plugin.compiler.CompilerMojo - Nothing to compile - all classes are up to date [main] INFO org.jfrog.build.extractor.maven.BuildDeploymentHelper - Artifactory Build Info Recorder: Saving Build Info to '/root/proj/my-sample-project/target/build-info.json' [main] INFO org.jfrog.build.extractor.maven.BuildDeploymentHelper - Artifactory Build Info Recorder: deploy artifacts set to false, artifacts will not be deployed... [main] INFO org.jfrog.build.extractor.maven.BuildDeploymentHelper - Artifactory Build Info Recorder: publish build info set to false, build info will not be published... [main] INFO org.apache.maven.cli.event.ExecutionEventLogger - ------------------------------------------------------------------------ [main] INFO org.apache.maven.cli.event.ExecutionEventLogger - BUILD SUCCESS [main] INFO org.apache.maven.cli.event.ExecutionEventLogger - ------------------------------------------------------------------------ [main] INFO org.apache.maven.cli.event.ExecutionEventLogger - Total time: 1.180 s [main] INFO org.apache.maven.cli.event.ExecutionEventLogger - Finished at: 2024-06-10T17:29:02Z [main] INFO org.apache.maven.cli.event.ExecutionEventLogger - ------------------------------------------------------------------------ { "status": "failure", "totals": { "success": 0, "failure": 1 } }
Describe the solution you'd like to see: Given that "jf mvn install" is functioning correctly, Artifactory should support the capability to execute "jf mvn compile".