facebook

Adding Maven Breaks Tags

  1. MyEclipse IDE
  2.  > 
  3. Maven for MyEclipse (Maven4MyEclipse)
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #350587 Reply

    mbricker
    Member

    Adding Maven support to an existing web project seems to break the IDE’s ability to resolve JSP tags. To reproduce:

    1) Create a new dynamic web project.

    2) Add a new JSP tag file with a first line like this:
    <%@tag description=”Base page” pageEncoding=”UTF-8″%>

    3) Run the website, make sure everything is working okay.

    4) Add maven support to the project.

    The previously created JSP tag file will now have this error:
    The superclass “javax.servlet.jsp.tagext.SimpleTagSupport” was not found on the Java Build Path

    It seems to have something to do with MyEclipse taking away runtime configuration options from the project after adding Maven support. After adding Maven support, if you go into Project -> Properties -> MyEcliipse -> Project Facets and choose the Runtimes tab, you cannot select a runtime.

    -Mark

    #350608 Reply

    support-swapna
    Moderator

    Mark,

    If you add Maven support to the web project, then you should add the library dependencies through pom.xml. All libraries must be provided through Maven dependencies.

    Let us know if you have any questions.

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: Adding Maven Breaks Tags

You must be logged in to post in the forum log in