Uploaded image for project: 'Apache Tomcat Maven Plugin'
  1. Apache Tomcat Maven Plugin
  2. MTOMCAT-137

Adding a static context to tomcat for static files like images, js, html etc.

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.0-beta-1
    • Fix Version/s: 2.0
    • Component/s: tomcat6
    • Labels:
      None
    • Environment:
      Eclipse on windows platform with internal tomcat server.

      Description

      There is no configuration available in the current tomcat maven plugin to add a static context. If you want to include static context you would need an external Apache server hosting your static files. Instead of setting the Apache I wanted to include the static context in my pom.xml. So, I modified the tomcat maven plugin to include the configurations for static context.
      I have created a patch and will attach it here.

        Attachments

        1. patch.txt
          2 kB
          Gaurav Vishnoi

          Issue Links

            Activity

              People

              • Assignee:
                olamy Olivier Lamy
                Reporter:
                manuvishnoi Gaurav Vishnoi
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: