mvn install fails for Web client module with openjdk version "1.8.0_222" on Ubuntu:18.04

cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
vibhutisawant
Member II

mvn install fails for Web client module with openjdk version "1.8.0_222" on Ubuntu:18.04

Encountered build failure while building Alfresco from source :

SVN repo: https://svn.alfresco.com/repos/alfresco-open-mirror/alfresco/COMMUNITYTAGS/5.2.g/

Command that caused the failure: "mvn clean install -DskipTests"

The above command fails on Ubuntu:18.04 with Openjdk Version 1.8.0_222.

Environment:

NAME="Ubuntu"
VERSION="18.04.3 LTS (Bionic Beaver)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 18.04.3 LTS"
VERSION_ID="18.04"

# arch
x86_64

# java -version
openjdk version "1.8.0_222"
OpenJDK Runtime Environment (build 1.8.0_222-8u222-b10-1ubuntu1~18.04.1-b10)
OpenJDK 64-Bit Server VM (build 25.222-b10, mixed mode)

# mvn --version
Apache Maven 3.6.0
Maven home: /usr/share/maven
Java version: 1.8.0_222, vendor: Private Build, runtime: /usr/lib/jvm/java-8-openjdk-amd64/jre
Default locale: en_US, platform encoding: ANSI_X3.4-1968
OS name: "linux", version: "4.4.0-154-generic", arch: "amd64", family: "unix"#@

10:32:31 [INFO] Reactor Summary:
10:32:31 [INFO]
10:32:31 [INFO] Alfresco ........................................... SUCCESS [ 16.699 s]
10:32:31 [INFO] Alfresco 3rd-party project ......................... SUCCESS [ 0.632 s]
10:32:31 [INFO] Alfresco greenmail implementation .................. SUCCESS [ 25.457 s]
10:32:31 [INFO] alfresco-dev-tomcat-conf ........................... SUCCESS [ 3.020 s]
10:32:31 [INFO] Alfresco Legacy Lucene ............................. SUCCESS [ 54.172 s]
10:32:31 [INFO] Alfresco MBeans .................................... SUCCESS [ 1.297 s]
10:32:31 [INFO] Alfresco Repository ................................ SUCCESS [42:59 min]
10:32:31 [INFO] Alfresco Remote API ................................ SUCCESS [09:46 min]
10:32:31 [INFO] Alfresco Repository WAR Community .................. FAILURE [04:02 min]
10:32:31 [INFO] Alfresco Solr Client ............................... SKIPPED
10:32:31 [INFO] Alfresco Solr 4 .................................... SKIPPED
10:32:31 [INFO] Alfresco Solr ...................................... SKIPPED
10:32:31 [INFO] Alfresco File Transfer Receiver .................... SKIPPED
10:32:31 [INFO] Alfresco System Build Test ......................... SKIPPED
10:32:31 [INFO] Alfresco Sharepoint Protocol ....................... SKIPPED
10:32:31 [INFO] Alfresco Module Management Tool .................... SKIPPED
10:32:31 [INFO] Alfresco Community Platform Distribution descriptor SKIPPED
10:32:31 [INFO] Alfresco ROOT Web Application ...................... SKIPPED
10:32:31 [INFO] ------------------------------------------------------------------------
10:32:31 [INFO] BUILD FAILURE
10:32:31 [INFO] ------------------------------------------------------------------------
10:32:31 [INFO] Total time: 58:56 min
10:32:31 [INFO] Finished at: 2019-08-26T05:02:32+00:00
10:32:32 [INFO] Final Memory: 173M/974M
10:32:32 [INFO] ------------------------------------------------------------------------
10:32:32 [ERROR] Failed to execute goal org.apache.maven.plugins:maven-war-plugin:2.6:war (default-war) on project alfresco-platform: 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
10:32:32 [ERROR] ---- Debugging information ----
10:32:32 [ERROR] message : Cannot construct org.apache.maven.plugin.war.util.WebappStructure as it does not have a no-args constructor
10:32:32 [ERROR] cause-exception : com.thoughtworks.xstream.converters.reflection.ObjectAccessException
10:32:32 [ERROR] cause-message : Cannot construct org.apache.maven.plugin.war.util.WebappStructure as it does not have a no-args constructor
10:32:32 [ERROR] class : org.apache.maven.plugin.war.util.WebappStructure
10:32:32 [ERROR] required-type : org.apache.maven.plugin.war.util.WebappStructure
10:32:32 [ERROR] converter-type : com.thoughtworks.xstream.converters.reflection.ReflectionConverter
10:32:32 [ERROR] path : /webapp-structure
10:32:32 [ERROR] version : null
10:32:32 [ERROR] -------------------------------
10:32:32 [ERROR] -> [Help 1]
10:32:32 [ERROR]
10:32:32 [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
10:32:32 [ERROR] Re-run Maven using the -X switch to enable full debug logging.
10:32:32 [ERROR]
10:32:32 [ERROR] For more information about the errors and possible solutions, please read the following articles:
10:32:32 [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginExecutionException
10:32:32 [ERROR]
10:32:32 [ERROR] After correcting the problems, you can resume the build with the command
10:32:32 [ERROR] mvn <goals> -rf :alfresco-platform