This is an automated email from the ASF dual-hosted git repository.

lukaszlenart pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/struts-intellij-plugin.git


The following commit(s) were added to refs/heads/main by this push:
     new 8c77664  fix: strip leading slash from DTD resource path (#43)
8c77664 is described below

commit 8c776641d266b7d58a1e09f32c88ec0e480dfaaf
Author: Lukasz Lenart <[email protected]>
AuthorDate: Mon Feb 23 17:19:33 2026 +0100

    fix: strip leading slash from DTD resource path (#43)
    
    In IntelliJ 2025.3, PluginClassLoader.findResource() no longer resolves
    resource paths with a leading `/`. Remove the leading slash from
    DTD_PATH to fix marketplace verification error.
    
    🤖 Generated with [Claude Code](https://claude.com/claude-code)
    
    Co-authored-by: Claude <[email protected]>
---
 src/main/java/com/intellij/struts2/Struts2ResourceProvider.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/main/java/com/intellij/struts2/Struts2ResourceProvider.java 
b/src/main/java/com/intellij/struts2/Struts2ResourceProvider.java
index 96f1d75..9d7ee05 100644
--- a/src/main/java/com/intellij/struts2/Struts2ResourceProvider.java
+++ b/src/main/java/com/intellij/struts2/Struts2ResourceProvider.java
@@ -26,7 +26,7 @@ import org.jetbrains.annotations.NonNls;
  */
 final class Struts2ResourceProvider implements StandardResourceProvider {
     @NonNls
-    private static final String DTD_PATH = "/resources/dtds/";
+    private static final String DTD_PATH = "resources/dtds/";
 
     @Override
     public void registerResources(final ResourceRegistrar registrar) {

Reply via email to