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
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:
tomcat7-maven-plugin
: https://mvnrepository.com/artifact/org.apache.tomcat.maven/tomcat7-maven-plugin
<dependency>
<groupId>org.apache.tomcat.maven</groupId>
<artifactId>tomcat7-maven-plugin</artifactId>
<version>2.2</version>
</dependency>
tomcat8-maven-plugin
: https://mvnrepository.com/artifact/org.apache.tomcat.maven/tomcat8-maven-plugin
<dependency>
<groupId>org.apache.tomcat.maven</groupId>
<artifactId>tomcat8-maven-plugin</artifactId>
<version>3.0-r1756463</version>
</dependency>
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.