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

Allow running deploy-only and redeploy-only goals without pom file

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.3
    • Component/s: tomcat7
    • Labels:

      Description

      Use case is as follows:

      0. A 2-step CI build exists for the sole purpose of deploying any artifact to a remote tomcat server
      1. Run mvn dependency:get -D... -D... to download a war file from Nexus.
      2. Run mvn tomcat7:deploy -D... -D... to deploy the war file.

      I would prefer to not involve a pom file in this. However, if the plugin doesn't find one, it fail.s

      Also, it appears that all the properties I need, except warFile, can be overriden with -D's. The only way I'm able to make this work is create a dummy pom file with tomcat7 plugin defined in the build section, and a <warFile>${warFile}</warFile> in its configuration section.

        Attachments

        1. MTOMCAT-280.patch
          2 kB
          Dennis Lundberg

          Activity

            People

            • Assignee:
              olamy Olivier Lamy
              Reporter:
              lehtinen Lauri Lehtinen
            • Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: