Referenz von Regel/Ruleset 'upstream.xml' kann nicht behoben werden. Stellen Sie sicher, dass die Ressource eine gültigeJava

Java-Forum
Anonymous
 Referenz von Regel/Ruleset 'upstream.xml' kann nicht behoben werden. Stellen Sie sicher, dass die Ressource eine gültige

Post by Anonymous »

Ich bin verwirrt darüber, wo PMD nach Regeln -Dateien sucht. Ich habe einige Regeln, die ich in einer Reihe von Mavan -Projekten von einem alten Projekt wiederverwenden möchte. In diesem Projekt wurde der Regeln über eine HTTP -URL verwiesen, aber jetzt versuche ich, ein Maven -Projekt zu erstellen, um die Regeln zu enthalten und es zu verweisen. Ich erhalte den Fehler im Titel, aber wenn ich den Klassenpfad in der Debug -Ausgabe von Maven betrachte, enthält er nicht den Ort der Standard -Regeln, die in Ordnung auflösen, und enthält den Ort, an dem ich versuche, meinen Regeln zu setzen.

Code: Select all

PMD rules of Kode Konveyor




Die Ausgabe von MVN PMD: PMD - -Debug enthält:

Code: Select all

[DEBUG] Using aux classpath: [/home/mag/project/civitas-ng/data/target/test-classes, /home/mag/project/civitas-ng/data/target/classes, /home/mag/.m2/repository/org/projectlombok/lombok/1.18.36/lombok-1.18.36.jar, /home/mag/.m2/repository/org/springframework/data/spring-data-keyvalue/4.0.0-M3/spring-data-keyvalue-4.0.0-M3.jar, /home/mag/.m2/repository/org/springframework/data/spring-data-commons/4.0.0-M3/spring-data-commons-4.0.0-M3.jar, /home/mag/.m2/repository/org/springframework/spring-core/7.0.0-M5/spring-core-7.0.0-M5.jar, /home/mag/.m2/repository/commons-logging/commons-logging/1.3.5/commons-logging-1.3.5.jar, /home/mag/.m2/repository/org/jspecify/jspecify/1.0.0/jspecify-1.0.0.jar, /home/mag/.m2/repository/org/springframework/spring-beans/7.0.0-M5/spring-beans-7.0.0-M5.jar, /home/mag/.m2/repository/org/springframework/spring-context/7.0.0-M5/spring-context-7.0.0-M5.jar, /home/mag/.m2/repository/org/springframework/spring-aop/7.0.0-M5/spring-aop-7.0.0-M5.jar, /home/mag/.m2/repository/org/springframework/spring-expression/7.0.0-M5/spring-expression-7.0.0-M5.jar, /home/mag/.m2/repository/io/micrometer/micrometer-observation/1.15.0/micrometer-observation-1.15.0.jar, /home/mag/.m2/repository/io/micrometer/micrometer-commons/1.15.0/micrometer-commons-1.15.0.jar, /home/mag/.m2/repository/org/springframework/spring-tx/7.0.0-M5/spring-tx-7.0.0-M5.jar, /home/mag/.m2/repository/org/slf4j/slf4j-api/2.0.2/slf4j-api-2.0.2.jar, /home/mag/.m2/repository/jakarta/xml/bind/jakarta.xml.bind-api/4.0.2/jakarta.xml.bind-api-4.0.2.jar, /home/mag/.m2/repository/jakarta/activation/jakarta.activation-api/2.1.3/jakarta.activation-api-2.1.3.jar, /home/mag/.m2/repository/io/github/magwas/konveyor-pmdrules/0.0.2-3-g5b9385b/konveyor-pmdrules-0.0.2-3-g5b9385b.jar]
[INFO] PMD version: 7.14.0
[DEBUG] Using language java+version:17
[DEBUG] Adding classpath entry: 
[DEBUG] Adding classpath entry: 
[DEBUG] Adding classpath entry: 
[DEBUG] Adding classpath entry: 
[DEBUG] Adding classpath entry: 
[DEBUG] Adding classpath entry: 
[DEBUG] Adding classpath entry: 
[DEBUG] Adding classpath entry: 
[DEBUG] Adding classpath entry: 
[DEBUG] Adding classpath entry: 
[DEBUG] Adding classpath entry: 
[DEBUG] Adding classpath entry: 
[DEBUG] Adding classpath entry: 
[DEBUG] Adding classpath entry: 
[DEBUG] Adding classpath entry: 
[DEBUG] Adding classpath entry: 
[DEBUG] Adding classpath entry:  
[DEBUG] Adding classpath entry: 
[DEBUG] Adding classpath entry: 
Der Inhalt von /home/mag/.m2/repository/io/github/magwas/konveyor-pmrules/0.2-3-3-g5b9385b/konveyor-pmdrues-0.2-3-3-G5b9385b.jar
Die Debug -Ausgabe enthält auch Folgendes: < /p>
[DEBUG] (f) typeResolution = true
[DEBUG] -- end configuration --
[/code]
Da ich also verstehe, dass das Kompilier-/Test -Klassenpfad des Projekts an PMD übergeben werden sollte, ist dies möglicherweise nicht relevant.>

Quick Reply

Change Text Case: 
   
  • Similar Topics
    Replies
    Views
    Last post