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

Allow for adding dirs/files to webapp classpath

    XMLWordPrintableJSON

    Details

    • Type: New Feature
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: 3.0
    • Component/s: tomcat7
    • Labels:
      None

      Description

      We have projects developed using Spring. Every project has a set of configuration files (usually just logback configuration XML and a property file). They are placed on the classpath and loaded from there by Spring app context.

      I don't see any way to put these on the classpath with current (we try 2.1 at the moment) version of the plugin. Adding it using the additionalClasspathDirs does not work as that is apparently Tomcat's not application's classpath. It fails with FileNotFound exception. We place these in the tomcat/lib folder for regular deployments.

      Any workaround or preferably solution for the problem would be highly appreciated. There are couple unanswered questions in this direction on stackoverflow as well. (http://stackoverflow.com/questions/18862237/tomcat7-maven-plugin-couldnt-locate-the-property-file-on-classpath, http://stackoverflow.com/questions/17962524/extending-classpath-and-tomcat-plugin)

        Attachments

        1. sample.zip
          19 kB
          Ondrej Burkert

          Activity

            People

            • Assignee:
              olamy Olivier Lamy
              Reporter:
              horalstvo Ondrej Burkert
            • Votes:
              6 Vote for this issue
              Watchers:
              9 Start watching this issue

              Dates

              • Created:
                Updated: