Translate

Thursday 14 August 2014

ant taskdef class org.apache.catalina.ant.installtask cannot be found

While using Apache Ant with Apache Tomcat  with if this error appears

ant taskdef class org.apache.catalina.ant.installtask cannot be found

Solution:
If you are using tomcat version 7 then add this to your build.xml file.
<taskdef name="install" classname="org.apache.catalina.ant.DeployTask">
 
instead of 
 
<taskdef name="install" classname="org.apache.catalina.ant.InstallTask">
 


Thursday 7 August 2014

Maven org.apache.maven.plugins:maven-resources-plugin:2.6 or one of its dependencies could not be resolved

Solution :

1)Set your proxy settings if any. Set proxy property in Setting.xml in maven Folder. link
2)run mvn --version to check if all paths are correct
3)create new mvn project using command line and build it. if build is successful then is may be cache problem. Delete all folders form .m2 local repository folder and recreate project and let it download all dependencies again. To create new project visit link. To compile run mvn compile in project folder.