gnodet commented on PR #13658: URL: https://github.com/apache/maven/pull/13658#issuecomment-6301905312
Updated (02114950a0): `maven-api-plugin-processor` now reads `groupId`, `artifactId`, `version` and `goalPrefix` directly from the project's `pom.xml` at compile time (via `Filer.getResource(SOURCE_PATH, "", "pom.xml")`). No `-A` options required. The reading logic: 1. Tries `SOURCE_PATH/pom.xml` first, then `CLASS_OUTPUT/pom.xml` as fallback 2. Parses groupId/artifactId/version from `/project/*` and goalPrefix from the `maven-plugin-plugin` configuration block 3. Falls back gracefully when the filer doesn't support resource reading (UnsupportedOperationException wrapped as RuntimeException by javac's ClientCodeWrapper) 4. `-A` options still work as explicit overrides The `gh-13644` IT POM now has zero `<compilerArgs>` — just `annotationProcessorPaths`. 16/16 unit tests green (added 3 new `parsePom` tests). -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
