bradleylarrick commented on issue #752:
URL: 
https://github.com/apache/maven-pmd-plugin/issues/752#issuecomment-7245419861

   I'm using the latest version of PMD and the plugin and am still getting the 
warning:
   ```
   [INFO] Toolchain in maven-pmd-plugin: JDK[c:\Dev\tools\jdk-26]
   [INFO] PMD version: 7.30.0
   [INFO] Toolchain in maven-pmd-plugin: JDK[c:\Dev\tools\jdk-26]
   [INFO] [stdout] [WARNING] Adding current platform 
c:\Dev\tools\jdk-26\lib\jrt-fs.jar to auxClasspath, which could be the wrong 
java version. Please add the correct jrt-fs.jar explicitly to the auxClasspath. 
See 
https://docs.pmd-code.org/latest/pmd_languages_java.html#providing-the-auxiliary-classpath
 Set env var PMD_JAVA_DISABLE_AUX_CLASSPATH_WARNINGS=true to disable this 
warning.
   ```
   The plugin configuration from my project's effective pom is:
   ````
           <plugin>
             <artifactId>maven-pmd-plugin</artifactId>
             <version>3.28.0</version>
             <dependencies>
               <dependency>
                 <groupId>net.sourceforge.pmd</groupId>
                 <artifactId>pmd-core</artifactId>
                 <version>7.30.0</version>
               </dependency>
               <dependency>
                 <groupId>net.sourceforge.pmd</groupId>
                 <artifactId>pmd-java</artifactId>
                 <version>7.30.0</version>
               </dependency>
               <dependency>
                 <groupId>net.sourceforge.pmd</groupId>
                 <artifactId>pmd-javascript</artifactId>
                 <version>7.30.0</version>
               </dependency>
               <dependency>
                 <groupId>net.sourceforge.pmd</groupId>
                 <artifactId>pmd-jsp</artifactId>
                 <version>7.30.0</version>
               </dependency>
             </dependencies>
             <configuration>
               <excludes />
               <linkXRef>true</linkXRef>
               <minimumTokens>80</minimumTokens>
               <targetJdk>25</targetJdk>
               <rulesets>
                 <ruleset>C:\Users\bradley/.m2/pmdRules.xml</ruleset>
               </rulesets>
               <includeTests>false</includeTests>
               <linkXRef>false</linkXRef>
             </configuration>
           </plugin>
   ````
   This is my toolchains.xml:
   ```
   <toolchains>
           <toolchain>
                   <type>jdk</type>
                   <provides>
                           <id>Java26</id>
                           <version>26</version>
                   </provides>
                   <configuration>
                           <jdkHome>c:\Dev\tools\jdk-26</jdkHome>
                   </configuration>
           </toolchain>
           <toolchain>
                   <type>jdk</type>
                   <provides>
                           <id>Java25</id>
                           <version>25</version>
                   </provides>
                   <configuration>
                           <jdkHome>c:\Dev\tools\jdk-25</jdkHome>
                   </configuration>
           </toolchain>
           <toolchain>
                   <type>jdk</type>
                   <provides>
                           <id>Java21</id>
                           <version>21</version>
                   </provides>
                   <configuration>
                           <jdkHome>c:\Dev\tools\jdk-21</jdkHome>
                   </configuration>
           </toolchain>
           <toolchain>
                   <type>jdk</type>
                   <provides>
                           <id>Java17</id>
                           <version>17</version>
                   </provides>
                   <configuration>
                           <jdkHome>c:\Dev\tools\jdk-17</jdkHome>
                   </configuration>
           </toolchain>
   </toolchains>
   ```
   


-- 
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