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

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.0-beta-1
    • 2.0
    • tomcat6
    • None
    • 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

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

              Dates

                Created:
                Updated:
                Resolved: