File tree Expand file tree Collapse file tree 1 file changed +42
-0
lines changed Expand file tree Collapse file tree 1 file changed +42
-0
lines changed Original file line number Diff line number Diff line change 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 >
You can’t perform that action at this time.
0 commit comments