This is an automated email from the ASF dual-hosted git repository.

vy pushed a commit to branch 2.x
in repository https://gitbox.apache.org/repos/asf/logging-log4j2.git

commit 0ab7d89d944a14849256b114db4ff2008fb96c9d
Author: Volkan Yazıcı <[email protected]>
AuthorDate: Thu Feb 22 10:34:11 2024 +0100

    Add XSD generation
---
 pom.xml | 18 +++++++++++++++++-
 1 file changed, 17 insertions(+), 1 deletion(-)

diff --git a/pom.xml b/pom.xml
index 2b710f6e72..4a35c8fd3c 100644
--- a/pom.xml
+++ b/pom.xml
@@ -872,6 +872,7 @@
         <groupId>org.apache.logging.log4j</groupId>
         <artifactId>log4j-docgen-maven-plugin</artifactId>
         <version>${log4j-docgen.version}</version>
+        <inherited>false</inherited>
         <executions>
           <execution>
             <id>generate-plugin-docs</id>
@@ -879,7 +880,6 @@
               <goal>generate-documentation</goal>
             </goals>
             <phase>pre-site</phase>
-            <inherited>false</inherited>
             <configuration>
               <descriptorFileMatchers>
                 <descriptorFileMatcher>
@@ -902,6 +902,22 @@
               </pluginTemplate>
             </configuration>
           </execution>
+          <execution>
+            <id>generate-plugin-schema</id>
+            <goals>
+              <goal>generate-schema</goal>
+            </goals>
+            <phase>pre-site</phase>
+            <configuration>
+              <descriptorFileMatchers>
+                <descriptorFileMatcher>
+                  
<baseDirectory>${project.build.directory}/plugin-descriptors</baseDirectory>
+                  <pathPatterns>glob:**/*.xml</pathPatterns>
+                </descriptorFileMatcher>
+              </descriptorFileMatchers>
+              
<schemaFile>${project.build.directory}/generated-sources/site/resources/config.xsd</schemaFile>
+            </configuration>
+          </execution>
         </executions>
       </plugin>
 

Reply via email to