Search code examples
maventomcatmaven-3

Maven plugin for Tomcat 10


I'm trying to update my plugin in my new Maven project as follows

  <!-- Tomcat Maven Plugin -->
            <plugin>
                <groupId>org.apache.tomcat.maven</groupId>
                <artifactId>tomcat10-maven-plugin</artifactId>
                <version>10.1.2</version>
                <configuration>
                    <server>TomcatServer</server>
                    <url>http://localhost:8080/manager/text</url>
                    <path>/foundraising</path>
                </configuration>
            </plugin>

but the error comes out

Could not find artifact org.apache.tomcat.maven:tomcat-maven-plugin:pom:10.1.2 in central (https://repo.maven.apache.org/maven2)

I am using maven 3.8.1 IntellijIDEa 2023.1.2

Thank for the help


Solution

  • No such tomcat10-maven-plugin exists at the official repositories (perhaps your company has its own private repository where such a proprietary dependency might be available.

    Based on the official Tomcat Maven Plugin Github repository, there are two Maven modules corresponding each to a separate artifact:

    There is nothing such as a tomcat9-maven-plugin or tomcat10-maven-plugin, yet.

    On the other hand, there is an issue discussing support for Tomcat 9: #30.