Skip to content

Instantly share code, notes, and snippets.

@TopekoX
Created April 23, 2022 10:39
Show Gist options
  • Save TopekoX/29a65444cbf985fe943c934ff226bd92 to your computer and use it in GitHub Desktop.
Save TopekoX/29a65444cbf985fe943c934ff226bd92 to your computer and use it in GitHub Desktop.

Add in build>plugins>... in pom.xml

<plugin>
  <groupId>org.codehaus.cargo</groupId>
  <artifactId>cargo-maven3-plugin</artifactId>
  <version>1.9.10</version>
  <configuration>
    <container>
      <containerId>tomcat9x</containerId>
      <zipUrlInstaller>
        <url>https://repo.maven.apache.org/maven2/org/apache/tomcat/tomcat/9.0.62/tomcat-9.0.62.zip</url>
      </zipUrlInstaller>
    </container>
  </configuration>
</plugin>

Run

mvn cargo:run
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment