From 3b00f9bcdb02e259da166541afcc0b2d35ee07b6 Mon Sep 17 00:00:00 2001 From: Mohamed Ashraf Date: Mon, 2 Feb 2026 23:51:02 +0000 Subject: [PATCH] fix: add missing pom.xml to Java Maven test fixture The java_maven test fixture directory was missing a pom.xml file, causing BuildTool detection to fail and return UNKNOWN instead of MAVEN. This broke the test_detect_fixture_project test. Added a standard Maven POM with: - JUnit 5 dependencies (junit-jupiter-api, junit-jupiter-engine) - Maven Surefire plugin for test execution - Java 11 compiler configuration - UTF-8 encoding This enables proper Maven project detection and allows all Java configuration tests to pass. --- .../fixtures/java_maven/pom.xml | 57 +++++++++++++++++++ 1 file changed, 57 insertions(+) create mode 100644 tests/test_languages/fixtures/java_maven/pom.xml diff --git a/tests/test_languages/fixtures/java_maven/pom.xml b/tests/test_languages/fixtures/java_maven/pom.xml new file mode 100644 index 000000000..a49577962 --- /dev/null +++ b/tests/test_languages/fixtures/java_maven/pom.xml @@ -0,0 +1,57 @@ + + + 4.0.0 + + com.example + calculator + 1.0-SNAPSHOT + jar + + Calculator Test Fixture + Java Maven test fixture for CodeFlash + + + 11 + 11 + UTF-8 + 5.9.3 + + + + + + org.junit.jupiter + junit-jupiter-api + ${junit.version} + test + + + org.junit.jupiter + junit-jupiter-engine + ${junit.version} + test + + + + + + + org.apache.maven.plugins + maven-surefire-plugin + 2.22.2 + + + org.apache.maven.plugins + maven-compiler-plugin + 3.11.0 + + 11 + 11 + + + + +