Pablo,

Do you get an answer or develop a workaround for this problem? The jspc-maven-plugin pretty much seems useless to me if you can't use project dependencies specified in the POM.

Thanks,
Richard Allen

Pablo wrote:

Hello there

I've been trying to use jspc maven plugin and encountered a few problems.

Generally the plugin works fine. However it has problems with finding taglib's tld files or taglib's classes.
If the jar is placed in WEB-INF/lib directory then everything works fine.
However if the taglib's jar is not placed there, the plugin claims that there is no taglib's descriptor or class cannot be loaded even though the taglib's jar is in the project's dependency.

In other words, jspc doesn't care what classpath is currently available for this Mojo. It simply ignores it. I know it's not a problem with JspcMojo but rather with JspC, but it would be great if it was possible to somehow use jars from dependencies to compile *.jsp.

Is there any workaround for this?
You can test it by removing struts.jar from the WEB-INF/lib directory by simply relying on the project's dependencies.

Cheers
Pablo



Reply via email to