I try to build the latest version 6.2.1 of Share (released on 2020-05-11) from this tag: https://github.com/Alfresco/share/tree/alfresco-share-parent-6.2.1
- Java version: 11.0.6, vendor: AdoptOpenJDK
- Maven version: Apache Maven 3.6.1
`mvn package` fails with this error:
[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] -------------------------------
What is the correct way to build Share?