diff --git a/docs/src/main/asciidoc/building-my-first-extension.adoc b/docs/src/main/asciidoc/building-my-first-extension.adoc index 79c5cc7a03b9e..e61f80b010a27 100644 --- a/docs/src/main/asciidoc/building-my-first-extension.adoc +++ b/docs/src/main/asciidoc/building-my-first-extension.adoc @@ -800,7 +800,7 @@ You can launch your application with the following command line: [source,bash] ---- -mvnDebug clean compile quarkus:dev +mvnDebug quarkus:dev ---- By default, Maven will wait for a connection on `localhost:8000`. @@ -865,21 +865,13 @@ Run the application and notice the `Installed Features` list contains the `greet [source,shell,subs=attributes+] ---- -$ mvn clean compile quarkus:dev +$ mvn quarkus:dev [INFO] Scanning for projects... [INFO] [INFO] -----------------------< org.acme:greeting-app >------------------------ [INFO] Building greeting-app 1.0.0-SNAPSHOT [INFO] --------------------------------[ jar ]--------------------------------- [INFO] -[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ greeting-app --- -[INFO] -[INFO] --- quarkus-maven-plugin:{quarkus-version}:generate-code (default) @ greeting-app --- -[INFO] -[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ greeting-app --- -[INFO] Using 'UTF-8' encoding to copy filtered resources. -[INFO] Copying 1 resource -[INFO] [INFO] --- maven-compiler-plugin:3.13.0:compile (default-compile) @ greeting-app --- [INFO] Nothing to compile - all classes are up to date [INFO] @@ -889,9 +881,9 @@ __ ____ __ _____ ___ __ ____ ______ --/ __ \/ / / / _ | / _ \/ //_/ / / / __/ -/ /_/ / /_/ / __ |/ , _/ ,< / /_/ /\ \ --\___\_\____/_/ |_/_/|_/_/|_|\____/___/ -2021-01-27 10:28:07,240 INFO [io.quarkus] (Quarkus Main Thread) greeting-app 1.0.0-SNAPSHOT on JVM (powered by Quarkus {quarkus-version}) started in 0.531s. Listening on: http://localhost:8080 -2021-01-27 10:28:07,242 INFO [io.quarkus] (Quarkus Main Thread) Profile dev activated. Live Coding activated. -2021-01-27 10:28:07,243 INFO [io.quarkus] (Quarkus Main Thread) Installed features: [cdi, greeting-extension, servlet] +2022-11-20 04:25:36,885 INFO [io.quarkus] (Quarkus Main Thread) greeting-app 1.0.0-SNAPSHOT on JVM (powered by Quarkus {quarkus-version}) started in 4.591s. Listening on: http://localhost:8080 +2022-11-20 04:25:36,911 INFO [io.quarkus] (Quarkus Main Thread) Profile dev activated. Live Coding activated. +2022-11-20 04:25:36,913 INFO [io.quarkus] (Quarkus Main Thread) Installed features: [cdi, greetin-extension, resteasy-reactive, smallrye-context-propagation, vertx] ---- From an extension developer standpoint the Maven publication strategy is very handy and fast but Quarkus wants to go one step further by also ensuring a reliability of the ecosystem for the people who will use the extensions. diff --git a/docs/src/main/asciidoc/cdi-reference.adoc b/docs/src/main/asciidoc/cdi-reference.adoc index aaafe90d46114..f10a3a66eee15 100644 --- a/docs/src/main/asciidoc/cdi-reference.adoc +++ b/docs/src/main/asciidoc/cdi-reference.adoc @@ -455,7 +455,7 @@ Unused interceptors and decorators are not associated with any bean. [TIP] ==== -When using the dev mode (running `./mvnw clean compile quarkus:dev`), you can see more information about which beans are being removed: +When using the dev mode (running `./mvnw quarkus:dev`), you can see more information about which beans are being removed: 1. In the console - just enable the DEBUG level in your `application.properties`, i.e. `quarkus.log.category."io.quarkus.arc.processor".level=DEBUG` 2. In the relevant Dev UI page diff --git a/docs/src/main/asciidoc/kafka-streams.adoc b/docs/src/main/asciidoc/kafka-streams.adoc index 1119b939acdce..b25fe1ac895d9 100644 --- a/docs/src/main/asciidoc/kafka-streams.adoc +++ b/docs/src/main/asciidoc/kafka-streams.adoc @@ -22,7 +22,7 @@ It is recommended, that you have read the link:{quickstarts-tree-url}/kafka-quic [NOTE] ==== -The Quarkus extension for Kafka Streams allows for very fast turnaround times during development by supporting the Quarkus Dev Mode (e.g. via `./mvnw compile quarkus:dev`). +The Quarkus extension for Kafka Streams allows for very fast turnaround times during development by supporting the Quarkus Dev Mode (e.g. via `./mvnw quarkus:dev`). After changing the code of your Kafka Streams topology, the application will automatically be reloaded when the next input message arrives. A recommended development set-up is to have some producer which creates test messages on the processed topic(s) in fixed intervals, e.g. every second and observe the streaming application's output topic(s) using a tool such as `kafkacat`. diff --git a/docs/src/main/asciidoc/openapi-swaggerui.adoc b/docs/src/main/asciidoc/openapi-swaggerui.adoc index 514d5af986d47..356bb5156445d 100644 --- a/docs/src/main/asciidoc/openapi-swaggerui.adoc +++ b/docs/src/main/asciidoc/openapi-swaggerui.adoc @@ -524,7 +524,7 @@ Now, we are ready to run our application: [source,bash] ---- -./mvnw compile quarkus:dev +./mvnw quarkus:dev ---- You can check the Swagger UI path in your application's log: diff --git a/docs/src/main/asciidoc/security-jwt.adoc b/docs/src/main/asciidoc/security-jwt.adoc index b4fa7d8db2327..b2687eca370ed 100644 --- a/docs/src/main/asciidoc/security-jwt.adoc +++ b/docs/src/main/asciidoc/security-jwt.adoc @@ -251,7 +251,7 @@ public class TokenSecuredResource { they have either a "User" or "Admin" role assigned. <4> Here we build the reply the same way as in the `hello` method but also add a value of the JWT `birthdate` claim by directly calling the injected `JsonWebToken`. -After you make this addition to your `TokenSecuredResource`, rerun the `./mvnw compile quarkus:dev` command, and then try `curl -v http://127.0.0.1:8080/secured/roles-allowed; echo` to attempt to access the new endpoint. +After you make this addition to your `TokenSecuredResource`, rerun the `./mvnw quarkus:dev` command, and then try `curl -v http://127.0.0.1:8080/secured/roles-allowed; echo` to attempt to access the new endpoint. Your output should be as follows: diff --git a/docs/src/main/asciidoc/writing-extensions.adoc b/docs/src/main/asciidoc/writing-extensions.adoc index 81c18ab151358..727afd45f6d77 100644 --- a/docs/src/main/asciidoc/writing-extensions.adoc +++ b/docs/src/main/asciidoc/writing-extensions.adoc @@ -2359,12 +2359,12 @@ as this will only increase the verbosity of logs in the particular test where th ==== Multi-module Maven Projects and the Development Mode It's not uncommon to develop an extension in a multi-module Maven project that also contains an "example" module. -However, if you want to run the example in the development mode then the `-DnoDeps` system property must be used in order to exclude the local project dependencies. -Otherwise, Quarkus attempts to monitor the extension classes and this may result in weird class loading issues. + +In multi-module Maven projects we recommend to have an explicit `compile` call to ensure compilation happens before the `quarkus:dev` goal is executed. [source,bash] ---- -./mvnw compile quarkus:dev -DnoDeps +./mvnw compile quarkus:dev ---- ==== Indexer does not include your external dependency diff --git a/independent-projects/tools/base-codestarts/src/main/resources/codestarts/quarkus/buildtool/maven/codestart.yml b/independent-projects/tools/base-codestarts/src/main/resources/codestarts/quarkus/buildtool/maven/codestart.yml index 8c58d9d38e0f7..170bc1f3d1d37 100644 --- a/independent-projects/tools/base-codestarts/src/main/resources/codestarts/quarkus/buildtool/maven/codestart.yml +++ b/independent-projects/tools/base-codestarts/src/main/resources/codestarts/quarkus/buildtool/maven/codestart.yml @@ -11,7 +11,7 @@ language: guide: https://quarkus.io/guides/maven-tooling guide-native: https://quarkus.io/guides/building-native-image cmd: - dev: compile quarkus:dev + dev: quarkus:dev package: package package-uber-jar: package -Dquarkus.package.jar.type=uber-jar package-legacy-jar: package -Dquarkus.package.jar.type=legacy-jar diff --git a/independent-projects/tools/devtools-testing/src/main/java/io/quarkus/devtools/testing/codestarts/QuarkusCodestartTest.java b/independent-projects/tools/devtools-testing/src/main/java/io/quarkus/devtools/testing/codestarts/QuarkusCodestartTest.java index 985a14a5105ed..56eaab4e5d9ce 100644 --- a/independent-projects/tools/devtools-testing/src/main/java/io/quarkus/devtools/testing/codestarts/QuarkusCodestartTest.java +++ b/independent-projects/tools/devtools-testing/src/main/java/io/quarkus/devtools/testing/codestarts/QuarkusCodestartTest.java @@ -227,7 +227,7 @@ public AbstractPathAssert checkGeneratedTestSource(Language language, String * Very usefull to check if a file contains a specific String: *
* Example:
- * codestartTest.assertThatGeneratedFile(JAVA, "README.md").satisfies(checkContains("./mvnw compile quarkus:dev + * codestartTest.assertThatGeneratedFile(JAVA, "README.md").satisfies(checkContains("./mvnw quarkus:dev * -Dquarkus.args='Quarky")); * * @param language the language diff --git a/independent-projects/tools/devtools-testing/src/test/resources/__snapshots__/QuarkusCodestartGenerationTest/generateDefault/README.md b/independent-projects/tools/devtools-testing/src/test/resources/__snapshots__/QuarkusCodestartGenerationTest/generateDefault/README.md index 5c24a407eb33f..bff00113c01bf 100644 --- a/independent-projects/tools/devtools-testing/src/test/resources/__snapshots__/QuarkusCodestartGenerationTest/generateDefault/README.md +++ b/independent-projects/tools/devtools-testing/src/test/resources/__snapshots__/QuarkusCodestartGenerationTest/generateDefault/README.md @@ -9,7 +9,7 @@ If you want to learn more about Quarkus, please visit its website: **_NOTE:_** Quarkus now ships with a Dev UI, which is available in dev mode only at . diff --git a/integration-tests/devtools/src/test/java/io/quarkus/devtools/codestarts/quarkus/PicocliCodestartTest.java b/integration-tests/devtools/src/test/java/io/quarkus/devtools/codestarts/quarkus/PicocliCodestartTest.java index 607617de02e8d..dee806c2728a4 100644 --- a/integration-tests/devtools/src/test/java/io/quarkus/devtools/codestarts/quarkus/PicocliCodestartTest.java +++ b/integration-tests/devtools/src/test/java/io/quarkus/devtools/codestarts/quarkus/PicocliCodestartTest.java @@ -31,7 +31,7 @@ void testContent() throws Throwable { codestartTest.checkGeneratedSource("org.acme.GreetingCommand"); codestartTest.assertThatGeneratedFile(JAVA, "README.md") - .satisfies(checkContains("./mvnw compile quarkus:dev -Dquarkus.args='Quarky")); + .satisfies(checkContains("./mvnw quarkus:dev -Dquarkus.args='Quarky")); codestartGradleTest.assertThatGeneratedFile(JAVA, "README.md") .satisfies(checkContains("./gradlew quarkusDev --quarkus-args='Quarky'")); diff --git a/integration-tests/elasticsearch-rest-client/src/main/resources/META-INF/resources/index.html b/integration-tests/elasticsearch-rest-client/src/main/resources/META-INF/resources/index.html index a815a45c35ba0..369508c4f7c90 100644 --- a/integration-tests/elasticsearch-rest-client/src/main/resources/META-INF/resources/index.html +++ b/integration-tests/elasticsearch-rest-client/src/main/resources/META-INF/resources/index.html @@ -114,7 +114,7 @@

Why do you see this?

What can I do from here?

-

If not already done, run the application in dev mode using: mvn compile quarkus:dev. +

If not already done, run the application in dev mode using: mvn quarkus:dev.