Skip to content

Commit d36dad6

Browse files
committed
PDFBOX-6021: add generation of plugin descriptor because of build problem with 2.25.0, as suggested by Piotr P. Karwasz; closes #207
git-svn-id: https://svn.apache.org/repos/asf/pdfbox/trunk@1926572 13f79535-47bb-0310-9956-ffa450edef68
1 parent 27ce802 commit d36dad6

File tree

1 file changed

+42
-0
lines changed

1 file changed

+42
-0
lines changed

debugger/pom.xml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,48 @@
9797
</resource>
9898
</resources>
9999
<plugins>
100+
<!-- https://logging.apache.org/log4j/2.x/manual/plugins.html#plugin-registry -->
101+
<!-- needed since log4j 2.25.0 because of DebugLogAppender.java plugin -->
102+
<plugin>
103+
<groupId>org.apache.maven.plugins</groupId>
104+
<artifactId>maven-compiler-plugin</artifactId>
105+
<!-- Enable generation of Log4j Core plugin metadata -->
106+
<executions>
107+
<execution>
108+
<id>default-compile</id>
109+
<configuration>
110+
<!--
111+
~ Enables annotation processing
112+
~ This option is only recognized by recent JDK versions:
113+
~ - 11.0.23 or later
114+
~ - 17.0.11 or later
115+
-->
116+
<proc>full</proc>
117+
<annotationProcessorPaths>
118+
<path>
119+
<groupId>org.apache.logging.log4j</groupId>
120+
<artifactId>log4j-core</artifactId>
121+
</path>
122+
</annotationProcessorPaths>
123+
<annotationProcessors>
124+
<!-- Generate a `Log4j2Plugins.dat` descriptor -->
125+
<annotationProcessor>
126+
org.apache.logging.log4j.core.config.plugins.processor.PluginProcessor
127+
</annotationProcessor>
128+
<!-- Generate GraalVM reachability metadata -->
129+
<annotationProcessor>
130+
org.apache.logging.log4j.core.config.plugins.processor.GraalVmProcessor
131+
</annotationProcessor>
132+
</annotationProcessors>
133+
<compilerArgs>
134+
<!-- Required arguments for GraalVmProcessor -->
135+
<arg>-Alog4j.graalvm.groupId=${project.groupId}</arg>
136+
<arg>-Alog4j.graalvm.artifactId=${project.artifactId}</arg>
137+
</compilerArgs>
138+
</configuration>
139+
</execution>
140+
</executions>
141+
</plugin>
100142
<plugin>
101143
<groupId>org.apache.maven.plugins</groupId>
102144
<artifactId>maven-jar-plugin</artifactId>

0 commit comments

Comments
 (0)