diff --git a/src/content/docs/velocity/dev/getting-started/creating-your-first-plugin.mdx b/src/content/docs/velocity/dev/getting-started/creating-your-first-plugin.mdx index edf784b97..d7885bfa5 100644 --- a/src/content/docs/velocity/dev/getting-started/creating-your-first-plugin.mdx +++ b/src/content/docs/velocity/dev/getting-started/creating-your-first-plugin.mdx @@ -90,7 +90,49 @@ system's documentation ([Gradle](https://docs.gradle.org/current/userguide/userg } ``` - + + :::caution + + If you're using JDK 23 or later, you must add the annotation processor manually to your `pom.xml`, as described in the example. + See the [Maven documentation](https://maven.apache.org/plugins/maven-compiler-plugin-4.x/examples/annotation-processor.html) for more information. + + ::: + + ```xml title="pom.xml" replace + + + + papermc + https://repo.papermc.io/repository/maven-public/ + + + + + + com.velocitypowered + velocity-api + \{LATEST_VELOCITY_RELEASE} + provided + + + + com.velocitypowered + velocity-api + \{LATEST_VELOCITY_RELEASE} + processor + + + + ``` + + + :::caution + + If you're using JDK 23 or later, you must add the annotation processor manually to your `pom.xml`, as described in the example. + See the [Maven documentation](https://maven.apache.org/plugins/maven-compiler-plugin-4.x/examples/annotation-processor.html) for more information. + + ::: + ```xml title="pom.xml" replace @@ -108,6 +150,25 @@ system's documentation ([Gradle](https://docs.gradle.org/current/userguide/userg provided + + + + + org.apache.maven.plugins + maven-compiler-plugin + + + + + com.velocitypowered + velocity-api + \{LATEST_VELOCITY_RELEASE} + + + + + + ```