getting Build error using arctype36 | Community
Skip to main content
This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by ShaileshBassi

@ajeet1 This error seems to be due to the syntax error in the call for the clientlibs in your custom category created.

The correct syntax to call the clientlibs is 

 

  <sly data-sly-use.clientlib="/libs/granite/sightly/templates/clientlib.html"
data-sly-call="${clientlib.all @ categories='clientlib1,clientlib2'}"/>

 

This error appear in the build because of the "failOnWarnings" set as true in the plugin "htl-maven-plugin"

<plugin>
    <groupId>org.apache.sling</groupId>
    <artifactId>htl-maven-plugin</artifactId>
    <version>2.0.2-1.4.0</version>
    <configuration>
        <failOnWarnings>true</failOnWarnings>
    </configuration>
</plugin>

Thanks

1 reply

ShaileshBassi
ShaileshBassiAccepted solution
New Participant
June 21, 2022

@ajeet1 This error seems to be due to the syntax error in the call for the clientlibs in your custom category created.

The correct syntax to call the clientlibs is 

 

  <sly data-sly-use.clientlib="/libs/granite/sightly/templates/clientlib.html"
data-sly-call="${clientlib.all @ categories='clientlib1,clientlib2'}"/>

 

This error appear in the build because of the "failOnWarnings" set as true in the plugin "htl-maven-plugin"

<plugin>
    <groupId>org.apache.sling</groupId>
    <artifactId>htl-maven-plugin</artifactId>
    <version>2.0.2-1.4.0</version>
    <configuration>
        <failOnWarnings>true</failOnWarnings>
    </configuration>
</plugin>

Thanks