IntelliJ does not detect struts 2 and tiles, can't create fileset
Environment:
- OS: Windows 7
- Intellij-Version: 2016.2
- Struts-Version: 2.5.2
- Struts-Plugin enabled: yes
Today I created a new maven multi module project from scratch with IntelliJ (2016.2) and archetypes pom-root and apache-struts2-starter. I have been working on several struts 2 projects with tiles now so I know about the struts 2 file sets, the auto detection of frameworks etc..
Strange thing now with this new project: IntelliJ doesn't detect anything. I was waiting for this little pop up which says "struts 2 detected, configure" where I can create a fileset with all struts xml files, but nothing happens. Also, If I try to create the fileset for the Struts 2-Facet myself, it doesn't work. If I try, no files are displayed to add.
On the other hand, IntelliJ does show me the Struts 2 facet, but I can't manage to configure it properly in IntelliJ. I don't understand why it works for all my other struts 2 projects (which are older), but not for this new one. Does it have to do with Struts 2.5.2? At the moment I'm not able to jump from one tiles result to its definition, or from a jsp with struts:action to its action definition in struts.xml, or to the package-definition "struts-default" in struts.xml...
I can build and run the project perfectly, but why does IntelliJ not configure it? Invalidating Cache didn't help, deleting and recreating module didn't help. I tried creating a new module from a different archetype (struts-2-blank), but here different problems appear:
- taglib "/struts-tags" is not being recognized
- I can only add my own struts.xml to the fileset, but usually it should also be "struts-default.xml" and "struts-plugin.xml"! Why can't I add those?
- In the Java-Classes from the archetype, e.g. "ExampleSupport.java", all the struts-libraries are shown as "missing", for example it doesn't recognize the Class "ActionSupport" because it can't import the package
com.opensymphony.xwork2.ActionSupport
I also just noticed that no maven-dependencies are being put into the "external libraries". I only got the Java 1.7 lib here! That's not normal
Please sign in to leave a comment.
Thanks for reporting, tracked in https://youtrack.jetbrains.com/issue/IDEA-158985
It seems that the Intellij-Struts2-Plugin has problems with the Struts-Version 2.5... If I change it to an older one, e.g. 2.3.30, it works as it should.... That's annoying, I do want to use the most recent stable version of course!