Repository navigation
fix(samples): add spring-boot-mongo mvnw config and drop stale sets - #156
Merged
Merged
Conversation
Add spring-boot-mongo/.mvn/wrapper/maven-wrapper.properties matching the checked-in Maven Wrapper 3.2.0 scripts (and ignore the downloaded maven-wrapper.jar) so ./mvnw runs out of the box without a separate Maven install. Remove stale committed keploy/ test-set and report folders from non-dedup samples whose quickstarts record fresh (spring-boot-mongo, spring-boot-xml/naive-spring-boot, spring-mysql-redis, spring-petclinic/spring-petclinic-rest, user-manager), keeping the CI dedup and product-catalog fixtures untouched. Signed-off-by: slayerjain <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
spring-boot-mongo/shippedmvnwandmvnw.cmd(Apache Maven Wrapper 3.2.0) without.mvn/wrapper/maven-wrapper.properties, so./mvnw -vfailed on a fresh clone withcannot open /src/.mvn/wrapper/maven-wrapper.properties: No such fileandjava.lang.ClassNotFoundException: org.apache.maven.wrapper.MavenWrapperMain.keploy/test-set-*(and report) directories from 2024–2025, whichkeploy/vscode-extension-enterprise(atorigin/mainc069f9c,src/model/t1.tst1Sets/hasT1Recording) treats as an existing app recording on a fresh clone:spring-boot-mongo: quickstart (java-spring-boot-mongo.md) andspring-boot-mongo/README.mdboth instruct users to record fresh.spring-boot-xml/naive-spring-boot: quickstart (java-spring-boot-xml.md) instructs users to record fresh.spring-petclinic/spring-petclinic-rest: quickstart (java-spring-postgres.md) andspring-petclinic/README.mdrecord fresh, and both enterprise and OSS PetClinic CI scripts deletekeploy/before recording.user-manager:user-manager/README.mdinstructs users to record fresh.spring-mysql-redis: has no quickstart or CI dependency (its README does not mention Keploy), so removing its stalekeploy/test-set-*folders avoidst1.tsmisdetection on a fresh clone.What
spring-boot-mongo/.mvn/wrapper/maven-wrapper.propertiesmatching Maven Wrapper 3.2.0 (distributionUrlfor Apache Maven 3.9.9 andwrapperUrlformaven-wrapper-3.2.0.jar)..mvn/wrapper/maven-wrapper.jartospring-boot-mongo/.gitignoreso running./mvnwdoes not leave an untracked downloaded jar in the working tree.keploy/test-set and report folders from the five non-dedup samples above:spring-boot-mongo/keploy/(last touched 2024-01-17)spring-boot-xml/naive-spring-boot/keploy/(last touched 2025-03-11)spring-mysql-redis/keploy/(last touched 2024-08-16)spring-petclinic/spring-petclinic-rest/keploy/(last touched 2025-04-11)user-manager/keploy/(last touched 2024-01-17)dropwizard-dedup,java-dedup,simple-java-dedup, andspring-boot-product-catalog/keploy/products-crud).Evidence
6d2a575, running./mvnw -vinspring-boot-mongo/insideeclipse-temurin:17-jdkfailed with exit code 1 (cannot open /src/.mvn/wrapper/maven-wrapper.properties: No such fileandjava.lang.ClassNotFoundException: org.apache.maven.wrapper.MavenWrapperMain).ae6ff8f:./mvnw -vinspring-boot-mongo/insideeclipse-temurin:17-jdksucceeded with exit code 0 (Apache Maven 3.9.9).pom.xmldeclares<java.version>20</java.version>, which JDK 17 cannot compile (release version 20 not supported) and JDK 21 can compile: running./mvnw -B -DskipTests clean installinsideeclipse-temurin:21-jdksucceeded with exit code 0 (BUILD SUCCESS), andgit status --porcelainexited 0 with empty output.keploy/docsquickstarts (java-spring-boot-mongo.md,java-spring-boot-xml.md,java-spring-postgres.md), sample READMEs,samples-java/.github/workflows/(grep exit code 1 — zero matches for the five removed paths), and cross-repo CI inkeploy/enterprise(.woodpecker/java-linux.yml->.ci/scripts/java-linux.sh:34runsrm -rf keploy/;saas-cloud-replay-e2e.ymlandselfhosted-cloud-replay-e2e.ymluse onlymysql-crud, pinned6645b0d9) andkeploy/keploy(.github/workflows/java_linux.yml->.github/workflows/test_workflow_scripts/java/spring_petclinic/java-linux.sh:697runssudo rm -rf keploy/).git ls-treeconfirms all dedup andspring-boot-product-catalog/keploy/products-crudfixtures remain intact.