-
Notifications
You must be signed in to change notification settings - Fork 287
"jf mvn compile" not giving expected output #2602
Description
Describe the bug
When configuring a Maven project using the JFrog CLI, the "jf mvn compile" command completes the build process successfully, but the actual compilation fails. Despite the build being marked as successful, the output indicates a failure status.
Current behavior
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
}
}
Reproduction steps
- Create a Maven Project.
- Configure with jf CLI
- Execute the "jf mvn compile" inside that particular project.
Expected behavior
No response
JFrog CLI version
Latest JFrog CLI version
Operating system type and version
Linux
JFrog Artifactory version
No response
JFrog Xray version
No response