lukaszlenart opened a new issue, #150:
URL: https://github.com/apache/struts-intellij-plugin/issues/150
## Context
In **IntelliJ Platform 2026.3**, XML and HTML left the core plugin and
became the bundled plugin `com.intellij.xml`. A dependency on the
`com.intellij.modules.xml` alias covers the moved modules, including:
- `intellij.xml.parser`, `intellij.xml.psi`, `intellij.xml.dom`,
`intellij.xml.impl`
- `intellij.xml.structureView`, `intellij.xml.structureView.impl`
Without that dependency, XML classes fail at runtime with
`NoClassDefFoundError`. This plugin is built on XML DOM and does not declare
`com.intellij.modules.xml` today.
Tracked with the 2026.3 retarget in #149. The repo currently targets
**2026.2** (`platformVersion = 2026.2`).
`build.gradle.kts` already has standalone modules that moved into this
plugin:
```kotlin
bundledModule("intellij.xml.structureView")
bundledModule("intellij.xml.structureView.impl")
```
`plugin.xml` depends on `intellij.structureView.plugin` (now an alias of
`com.intellij.structureView`). That alias still loads and is not this change.
## API this plugin uses from the XML plugin
| Area | Examples |
|------|----------|
| PSI / DOM | `com.intellij.psi.xml.XmlFile`, `DomFileDescription` for
`struts.xml` and validation files |
| XML config UI | `com.intellij.xml.config.ConfigFilesTreeBuilder`,
`ConfigFileSearcher` |
| Taglibs | `com.intellij.xml.XmlNSDescriptor`,
`com.intellij.xml.util.XmlTagUtil` |
| Structure view | `XmlStructureViewBuilderProvider`, `XmlFileTreeElement` |
## Proposed changes
### `src/main/resources/META-INF/plugin.xml`
Inside `<dependencies>`:
```xml
<plugin id="com.intellij.modules.xml"/>
```
### `build.gradle.kts`
```kotlin
bundledPlugin("com.intellij.xml")
```
After resolving against 2026.3, drop
`bundledModule("intellij.xml.structureView")` and
`bundledModule("intellij.xml.structureView.impl")` if they no longer resolve as
top-level modules. The `com.intellij.modules.xml` alias includes them.
## Acceptance criteria
- [ ] `plugin.xml` depends on `com.intellij.modules.xml`
- [ ] Gradle declares `bundledPlugin("com.intellij.xml")`
- [ ] `./gradlew test -x rat` passes on 2026.3 (DOM, structure view, JSP
taglib tests)
- [ ] `./gradlew runPluginVerifier` does not report a missing XML dependency
for `263.*`
- [ ] `./gradlew runIde` opens `struts.xml` with DOM resolution and the
structure view, with no XML classloader errors
- [ ] `CHANGELOG.md` updated
## References
- [Incompatible changes in 2026.3 — XML plugin
extraction](https://plugins.jetbrains.com/docs/intellij/api-changes-list-2026.html)
- [Modules available in all
products](https://plugins.jetbrains.com/docs/intellij/plugin-compatibility.html)
- Same pattern as #103 (JavaScript v2 modules for 2026.2)
--
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]