diff --git a/.gitignore b/.gitignore index fe0d85587..77e5f64ea 100644 --- a/.gitignore +++ b/.gitignore @@ -21,5 +21,8 @@ blog/docs/images/case-studies/ .project *.class +# Don't include maven wrapper jar +maven-wrapper.jar + # Ignore Python virtual environments .venv diff --git a/code-samples/community/serving/helloworld-java-micronaut/.mvn/wrapper/maven-wrapper.jar b/code-samples/community/serving/helloworld-java-micronaut/.mvn/wrapper/maven-wrapper.jar deleted file mode 100644 index 08ebbb67f..000000000 Binary files a/code-samples/community/serving/helloworld-java-micronaut/.mvn/wrapper/maven-wrapper.jar and /dev/null differ diff --git a/code-samples/community/serving/helloworld-java-quarkus/.mvn/wrapper/maven-wrapper.jar b/code-samples/community/serving/helloworld-java-quarkus/.mvn/wrapper/maven-wrapper.jar deleted file mode 100644 index e89f07c22..000000000 Binary files a/code-samples/community/serving/helloworld-java-quarkus/.mvn/wrapper/maven-wrapper.jar and /dev/null differ diff --git a/code-samples/community/serving/helloworld-java-quarkus/README.md b/code-samples/community/serving/helloworld-java-quarkus/README.md index 317b95d29..0d12d0326 100644 --- a/code-samples/community/serving/helloworld-java-quarkus/README.md +++ b/code-samples/community/serving/helloworld-java-quarkus/README.md @@ -202,6 +202,7 @@ which you update and create the necessary build and configuration files: 1. Run the application locally: ```bash + mvn wrapper:wrapper ./mvnw compile quarkus:dev ``` diff --git a/code-samples/serving/cloudevents/cloudevents-spring/.mvn/wrapper/maven-wrapper.jar b/code-samples/serving/cloudevents/cloudevents-spring/.mvn/wrapper/maven-wrapper.jar deleted file mode 100644 index 2cc7d4a55..000000000 Binary files a/code-samples/serving/cloudevents/cloudevents-spring/.mvn/wrapper/maven-wrapper.jar and /dev/null differ diff --git a/code-samples/serving/hello-world/helloworld-java-spark/.mvn/wrapper/maven-wrapper.jar b/code-samples/serving/hello-world/helloworld-java-spark/.mvn/wrapper/maven-wrapper.jar deleted file mode 100755 index 01e679973..000000000 Binary files a/code-samples/serving/hello-world/helloworld-java-spark/.mvn/wrapper/maven-wrapper.jar and /dev/null differ diff --git a/code-samples/serving/hello-world/helloworld-java-spark/README.md b/code-samples/serving/hello-world/helloworld-java-spark/README.md index b2bfe4104..d39ac4f40 100644 --- a/code-samples/serving/hello-world/helloworld-java-spark/README.md +++ b/code-samples/serving/hello-world/helloworld-java-spark/README.md @@ -29,6 +29,7 @@ cd knative-docs/code-samples/serving/hello-world/helloworld-java 1. Run the application locally: ```bash + mvn wrapper:wrapper ./mvnw package && java -jar target/helloworld-0.0.1-SNAPSHOT-jar-with-dependencies.jar ``` diff --git a/code-samples/serving/hello-world/helloworld-java-spring/.mvn/wrapper/maven-wrapper.jar b/code-samples/serving/hello-world/helloworld-java-spring/.mvn/wrapper/maven-wrapper.jar deleted file mode 100644 index 9cc84ea9b..000000000 Binary files a/code-samples/serving/hello-world/helloworld-java-spring/.mvn/wrapper/maven-wrapper.jar and /dev/null differ diff --git a/code-samples/serving/hello-world/helloworld-java-spring/README.md b/code-samples/serving/hello-world/helloworld-java-spring/README.md index e7920204c..3b0a3902f 100644 --- a/code-samples/serving/hello-world/helloworld-java-spring/README.md +++ b/code-samples/serving/hello-world/helloworld-java-spring/README.md @@ -74,6 +74,7 @@ cd knative-docs/code-samples/serving/hello-world/helloworld-java-spring 1. Run the application locally: ```bash + mvn wrapper:wrapper ./mvnw package && java -jar target/helloworld-0.0.1-SNAPSHOT.jar ```