April 3, 2020
Estimated Post Reading Time ~

Issue with the Blueprints in CQ5/AEM

The Problem
When using CQ Blueprints, we were getting a strange error coming up when a project was checked out by a new developer, but it was running on everyone else's machines.

Failed to execute goal com.squeakysand.jsp:jsptld-maven-plugin:0.4.0:generate (default) on project taglib: Execution default of goal com.squeakysand.jsp:jsptld-maven-plugin:0.4.0:generate failed: cannot generate report -> [Help 1]

The Solution
The problem was that the taglib project could not be generated, because at that stage of the project, we had no taglibs to include yet, and we deleted the GoodbyeWorld tag and Activator class. Hence, there was nothing to build in the project, and the target directory was left empty, which caused all dependant projects to not be able to compile.

Hence, if the project was built once with at least the Activator class left in, the target build would be created, and there would be no error, only on new machines.

So, if you leave at least the Activator class, or add a dummy tag/activator for the tag, your project should build successfully.


By aem4beginner

No comments:

Post a Comment

If you have any doubts or questions, please let us know.