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

Deploy war type plugin dependencies with tomcat:run

Attach filesAttach ScreenshotAdd voteVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    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

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            Unassigned Unassigned
            rynam0 Ryan Connolly

            Dates

              Created:
              Updated:

              Slack

                Issue deployment