nodece commented on PR #22327:
URL: https://github.com/apache/pulsar/pull/22327#issuecomment-2025412874

   I tried to use the following config to generate the log4j2 plugin config, 
but not working.
   ```xml
           <plugin>
             <groupId>org.apache.maven.plugins</groupId>
             <artifactId>maven-shade-plugin</artifactId>
             <version>${maven-shade-plugin}</version>
             <dependencies>
               <dependency>
                 <groupId>org.apache.logging.log4j</groupId>
                 
<artifactId>log4j-transform-maven-shade-plugin-extensions</artifactId>
                 <version>0.1.0</version>
               </dependency>
             </dependencies>
             <executions>
             <execution>
               <id>shade-jar-with-dependencies</id>
               <phase>package</phase>
               <goals>
                 <goal>shade</goal>
               </goals>
               <configuration>
                 <transformers>
                   <transformer 
implementation="org.apache.logging.log4j.maven.plugins.shade.transformer.Log4j2PluginCacheFileTransformer"/>
                   <transformer 
implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer"/>
                   <transformer 
implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
                     <manifestEntries>
                       <Multi-Release>true</Multi-Release>
                     </manifestEntries>
                   </transformer>
                 </transformers>
               </configuration>
             </execution>
             </executions>
           </plugin>
   ```
   Or
   ```
    <plugin>
           <groupId>org.apache.maven.plugins</groupId>
           <artifactId>maven-compiler-plugin</artifactId>
           <configuration>
             <encoding>UTF-8</encoding>
             <showDeprecation>true</showDeprecation>
             <showWarnings>true</showWarnings>
             <!-- workaround 
https://issues.apache.org/jira/browse/MCOMPILER-205 -->
             <useIncrementalCompilation>false</useIncrementalCompilation>
             <annotationProcessorPaths>
               <path>
                 <groupId>org.projectlombok</groupId>
                 <artifactId>lombok</artifactId>
                 <version>${lombok.version}</version>
               </path>
               <path>
                 <groupId>org.apache.logging.log4j</groupId>
                 <artifactId>log4j-core</artifactId>
                 <version>${log4j2.version}</version>
               </path>
             </annotationProcessorPaths>
             <compilerArgs>
               <arg>-parameters</arg>
               <!-- enable 'all' lint warnings with some exclusions -->
               <arg>-Xlint:all</arg>
               <arg>-Xlint:-options</arg>
               <arg>-Xlint:-serial</arg>
               <arg>-Xlint:-classfile</arg>
               <arg>-Xlint:-processing</arg>
               <arg>-Xpkginfo:always</arg>
             </compilerArgs>
           </configuration>
         </plugin>
   ```
   If you have a good idea, please let me know.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to