From 1b46eadcf78add1d816e62e97223362d43177502 Mon Sep 17 00:00:00 2001
From: jbb01 <32650546+jbb01@users.noreply.github.com>
Date: Sat, 22 Mar 2025 15:04:52 +0100
Subject: [PATCH] Exclude certain standard library classes from docgen type
exclusion
This will allow the log4j-docgen-maven-plugin to generate xsd schema attributes for plugin fields with a type of Class, InetAddress, URL, Charset or Pattern.
---
pom.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pom.xml b/pom.xml
index ffef4829c8a..2245f0705f9 100644
--- a/pom.xml
+++ b/pom.xml
@@ -366,7 +366,7 @@
`log4j-docgen`-specific properties
================================== -->
- ^java\..+
+ ^java\.(?!lang\.Class|net\.InetAddress|net\.URL|nio\.charset\.Charset|util\.regex\.Pattern).+
${maven.multiModuleProjectDirectory}/target/plugin-descriptors/phase1
${maven.multiModuleProjectDirectory}/target/plugin-descriptors/phase2