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

tomcat7:run: root context path not working in v2.2 but works for v2.0

    XMLWordPrintableJSON

    Details

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

      Description

      When using version 2.0 with the below configuration I am able to serve the application from the root context path , however when using version 2.2 the application is still served in /${project.build.finalName}. Note that I need to use warSourceDirectory as otherwise *.properties, log4j.xml and other resources won't be found. While 2.0 is working just fine I thought it made sense to report this either as a bug for 2.2 or to clarify my miss understanding if any.

      <plugin>
                      <groupId>org.apache.tomcat.maven</groupId>
                      <artifactId>tomcat7-maven-plugin</artifactId>
                      <!-- <version>2.2</version> -->
                      <version>2.0</version>
                      <configuration>
                        <path>/</path>
                        <warSourceDirectory>
                          ${basedir}/target/${project.build.finalName}/
                        </warSourceDirectory>
                      </configuration>
                  </plugin>
      

        Attachments

          Activity

            People

            • Assignee:
              olamy Olivier Lamy
              Reporter:
              nestor.urquiza@gmail.com Nestor Urquiza
            • Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: