Search This Blog

Wednesday, September 9, 2015

Solved : Error resolving version for plugin 'org.apache.tomcat.maven:tomcat7-maven-plugin

Recently I was setting up maven project and trying to deploy application after build on the tomcat server  but during setup POM.xml it was giving following warning message  . 

"Error resolving version for plugin 'org.apache.tomcat.maven:tomcat7-maven-plugin "

After doing some R&D and then i was able to found the solution as below :

Following lines in POM.xml was culprit of the  error "Error resolving version for plugin 'org.apache.tomcat.maven:tomcat7-maven-plugin ":



<plugin>



<groupId>org.apache.tomcat.maven</groupId>


<artifactId>tomcat7-maven-plugin</artifactId>


<configuration>
<path>/</path>
<httpsPort>8080</httpsPort>


</configuration>
 </plugin>

Solution :  Added correct version of plugin as below  to fix this issue :



<plugin>

<groupId>org.apache.tomcat.maven</groupId>

<artifactId>tomcat7-maven-plugin</artifactId>
 >2.0</version>
<configuration>
<path>/</path>
<httpsPort>8080</httpsPort>

</configuration>
</plugin

 

Cheers

Kapil



No comments:

Post a Comment

Thanks for your comment, will revert as soon as we read it.

Popular Posts