I have a liferay portlet. I've added some external libraries using maven. In ide no errors, it can recognize, but when deploying with ant , it says no such package and class
import pack.SomeClass;
The import pack cannot be resolved
code:
import pack.SomeClass;
public class MainPortlet extends MVCPortlet {
public void doView(RenderRequest renderRequest,RenderResponse renderResponse) {
SomeClass a = new SomeClass();
}
}
util-taglib.jarthen useliferay-plugin-package.propertiesto define the dependency and if it is not a liferay jar or custom jar then I suppose you would need to put it in theWEB-INF/lib, check if the deployed WAR file has the dependency jars inWEB-INF/libif not then ANT does not recognize the maven dependency so either make ANT know or use Maven to build the WAR file. - Prakash K