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

Deploy war type plugin dependencies with tomcat:run

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 1.1
    • None
    • None
    • all

    Description

      It would be nice to be able to run a war file in the embedded container alongside the current war project being developed. As addContextWarDependencies only looks at project dependencies and not those configured as plugin dependencies it may be worthwhile to add another option for deploying these types: addContextWarPluginDependencies.

      An example configuration may resemble the following:

      <plugin>
        <groupId>org.codehaus.mojo</groupId>
        <artifactId>tomcat-maven-plugin</artifactId>
        <configuration>
          <addContextWarPluginDependencies>true</addContextWarPluginDependencies>
          <path>/</path>
        </configuration>
        <dependencies>
          <dependency>
            <groupId>my.groupId</groupId>
            <artifactId>mywar-artifact</artifactId>
            <version>1.0</version>
            <type>war</type>
          </dependency>
        </dependencies>
      </plugin>
      

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              rynam0 Ryan Connolly
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated: