<?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 Re: Building Share 6.2.1 fails in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/building-share-6-2-1-fails/m-p/88667#M26621</link>
    <description>&lt;P&gt;Have you found a solution?&lt;/P&gt;</description>
    <pubDate>Fri, 19 Jun 2020 11:32:34 GMT</pubDate>
    <dc:creator>AlfrescoZZZ</dc:creator>
    <dc:date>2020-06-19T11:32:34Z</dc:date>
    <item>
      <title>Building Share 6.2.1 fails</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/building-share-6-2-1-fails/m-p/88666#M26620</link>
      <description>&lt;P&gt;I try to build the latest version 6.2.1 of Share (released on 2020-05-11) from this tag: &lt;A href="https://github.com/Alfresco/share/tree/alfresco-share-parent-6.2.1" target="_blank" rel="nofollow noopener noreferrer"&gt;https://github.com/Alfresco/share/tree/alfresco-share-parent-6.2.1&lt;/A&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Java version: 11.0.6, vendor: AdoptOpenJDK&lt;/LI&gt;&lt;LI&gt;Maven version: Apache Maven 3.6.1&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;`mvn package` fails with this error:&lt;/P&gt;&lt;PRE&gt;[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary for Alfresco Share Parent 6.2.1:
[INFO]
[INFO] Alfresco Share Parent .............................. SUCCESS [  2.888 s]
[INFO] Alfresco Share Services AMP ........................ SUCCESS [ 16.464 s]
[INFO] Alfresco Web Framework common libraries ............ SUCCESS [ 14.736 s]
[INFO] Alfresco Share Encryption .......................... SUCCESS [  1.114 s]
[INFO] Alfresco Share WAR ................................. FAILURE [ 23.364 s]
[INFO] Alfresco Web Editor Plugin ......................... SKIPPED
[INFO] Alfresco Web Editor ................................ SKIPPED
[INFO] Alfresco Web Editor Samples ........................ SKIPPED
[INFO] Alfresco WCMQS Parent .............................. SKIPPED
[INFO] Alfresco WCMQS Client API .......................... SKIPPED
[INFO] Alfresco WCMQS AMP ................................. SKIPPED
[INFO] Alfresco WCMQS Share AMP ........................... SKIPPED
[INFO] Alfresco WCMQS Web ................................. SKIPPED
[INFO] Packaging Alfresco Share ........................... SKIPPED
[INFO] Distribution of Alfresco Share ..................... SKIPPED
[INFO] Alfresco WebEditor Distribution Zip ................ SKIPPED
[INFO] Alfresco WCMQS Distribution Zip .................... SKIPPED
[INFO] Alfresco Share Docker image builder ................ SKIPPED
[INFO] Alfresco Share Docker AWS image builder ............ SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  01:00 min
[INFO] Finished at: 2020-06-15T13:32:22+02:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-war-plugin:2.6:war (default-war) on project share: Execution default-war of goal org.apache.maven.plugins:maven-war-plugin:2.6:war failed: Cannot construct org.apache.maven.plugin.war.util.WebappStructure as it does not have a no-args constructor : Cannot construct org.apache.maven.plugin.war.util.WebappStructure as it does not have a no-args constructor
[ERROR] ---- Debugging information ----
[ERROR] message             : Cannot construct org.apache.maven.plugin.war.util.WebappStructure as it does not have a no-args constructor
[ERROR] cause-exception     : com.thoughtworks.xstream.converters.reflection.ObjectAccessException
[ERROR] cause-message       : Cannot construct org.apache.maven.plugin.war.util.WebappStructure as it does not have a no-args constructor
[ERROR] class               : org.apache.maven.plugin.war.util.WebappStructure
[ERROR] required-type       : org.apache.maven.plugin.war.util.WebappStructure
[ERROR] converter-type      : com.thoughtworks.xstream.converters.reflection.ReflectionConverter
[ERROR] path                : /webapp-structure
[ERROR] version             : null
[ERROR] -------------------------------&lt;/PRE&gt;&lt;P&gt;What is the correct way to build Share?&lt;/P&gt;</description>
      <pubDate>Mon, 15 Jun 2020 11:37:00 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/building-share-6-2-1-fails/m-p/88666#M26620</guid>
      <dc:creator>lutz_horn</dc:creator>
      <dc:date>2020-06-15T11:37:00Z</dc:date>
    </item>
    <item>
      <title>Re: Building Share 6.2.1 fails</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/building-share-6-2-1-fails/m-p/88667#M26621</link>
      <description>&lt;P&gt;Have you found a solution?&lt;/P&gt;</description>
      <pubDate>Fri, 19 Jun 2020 11:32:34 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/building-share-6-2-1-fails/m-p/88667#M26621</guid>
      <dc:creator>AlfrescoZZZ</dc:creator>
      <dc:date>2020-06-19T11:32:34Z</dc:date>
    </item>
    <item>
      <title>Re: Building Share 6.2.1 fails</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/building-share-6-2-1-fails/m-p/88668#M26622</link>
      <description>&lt;P&gt;Not able to replicate your issue. I did not see any issues when i tried building the same tag. I doubt this error has somethig to do with the share tag&amp;nbsp;&lt;A href="https://github.com/Alfresco/share/blob/alfresco-share-parent-6.2.1" target="_blank" rel="noopener nofollow noreferrer"&gt;https://github.com/Alfresco/share/blob/alfresco-share-parent-6.2.1&lt;/A&gt;&amp;nbsp;itself.&lt;/P&gt;
