Search This Blog

Showing posts with label Tomcat. Show all posts
Showing posts with label Tomcat. Show all posts

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



Wednesday, May 18, 2011

Tips : Debug applicaitons with Tomcat and Eclipse

We can use simple steps to debug the applications with tomcat.

Step 1 . 

Run the startup with following args in command prompt under tomcat bin dir

catalina.bat jpda start
 
or 
 
startup.bat jpda start
 
Note : Your tomcat with start with the port 8000 for debug . 
 
Step 2. 
Open Eclipse  - > Goto Debug configuration 
setup \
host : localhost 
port : 8000 and apply. 
 
Note : Your applciation will be ready to debug with tompact . 
 
 
Cheers
Kapil 

Popular Posts