<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Alfresco behavior tutorial - parse error in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/alfresco-behavior-tutorial-parse-error/m-p/138279#M37085</link>
    <description>&lt;P&gt;I'm following Alfresco Developer Series tutorial from ECM architect. In the behavior tutorial section a custom behavior is first implemented in Java and then in JavaScript.&lt;/P&gt;&lt;P&gt;&lt;A href="https://ecmarchitect.com/alfresco-developer-series-tutorials/behaviors/tutorial/tutorial.html" target="_blank" rel="nofollow noopener noreferrer"&gt;https://ecmarchitect.com/alfresco-developer-series-tutorials/behaviors/tutorial/tutorial.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;The Java part goes fine. But when I re-implement the behavior in JavaScript by adding rating.js, onCreateRating.js and onDeleteRating.js files (to $TUTORIAL_HOME/behavior-tutorial-platform/src/main/resources/alfresco/module/behavior-tutorial-platform/scripts), configure a Spring bean and then try to mvn install -DskipTests, I get this error:&lt;/P&gt;&lt;PRE&gt;SEVERE: alfresco/module/behavior-tutorial-platform/scripts/onCreateRating.js:1:1: ERROR - [JSC_PARSE_ERROR] Parse error. primary expression expected
  1| &amp;lt;import resource="classpath:alfresco/module/behavior-tutorial-platform/scripts/rating.js"&amp;gt;

ERROR] Failed to execute goal com.github.blutorange:closure-compiler-maven-plugin:2.28.0:minify (compress-resources) on project behavior-tutorial-platform: Closure compilation failure: FileException&lt;/PRE&gt;&lt;P&gt;When I remove the import tag, the files are successfuly minified but of course that's not a solution.&lt;/P&gt;&lt;P&gt;Any idea what am I doing wrong? Keep in mind I'm new to java/js/maven so it could be something very obvious. Thanks in advance.&lt;/P&gt;</description>
    <pubDate>Fri, 26 Jan 2024 10:52:30 GMT</pubDate>
    <dc:creator>Rista</dc:creator>
    <dc:date>2024-01-26T10:52:30Z</dc:date>
    <item>
      <title>Alfresco behavior tutorial - parse error</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/alfresco-behavior-tutorial-parse-error/m-p/138279#M37085</link>
      <description>&lt;P&gt;I'm following Alfresco Developer Series tutorial from ECM architect. In the behavior tutorial section a custom behavior is first implemented in Java and then in JavaScript.&lt;/P&gt;&lt;P&gt;&lt;A href="https://ecmarchitect.com/alfresco-developer-series-tutorials/behaviors/tutorial/tutorial.html" target="_blank" rel="nofollow noopener noreferrer"&gt;https://ecmarchitect.com/alfresco-developer-series-tutorials/behaviors/tutorial/tutorial.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;The Java part goes fine. But when I re-implement the behavior in JavaScript by adding rating.js, onCreateRating.js and onDeleteRating.js files (to $TUTORIAL_HOME/behavior-tutorial-platform/src/main/resources/alfresco/module/behavior-tutorial-platform/scripts), configure a Spring bean and then try to mvn install -DskipTests, I get this error:&lt;/P&gt;&lt;PRE&gt;SEVERE: alfresco/module/behavior-tutorial-platform/scripts/onCreateRating.js:1:1: ERROR - [JSC_PARSE_ERROR] Parse error. primary expression expected
  1| &amp;lt;import resource="classpath:alfresco/module/behavior-tutorial-platform/scripts/rating.js"&amp;gt;

ERROR] Failed to execute goal com.github.blutorange:closure-compiler-maven-plugin:2.28.0:minify (compress-resources) on project behavior-tutorial-platform: Closure compilation failure: FileException&lt;/PRE&gt;&lt;P&gt;When I remove the import tag, the files are successfuly minified but of course that's not a solution.&lt;/P&gt;&lt;P&gt;Any idea what am I doing wrong? Keep in mind I'm new to java/js/maven so it could be something very obvious. Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Fri, 26 Jan 2024 10:52:30 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/alfresco-behavior-tutorial-parse-error/m-p/138279#M37085</guid>
      <dc:creator>Rista</dc:creator>
      <dc:date>2024-01-26T10:52:30Z</dc:date>
    </item>
  </channel>
</rss>

