I've created a Maven project. This is the structure:
-parent
-core
-web
but when I try to deploy with the command mvn tomcat7:deploy, I get the following error:
No plugin found for prefix 'tomcat7' in the current project and in the plugin groups [org.apache.maven.plugins, org.codehaus.mojo]
I put this configuration in the pom.xml (of the web project):
<build>
<finalName>MavenWeb</finalName>
<plugins>
<plugin>
<groupId>org.apache.tomcat.maven</groupId>
<artifactId>tomcat7-maven-plugin</artifactId>
<version>2.0</version>
</plugin>
</plugins>
</build>
<version>${tomcat7-maven-plugin.version}</version>. I changed it to<version>2.2</version>and all worked!