Skip to content

Commit 28d4312

Browse files
committed
PDFBOX-6021: add generation of plugin descriptor because of build problem with 2.25.0
git-svn-id: https://svn.apache.org/repos/asf/pdfbox/trunk@1926535 13f79535-47bb-0310-9956-ffa450edef68
1 parent 6479aab commit 28d4312

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

debugger/pom.xml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,39 @@
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+
<executions>
106+
<execution>
107+
<id>generate-log4j-plugin-descriptor</id>
108+
<goals>
109+
<goal>compile</goal>
110+
</goals>
111+
<phase>process-classes</phase>
112+
<configuration>
113+
<proc>only</proc>
114+
<annotationProcessorPaths>
115+
<path>
116+
<groupId>org.apache.logging.log4j</groupId>
117+
<artifactId>log4j-core</artifactId>
118+
<version>${log4j2.version}</version>
119+
</path>
120+
</annotationProcessorPaths>
121+
<annotationProcessors>
122+
<processor>org.apache.logging.log4j.core.config.plugins.processor.PluginProcessor</processor>
123+
<processor>org.apache.logging.log4j.core.config.plugins.processor.GraalVmProcessor</processor>
124+
</annotationProcessors>
125+
<compilerArgs>
126+
<arg>-Alog4j.graalvm.groupId=${project.groupId}</arg>
127+
<arg>-Alog4j.graalvm.artifactId=${project.artifactId}</arg>
128+
</compilerArgs>
129+
</configuration>
130+
</execution>
131+
</executions>
132+
</plugin>
100133
<plugin>
101134
<groupId>org.apache.maven.plugins</groupId>
102135
<artifactId>maven-jar-plugin</artifactId>

0 commit comments

Comments
 (0)