While building EAP 6.2 why does it fail at module WildFly Patching Core ?

Solution Unverified - Updated -

Issue

  • After downloading the EAP 6.2.0 maven repository "jboss-eap-6.2.0-maven-repository.zip"" from Red Hat Customer portal. The EAP 6.2 building fails as soon as it reaches to the "WildFly Patching Core" module building with the following error:
-------------------------------------------------------
 T E S T S
-------------------------------------------------------

Results :

Tests run: 0, Failures: 0, Errors: 0, Skipped: 0

[INFO] 
[INFO] --- maven-jar-plugin:2.4:jar (default-jar) @ jboss-as-jpa-hibernate4 ---
[INFO] Building jar: /home/userone/jboss-eap-6.2-src/jpa/hibernate4/target/jboss-as-jpa-hibernate4-7.3.0.Final-redhat-SNAPSHOT.jar
[INFO] 
[INFO] --- maven-source-plugin:2.2.1:jar-no-fork (attach-sources) @ jboss-as-jpa-hibernate4 ---
[INFO] 
[INFO] --- maven-install-plugin:2.4:install (default-install) @ jboss-as-jpa-hibernate4 ---
[INFO] Installing /home/userone/jboss-eap-6.2-src/jpa/hibernate4/target/jboss-as-jpa-hibernate4-7.3.0.Final-redhat-SNAPSHOT.jar to /home/jsensharma/.m2/repository/org/jboss/as/jboss-as-jpa-hibernate4/7.3.0.Final-redhat-SNAPSHOT/jboss-as-jpa-hibernate4-7.3.0.Final-redhat-SNAPSHOT.jar
[INFO] Installing /home/userone/jboss-eap-6.2-src/jpa/hibernate4/pom.xml to /home/jsensharma/.m2/repository/org/jboss/as/jboss-as-jpa-hibernate4/7.3.0.Final-redhat-SNAPSHOT/jboss-as-jpa-hibernate4-7.3.0.Final-redhat-SNAPSHOT.pom
[INFO] Installing /home/userone/jboss-eap-6.2-src/jpa/hibernate4/target/jboss-as-jpa-hibernate4-7.3.0.Final-redhat-SNAPSHOT-sources.jar to /home/jsensharma/.m2/repository/org/jboss/as/jboss-as-jpa-hibernate4/7.3.0.Final-redhat-SNAPSHOT/jboss-as-jpa-hibernate4-7.3.0.Final-redhat-SNAPSHOT-sources.jar
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building WildFly: Patching Core 7.3.0.Final-redhat-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] --- maven-enforcer-plugin:1.3.1:enforce (ban-bad-dependencies) @ wildfly-patching ---
[INFO] 
[INFO] --- maven-enforcer-plugin:1.3.1:enforce (enforce-java-version) @ wildfly-patching ---
[INFO] 
[INFO] --- maven-enforcer-plugin:1.3.1:enforce (enforce-maven-version) @ wildfly-patching ---
[INFO] 
[INFO] --- buildnumber-maven-plugin:1.2:create-timestamp (get-build-timestamp) @ wildfly-patching ---
[INFO] 
[INFO] --- buildnumber-maven-plugin:1.2:create (get-scm-revision) @ wildfly-patching ---
[INFO] 
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ wildfly-patching ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 33 resources
[INFO] 
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ wildfly-patching ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 126 source files to /home/userone/jboss-eap-6.2-src/patching/target/classes
[INFO] -------------------------------------------------------------
[WARNING] COMPILATION WARNING : 
[INFO] -------------------------------------------------------------
[WARNING] /home/userone/jboss-eap-6.2-src/patching/src/main/java/org/jboss/as/patching/management/PatchManagementMessages.java:[43,8] Note: Generating translation class.
[WARNING] /home/userone/jboss-eap-6.2-src/patching/src/main/java/org/jboss/as/patching/management/PatchManagementMessages.java:[43,8] Note: Generating translation class.
[WARNING] /home/userone/jboss-eap-6.2-src/patching/src/main/java/org/jboss/as/patching/management/PatchManagementMessages.java:[43,8] Note: Generating translation class.
[WARNING] /home/userone/jboss-eap-6.2-src/patching/src/main/java/org/jboss/as/patching/management/PatchManagementMessages.java:[43,8] Note: Generating translation class.
[WARNING] /home/userone/jboss-eap-6.2-src/patching/src/main/java/org/jboss/as/patching/management/PatchManagementMessages.java:[43,8] Note: Generating translation class.
[WARNING] /home/userone/jboss-eap-6.2-src/patching/src/main/java/org/jboss/as/patching/management/PatchManagementMessages.java:[43,8] Note: Generating translation class.
[WARNING] /home/userone/jboss-eap-6.2-src/patching/src/main/java/org/jboss/as/patching/management/PatchManagementMessages.java:[43,8] Note: Generating translation class.
[WARNING] /home/userone/jboss-eap-6.2-src/patching/src/main/java/org/jboss/as/patching/PatchMessages.java:[110,27] warning: The translated message format does not match the initial message format. Resource Bundle: /home/userone/jboss-eap-6.2-src/patching/target/classes/org/jboss/as/patching/PatchMessages.i18n_fr.properties
[WARNING] /home/userone/jboss-eap-6.2-src/patching/src/main/java/org/jboss/as/patching/PatchMessages.java:[101,27] warning: Invalid format for '% の複製 '%s'' with parameters '{0=[JBoss]}'. java.util.Formatter Error: Conversion = ' ' Resource Bundle: /home/userone/jboss-eap-6.2-src/patching/target/classes/org/jboss/as/patching/PatchMessages.i18n_ja.properties
[WARNING] /home/userone/jboss-eap-6.2-src/patching/src/main/java/org/jboss/as/patching/PatchMessages.java:[48,8] Note: Generating translation class.
[WARNING] /home/userone/jboss-eap-6.2-src/patching/src/main/java/org/jboss/as/patching/PatchMessages.java:[48,8] Note: Generating translation class.
[WARNING] /home/userone/jboss-eap-6.2-src/patching/src/main/java/org/jboss/as/patching/PatchMessages.java:[48,8] Note: Generating translation class.
[WARNING] /home/userone/jboss-eap-6.2-src/patching/src/main/java/org/jboss/as/patching/PatchMessages.java:[48,8] Note: Generating translation class.
[WARNING] /home/userone/jboss-eap-6.2-src/patching/src/main/java/org/jboss/as/patching/PatchMessages.java:[48,8] Note: Generating translation class.
[WARNING] /home/userone/jboss-eap-6.2-src/patching/src/main/java/org/jboss/as/patching/PatchMessages.java:[48,8] Note: Generating translation class.
[WARNING] /home/userone/jboss-eap-6.2-src/patching/src/main/java/org/jboss/as/patching/PatchMessages.java:[48,8] Note: Generating translation class.
[WARNING] /home/userone/jboss-eap-6.2-src/patching/src/main/java/org/jboss/as/patching/PatchLogger.java:[45,8] Note: Generating translation class.
[WARNING] /home/userone/jboss-eap-6.2-src/patching/src/main/java/org/jboss/as/patching/PatchLogger.java:[45,8] Note: Generating translation class.
[WARNING] /home/userone/jboss-eap-6.2-src/patching/src/main/java/org/jboss/as/patching/PatchLogger.java:[45,8] Note: Generating translation class.
[WARNING] /home/userone/jboss-eap-6.2-src/patching/src/main/java/org/jboss/as/patching/PatchLogger.java:[45,8] Note: Generating translation class.
[WARNING] /home/userone/jboss-eap-6.2-src/patching/src/main/java/org/jboss/as/patching/PatchLogger.java:[45,8] Note: Generating translation class.
[WARNING] /home/userone/jboss-eap-6.2-src/patching/src/main/java/org/jboss/as/patching/PatchLogger.java:[45,8] Note: Generating translation class.
[WARNING] /home/userone/jboss-eap-6.2-src/patching/src/main/java/org/jboss/as/patching/PatchLogger.java:[45,8] Note: Generating translation class.
[WARNING] Note: /home/userone/jboss-eap-6.2-src/patching/target/generated-sources/annotations/org/jboss/as/patching/PatchMessages_$bundle.java uses unchecked or unsafe operations.
[WARNING] Note: Recompile with -Xlint:unchecked for details.
[INFO] 25 warnings 
[INFO] -------------------------------------------------------------
[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR : 
[INFO] -------------------------------------------------------------
[ERROR] /home/userone/jboss-eap-6.2-src/patching/src/main/java/org/jboss/as/patching/validation/AbstractArtifact.java:[41,25] type parameters of <A>A cannot be determined; no unique maximal instance exists for type variable A with upper bounds S,org.jboss.as.patching.validation.Artifact.State
[ERROR] /home/userone/jboss-eap-6.2-src/patching/src/main/java/org/jboss/as/patching/validation/AbstractArtifact.java:[48,38] type parameters of <A>A cannot be determined; no unique maximal instance exists for type variable A with upper bounds B,org.jboss.as.patching.validation.Artifact.State
[INFO] 2 errors 
[INFO] -------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO] 
[INFO] JBoss Application Server: Build Configuration ..... SUCCESS [2.296s]
[INFO] JBoss Application Server: Parent Aggregator ....... SUCCESS [0.989s]
[INFO] JBoss Application Server: Protocol Utilities ...... SUCCESS [11.905s]
[INFO] JBoss Application Server: Controller Client ....... SUCCESS [4.474s]
[INFO] WildFly: Core Security Utilities .................. SUCCESS [1.201s]
[INFO] JBoss Application Server: Controller Core ......... SUCCESS [34.376s]
[INFO] JBoss Application Server: Deployment Repository ... SUCCESS [1.281s]
[INFO] JBoss Application Server: Version ................. SUCCESS [0.842s]
[INFO] JBoss Application Server: Process Controller ...... SUCCESS [2.990s]
[INFO] JBoss Application Server: Platform MBean integration  SUCCESS [3.351s]
[INFO] JBoss Application Server: Domain Management ....... SUCCESS [1:17.447s]
[INFO] JBoss Application Server: Domain HTTP Interface ... SUCCESS [0.114s]
[INFO] JBoss Application Server: Domain HTTP Interface ... SUCCESS [2.208s]
[INFO] JBoss Application Server: Network ................. SUCCESS [1.227s]
[INFO] JBoss Application Server: Remoting Subsystem ...... SUCCESS [2.623s]
[INFO] JBoss Application Server: Server .................. SUCCESS [7.460s]
[INFO] JBoss Application Server: Management Client Content  SUCCESS [1.334s]
[INFO] JBoss Application Server: Common Code for Subsystem and Non-subsystem Test Harness  SUCCESS [2.451s]
[INFO] JBoss Application Server: Core Model Test Parent .. SUCCESS [0.131s]
[INFO] JBoss Application Server: Subsystem Test Harness .. SUCCESS [1.834s]
[INFO] JBoss Application Server: Subsystem Test Controller 7.1.2  SUCCESS [1.842s]
[INFO] JBoss Application Server: Subsystem Test Controller 7.2.0  SUCCESS [0.803s]
[INFO] JBoss Application Server: Subsystem Test POM ...... SUCCESS [0.230s]
[INFO] JBoss Application Server: Threading Subsystem ..... SUCCESS [10.641s]
[INFO] JBoss Application Server: Host Controller ......... SUCCESS [7.488s]
[INFO] JBoss Application Server: Core Model Test Parent .. SUCCESS [0.185s]
[INFO] JBoss Application Server: Core Model Test Framework  SUCCESS [1.446s]
[INFO] JBoss Application Server: Domain HTTP Error Context  SUCCESS [0.556s]
[INFO] JBoss Application Server: Naming Subsystem ........ SUCCESS [8.433s]
[INFO] JBoss Application Server: JMX Subsystem ........... SUCCESS [22.554s]
[INFO] JBoss Application Server: EE ...................... SUCCESS [6.866s]
[INFO] JBoss Application Server: JacORB Subsystem ........ SUCCESS [13.579s]
[INFO] JBoss Application Server: Transaction Subsystem ... SUCCESS [8.908s]
[INFO] JBoss Application Server: Clustering Subsystem .... SUCCESS [0.247s]
[INFO] JBoss Application Server: Clustering Server API ... SUCCESS [8.486s]
[INFO] JBoss Application Server: Common code for clustering subsystems  SUCCESS [2.835s]
[INFO] JBoss Application Server: JGroups Subsystem ....... SUCCESS [10.124s]
[INFO] JBoss Application Server: Infinispan Subsystem .... SUCCESS [48.411s]
[INFO] JBoss Application Server: Security Subsystem ...... SUCCESS [23.647s]
[INFO] JBoss Application Server: Connector Subsystem ..... SUCCESS [41.156s]
[INFO] JBoss Application Server: Clustered registry service  SUCCESS [1.114s]
[INFO] JBoss Application Server: EJB Subsystem ........... SUCCESS [17.460s]
[INFO] JBoss Application Server: Distributed Web Session SPI  SUCCESS [2.207s]
[INFO] JBoss Application Server: Clustering Server API implementation  SUCCESS [2.149s]
[INFO] JBoss Application Server: Distributed Web Session Infinispan provider  SUCCESS [3.028s]
[INFO] JBoss Application Server: Web Subsystem ........... SUCCESS [25.533s]
[INFO] JBoss Application Server: Web Services Subsystem .. SUCCESS [0.040s]
[INFO] JBoss Application Server: Web Services Server Integration Subsystem  SUCCESS [16.333s]
[INFO] JBoss Application Server: Application Client Bootstrap  SUCCESS [2.614s]
[INFO] JBoss Application Server: Config Assembly ......... SUCCESS [2.688s]
[INFO] JBoss Application Server: Command line interface .. SUCCESS [5.498s]
[INFO] JBoss Application Server: EJB Client BOM .......... SUCCESS [0.085s]
[INFO] JBoss Application Server: JMS Client BOM .......... SUCCESS [0.206s]
[INFO] JBoss Application Server: EJB and JMS client combined jar  SUCCESS [5.150s]
[INFO] JBoss Application Server: Clustered Stateful Session Bean cache Infinispan provider  SUCCESS [2.132s]
[INFO] JBoss Application Server: Clustered service provider registry services  SUCCESS [1.340s]
[INFO] JBoss Application Server: Clustered singleton services  SUCCESS [2.005s]
[INFO] JBoss Application Server: EJB Container Managed Persistence Subsystem  SUCCESS [15.400s]
[INFO] JBoss Application Server: Config Admin ............ SUCCESS [6.010s]
[INFO] JBoss Application Server: Deployment Scanner ...... SUCCESS [3.377s]
[INFO] JBoss Application Server: EE Deployment ........... SUCCESS [1.716s]
[INFO] JBoss Application Server: Embedded ................ SUCCESS [1.996s]
[INFO] JBoss Application Server: JAXR Client ............. SUCCESS [7.034s]
[INFO] JBoss Application Server: JPA Subsystem ........... SUCCESS [0.041s]
[INFO] JBoss Application Server: JPA SPI ................. SUCCESS [2.061s]
[INFO] JBoss Application Server: JPA UTIL ................ SUCCESS [1.073s]
[INFO] JBoss Application Server: JPA Subsystem ........... SUCCESS [8.133s]
[INFO] JBoss Application Server: Weld Integration ........ SUCCESS [15.483s]
[INFO] JBoss Application Server: JAX-RS Integration ...... SUCCESS [6.538s]
[INFO] JBoss Application Server: JBoss Diagnostic Reporter  SUCCESS [0.086s]
[INFO] JBoss Application Server: JDR ..................... SUCCESS [8.235s]
[INFO] JBoss Application Server: JSF ..................... SUCCESS [0.035s]
[INFO] JBoss Application Server: JSF Subsystem ........... SUCCESS [2.812s]
[INFO] JBoss Application Server: JSF Injection Handlers .. SUCCESS [2.143s]
[INFO] JBoss Application Server: JSR-77 Subsystem ........ SUCCESS [5.895s]
[INFO] JBoss Application Server: Logging Subsystem ....... SUCCESS [28.012s]
[INFO] JBoss Application Server: Mail subsystem .......... SUCCESS [9.718s]
[INFO] JBoss Application Server: Messaging Subsystem ..... SUCCESS [32.375s]
[INFO] JBoss Application Server: ModCluster Subsystem .... SUCCESS [10.237s]
[INFO] JBoss Application Server: OSGi .................... SUCCESS [0.040s]
[INFO] JBoss Application Server: OSGi Subsystem .......... SUCCESS [8.555s]
[INFO] JBoss Application Server: OSGi Integration ........ SUCCESS [0.053s]
[INFO] JBoss Application Server: OSGi Integration ConfigAdmin  SUCCESS [5.121s]
[INFO] JBoss Application Server: OSGi Integration Http ... SUCCESS [3.916s]
[INFO] JBoss Application Server: OSGi Integration JMX .... SUCCESS [1.560s]
[INFO] JBoss Application Server: OSGi Integration JPA .... SUCCESS [3.422s]
[INFO] JBoss Application Server: OSGi Integration JTA .... SUCCESS [1.130s]
[INFO] JBoss Application Server: OSGi Integration Naming . SUCCESS [1.227s]
[INFO] JBoss Application Server: OSGi Integration WebApp . SUCCESS [1.412s]
[INFO] JBoss Application Server: POJO Subsystem .......... SUCCESS [5.219s]
[INFO] JBoss Application Server: Service Archive Subsystem  SUCCESS [5.118s]
[INFO] JBoss Application Server: System JMX Module ....... SUCCESS [1.279s]
[INFO] JBoss Application Server: XTS Subsystem ........... SUCCESS [5.371s]
[INFO] JBoss Application Server: Hibernate 3.6.x JPA integration  SUCCESS [1.885s]
[INFO] JBoss Application Server: Hibernate 4.0.x JPA integration  SUCCESS [2.215s]
[INFO] WildFly: Patching Core ............................ FAILURE [0.860s]
[INFO] JBoss Application Server: Build ................... SKIPPED
[INFO] JBoss Application Server: Build Modular ........... SKIPPED
[INFO] JBoss Application Server: Subsystem Test Framework Tests  SKIPPED
[INFO] JBoss Application Server: Arquillian .............. SKIPPED
[INFO] JBoss Application Server: Arquillian TestEnricher MSC  SKIPPED
[INFO] JBoss Application Server: Arquillian Common ....... SKIPPED
[INFO] JBoss Application Server: Arquillian Embedded Container  SKIPPED
[INFO] JBoss Application Server: Arquillian Protocol JMX . SKIPPED
[INFO] JBoss Application Server: Arquillian Managed Container  SKIPPED
[INFO] JBoss Application Server: Arquillian Remote Container  SKIPPED
[INFO] JBoss Application Server: Exported Java EE Specification APIs  SKIPPED
[INFO] JBoss Application Server: Arquillian TestNG Integration  SKIPPED
[INFO] JBoss Application Server: Arquillian Common Domain  SKIPPED
[INFO] JBoss Application Server: Arquillian Remote Domain Container  SKIPPED
[INFO] JBoss Application Server: Arquillian Managed Domain Container  SKIPPED
[INFO] JBoss Application Server: Core Model Test Controller 7.1.2  SKIPPED
[INFO] JBoss Application Server: Core Model Test Controller 7.2.0  SKIPPED
[INFO] JBoss Application Server: Core Model Test Controller Optional  SKIPPED
[INFO] JBoss Application Server: Core Model Tests ........ SKIPPED
[INFO] JBoss Application Server: Distribution ............ SKIPPED
[INFO] JBoss Application Server Test Suite: Shared ....... SKIPPED
[INFO] JBoss Application Server: OSGi Launcher ........... SKIPPED
[INFO] JBoss Application Server: Remoting Subsystem Test . SKIPPED
[INFO] JBoss Application Server: Validation Tests for Exported Java EE Specification APIs  SKIPPED
[INFO] JBoss Application Server: Web Services Tests Integration Subsystem  SKIPPED
[INFO] JBoss Application Server Test Suite: Aggregator ... SKIPPED
[INFO] JBoss Application Server Test Suite: Integration .. SKIPPED
[INFO] JBoss Application Server Test Suite: Integration - Smoke  SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 11:31.899s
[INFO] Finished at: Thu Feb 13 12:00:27 IST 2014
[INFO] Final Memory: 385M/624M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project wildfly-patching: Compilation failure: Compilation failure:
[ERROR] /home/userone/jboss-eap-6.2-src/patching/src/main/java/org/jboss/as/patching/validation/AbstractArtifact.java:[41,25] type parameters of <A>A cannot be determined; no unique maximal instance exists for type variable A with upper bounds S,org.jboss.as.patching.validation.Artifact.State
[ERROR] /home/userone/jboss-eap-6.2-src/patching/src/main/java/org/jboss/as/patching/validation/AbstractArtifact.java:[48,38] type parameters of <A>A cannot be determined; no unique maximal instance exists for type variable A with upper bounds B,org.jboss.as.patching.validation.Artifact.State
[ERROR] -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
[ERROR] 
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn <goals> -rf :wildfly-patching

  • The following environment variables are used while building EAP 6.2.0
     export JAVA_HOME=/NotBackedUp/MyJdks/jdk1.6.0_21
     export M2_HOME=/NotBackedUp/Support_Tools/apache-maven-3.0.3
     export PATH=${JAVA_HOME}/bin:$M2_HOME/bin:$PATH
  • How to avoid the above error while building EAP 6.2 from the redhat provided maven repository successfully.

Environment

  • Red Hat JBoss Enterprise Application Platform (EAP)
    • 6.2.0

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.