From 6a5b7e4cee53d126d7ba20b652ca3078a0bdc241 Mon Sep 17 00:00:00 2001 From: Thomas Cederholm Date: Wed, 20 May 2026 14:42:29 +0200 Subject: [PATCH] build: Attach sources and javadoc jars on package Bound to the package phase so every `mvn verify` / CI build catches javadoc lint failures before any release tag is cut. Also fixes a broken @link to Request#parsed(Class) (the method is asPojo(Class)) so default doclint passes. --- pom.xml | 28 +++++++++++++++++++ .../http/Jackson2JsonTypeMapper.java | 2 +- 2 files changed, 29 insertions(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 55293ba..5591b08 100644 --- a/pom.xml +++ b/pom.xml @@ -215,6 +215,34 @@ 25 + + org.apache.maven.plugins + maven-source-plugin + 3.4.0 + + + attach-sources + + jar-no-fork + + package + + + + + org.apache.maven.plugins + maven-javadoc-plugin + 3.12.0 + + + attach-javadocs + + jar + + package + + + diff --git a/src/main/java/com/retailsvc/http/Jackson2JsonTypeMapper.java b/src/main/java/com/retailsvc/http/Jackson2JsonTypeMapper.java index f1184ef..38e9ed1 100644 --- a/src/main/java/com/retailsvc/http/Jackson2JsonTypeMapper.java +++ b/src/main/java/com/retailsvc/http/Jackson2JsonTypeMapper.java @@ -11,7 +11,7 @@ * mapper you pass is the mapper you get. * *

Implements {@link TypedTypeMapper}, so handlers can ask for a typed view of the body via - * {@link Request#parsed(Class)}. + * {@link Request#asPojo(Class)}. * *

Typical wiring: *