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

`additionalClasspathDirs` has null value even when initialized with "mvn tomcat7:run"

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 2.2, 3.0
    • Fix Version/s: None
    • Component/s: tomcat7
    • Labels:
      None

      Description

      I am trying to add additional libraries that are inside an "endorsed" directory inside a pre-packaged tomcat7 with `additionalClasspathDirs` but these are not added.

      I run and debugged life (with `mvnDebug`) with v 2.2 and the 3.0-SNAPSHOT found in https://github.com/apache/tomcat-maven-plugin.git and in both cases `additionalClasspathDirs` in `org.apache.tomcat.maven.plugin.tomcat7.run.RunMojo` is null.

      Additionally tried with no success:

      • Removing the alias from the attribute
      • Hardcoding the path with my jars in the same plugin -> the app still failed with ClassNotFound, ┬┐should I add all the jars instead of a dir?

      environment:
      Apache Maven 3.6.1 (d66c9c0b3152b2e69ee9bac180bb8fcc8e6af555; 2019-04-04T21:00:29+02:00)
      Maven home: C:\ProgramData\chocolatey\lib\maven\apache-maven-3.6.1\bin\..
      Java version: 1.7.0_80, vendor: Oracle Corporation, runtime: C:\eld4\jdk-7u80-windows-x64\jre
      Default locale: es_ES, platform encoding: Cp1252
      OS name: "windows 8.1", version: "6.3", arch: "amd64", family: "windows"

        Attachments

          Activity

            People

            • Assignee:
              olamy Olivier Lamy
              Reporter:
              Abel S.Romero Abel Salgado Romero
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: