You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Konrad Windszus (Jira)" <ji...@apache.org> on 2021/08/02 09:11:00 UTC

[jira] [Commented] (SLING-10696) HTL Maven Plugin: Switch default phase to something prior compile

    [ https://issues.apache.org/jira/browse/SLING-10696?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17391460#comment-17391460 ] 

Konrad Windszus commented on SLING-10696:
-----------------------------------------

IMHO the default phase in https://github.com/apache/sling-htl-maven-plugin/blob/4f5feb2ac288f579aee6ea64557291cbc04f3606/src/main/java/org/apache/sling/maven/htl/ValidateMojo.java#L60 should be switched to "generate-sources" (https://maven.apache.org/guides/introduction/introduction-to-the-lifecycle.html#lifecycle-reference).

> HTL Maven Plugin: Switch default phase to something prior compile
> -----------------------------------------------------------------
>
>                 Key: SLING-10696
>                 URL: https://issues.apache.org/jira/browse/SLING-10696
>             Project: Sling
>          Issue Type: Improvement
>          Components: Maven Plugins and Archetypes
>    Affects Versions: HTL Maven Plugin 2.0.2-1.4.0
>            Reporter: Konrad Windszus
>            Priority: Major
>
> The mojo validate is used to optionally precompile HTL scripts into Java sources. As that steps requires a subsequent compilation via maven-compiler-plugin which is bound to phase "compile" as well, the default phase of "validate" should rather be a phase prior "compile"  to make sure that the m-c-p:compile is always executed afterwards.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)