This issue has been created
 
 
XWiki Platform / cid:jira-generated-image-avatar-5a95538e-c103-42f8-abc3-d193fe0fd71a XWIKI-24291 Open

Importmap analysis can fail in case of snapshot fetched remotely

 
View issue   ยท   Add comment
 

Issue created

 
cid:jira-generated-image-avatar-e2ab273b-b56f-4013-8feb-05b4ca778b83 Manuel Leduc created this issue on 27/Apr/26 18:13
 
Summary: Importmap analysis can fail in case of snapshot fetched remotely
Issue Type: cid:jira-generated-image-avatar-5a95538e-c103-42f8-abc3-d193fe0fd71a Bug
Affects Versions: 18.2.1
Assignee: Unassigned
Components: Javascript - Importmap
Created: 27/Apr/26 18:13
Priority: cid:jira-generated-image-static-major-0dfcd283-4a62-47e8-9b6f-a24816690484 Major
Reporter: Manuel Leduc
Description:

Reproduction steps

  1. build a module with an importmap and referencing a module with a snapshot version
  2. make sure the target directory of the referenced module is empty

Expected

The build pass

Actual

The build fails with an error like

[ERROR] Failed to execute goal org.xwiki.platform:xwiki-platform-tool-importmap-plugin:18.4.0-SNAPSHOT:verify (enforce-valid-javascript-importmap) on project                               
  xwiki-platform-livedata-webjar: Unable to find path [index.es.js] in jar                                                                                                                    
  [/home/mleduc/.m2/repository/org/xwiki/platform/xwiki-platform-livedata-node-componentstore/18.4.0-SNAPSHOT/xwiki-platform-livedata-node-componentstore-18.4.0-SNAPSHOT.jar] -> [Help 1]