&lt;P&gt;I have littile bit difference in the java version and maven version though.&lt;/P&gt;
&lt;P&gt;&lt;U&gt;Java version:&lt;/U&gt;&lt;/P&gt;
&lt;P&gt;java version "11.0.4" 2019-07-16 LTS&lt;BR /&gt;Java(TM) SE Runtime Environment 18.9 (build 11.0.4+10-LTS)&lt;BR /&gt;Java HotSpot(TM) 64-Bit Server VM 18.9 (build 11.0.4+10-LTS, mixed mode)&lt;/P&gt;
&lt;P&gt;&lt;U&gt;Maven version:&lt;/U&gt;&lt;/P&gt;
&lt;P&gt;Apache Maven 3.6.3 (cecedd343002696d0abb50b32b541b8a6ba2883f)&lt;/P&gt;
&lt;P&gt;&lt;U&gt;Here is the result for (mvn clean package):&lt;/U&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;BR /&gt;[INFO] Skipping packaging of the test-jar
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary for Alfresco Share Parent 6.2.1:
[INFO]
[INFO] Alfresco Share Parent .............................. SUCCESS [  4.198 s]
[INFO] Alfresco Share Services AMP ........................ SUCCESS [02:10 min]
[INFO] Alfresco Web Framework common libraries ............ SUCCESS [ 38.314 s]
[INFO] Alfresco Share Encryption .......................... SUCCESS [  1.978 s]
[INFO] Alfresco Share WAR ................................. SUCCESS [03:10 min]
[INFO] Alfresco Web Editor Plugin ......................... SUCCESS [  4.767 s]
[INFO] Alfresco Web Editor ................................ SUCCESS [ 39.968 s]
[INFO] Alfresco Web Editor Samples ........................ SUCCESS [  3.804 s]
[INFO] Alfresco WCMQS Parent .............................. SUCCESS [  0.258 s]
[INFO] Alfresco WCMQS Client API .......................... SUCCESS [ 17.216 s]
[INFO] Alfresco WCMQS AMP ................................. SUCCESS [ 39.754 s]
[INFO] Alfresco WCMQS Share AMP ........................... SUCCESS [  1.915 s]
[INFO] Alfresco WCMQS Web ................................. SUCCESS [ 36.601 s]
[INFO] Packaging Alfresco Share ........................... SUCCESS [  0.262 s]
[INFO] Distribution of Alfresco Share ..................... SUCCESS [  7.481 s]
[INFO] Alfresco WebEditor Distribution Zip ................ SUCCESS [  2.273 s]
[INFO] Alfresco WCMQS Distribution Zip .................... SUCCESS [  2.893 s]
[INFO] Alfresco Share Docker image builder ................ SUCCESS [01:00 min]
[INFO] Alfresco Share Docker AWS image builder ............ SUCCESS [  0.287 s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  09:46 min
[INFO] Finished at: 2020-06-24T13:09:23-04:00
[INFO] ------------------------------------------------------------------------&lt;/PRE&gt;
&lt;P&gt;&lt;U&gt;Couple of things you can try:&lt;/U&gt;&lt;/P&gt;
&lt;P&gt;1- Instead of just mvn package, try mvn clean package or mvn clean install&lt;/P&gt;
&lt;P&gt;2- This error: "default-war of goal org.apache.maven.plugins:maven-war-plugin:2.6:war failed: Cannot construct org.apache.maven.plugin.war.util.WebappStructure as it does not have a no-args constructor : Cannot construct org.apache.maven.plugin.war.util.WebappStructure as it does not have a no-args constructor"&amp;nbsp; seems to be due to incompitable plugin version on the Java Version you have.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Try using updating the&amp;nbsp;maven-war-plugin version to latest version.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://github.com/Alfresco/share/blob/alfresco-share-parent-6.2.1/pom.xml#L477" target="_blank" rel="noopener nofollow noreferrer"&gt;https://github.com/Alfresco/share/blob/alfresco-share-parent-6.2.1/pom.xml#L477&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jun 2020 17:18:27 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/building-share-6-2-1-fails/m-p/88668#M26622</guid>
      <dc:creator>abhinavmishra14</dc:creator>
      <dc:date>2020-06-24T17:18:27Z</dc:date>
    </item>
    <item>
      <title>Re: Building Share 6.2.1 fails</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/building-share-6-2-1-fails/m-p/88669#M26623</link>
      <description>&lt;P&gt;I had the same problem !&lt;/P&gt;&lt;P&gt;&lt;U&gt;Before :&lt;BR /&gt;&lt;/U&gt;&lt;FONT&gt;mvn -version&lt;BR /&gt;Apache Maven 3.6.3&lt;BR /&gt;Maven home: /usr/share/maven&lt;BR /&gt;Java version: 11.0.8, vendor: Ubuntu, runtime: /usr/lib/jvm/java-11-openjdk-amd64&lt;BR /&gt;Default locale: fr_FR, platform encoding: UTF-8&lt;BR /&gt;OS name: "linux", version: "5.4.0-42-generic", arch: "amd64", family: "unix"&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;U&gt;After :&lt;BR /&gt;&lt;/U&gt;&lt;FONT&gt;mvn -version&lt;BR /&gt;Apache Maven 3.6.3 (cecedd343002696d0abb50b32b541b8a6ba2883f)&lt;BR /&gt;Maven home: /opt/apache-maven-3.6.3&lt;BR /&gt;Java version: 11.0.4, vendor: Oracle Corporation, runtime: /usr/lib/jvm/openjdk-11.0.4+11&lt;BR /&gt;Default locale: fr_FR, platform encoding: UTF-8&lt;BR /&gt;OS name: "linux", version: "5.4.0-42-generic", arch: "amd64", family: "unix"&lt;BR /&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT&gt;With :&lt;BR /&gt;&amp;lt;artifactId&amp;gt;maven-war-plugin&amp;lt;/artifactId&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;version&amp;gt;2.6&amp;lt;/version&amp;gt;&lt;BR /&gt;&lt;/FONT&gt;&lt;U&gt;&lt;BR /&gt;&lt;/U&gt;&lt;/P&gt;&lt;P&gt;It's OK !&lt;/P&gt;&lt;P&gt;&amp;nbsp;Thank you !&lt;/P&gt;</description>
      <pubDate>Thu, 06 Aug 2020 11:51:32 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/building-share-6-2-1-fails/m-p/88669#M26623</guid>
      <dc:creator>David76</dc:creator>
      <dc:date>2020-08-06T11:51:32Z</dc:date>
    </item>
    <item>
      <title>Re: Building Share 6.2.1 fails</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/building-share-6-2-1-fails/m-p/88670#M26624</link>
      <description>&lt;P&gt;Glad it worked&lt;/P&gt;</description>
      <pubDate>Thu, 06 Aug 2020 14:15:04 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/building-share-6-2-1-fails/m-p/88670#M26624</guid>
      <dc:creator>abhinavmishra14</dc:creator>
      <dc:date>2020-08-06T14:15:04Z</dc:date>
    </item>
    <item>
      <title>Re: Building Share 6.2.1 fails</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/building-share-6-2-1-fails/m-p/88671#M26625</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am getting the same error. I did the similar changes. my curreny mvn version&lt;/P&gt;&lt;P&gt;Apache Maven 3.6.3&lt;BR /&gt;Maven home: /usr/share/maven&lt;BR /&gt;Java version: 11.0.15.1, vendor: Oracle Corporation, runtime: /usr/lib/jvm/jdk-11&lt;BR /&gt;Default locale: en_IN, platform encoding: UTF-8&lt;BR /&gt;OS name: "linux", version: "5.4.0-60-generic", arch: "amd64", family: "unix"&lt;/P&gt;&lt;P&gt;the version of maven-war-plugin is 2.6 still getting same error. Could you please help&lt;/P&gt;</description>
      <pubDate>Wed, 25 May 2022 14:03:31 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/building-share-6-2-1-fails/m-p/88671#M26625</guid>
      <dc:creator>SalmanEdhi</dc:creator>
      <dc:date>2022-05-25T14:03:31Z</dc:date>
    </item>
  </channel>
</rss>

