Maven WAR Overlay and file references

Answered

So we have a project setup with maven war overlays, everything is working great i just can't get file references to work in my ide.

example:

  • Module 1 (war overly)
  • Module 2 (war overlay)
  • Main App (main application)

Now my Module 1 and Module 2 are being build and compiled perfectly into the Main App all that is good, but now when i want to reference a JSP from the main app in Module 1 my references are broken.

In module 1 i do a JSP include like so (this JSP is located in the main app): 

<%@include file="/WEB-INF/jsp/common/taglibs.jsp"%>

Now when everything compiles and builds this works fine, but intellij is telling me that it cannot resolve the file, which seems logical since it doesn't really exists on that path, is there a way tough to make intellij think that that file exists on that path?

Thanks

0
3 comments

Bug report with the reproducible test case is welcome at https://youtrack.jetbrains.com/issues/IDEA.

Probably related: https://youtrack.jetbrains.com/issue/IDEA-64197.

0
Avatar
Permanently deleted user

It does seem to be related to the issue you provided, if not exactly the same problem i'm facing...

By reading that thread there doesn't seem to be any fix for this at the moment?

0

Please sign in to leave a comment.