Uploaded image for project: 'WildFly WIP'
  1. WildFly WIP
  2. WFWIP-346

Bootable JAR - Second bootable JAR fails to package if first uses certain layers

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Critical Critical
    • None
    • None

      See the reproducer: https://github.com/honza-kasik/layer-conflict - there are two Maven modules, each configured to run WildFly Maven JAR plugin.

      If I run mvn clean package -Dversion.org.wildfly.jar.plugin=2.0.0.Beta3, bootable JAR for app-one builds but for app-two the build ends up with an error and app-two fails to package:

      [ERROR] Failed to execute goal org.wildfly.plugins:wildfly-jar-maven-plugin:2.0.0.Beta3:package (default) on project app-two: Provisioning failed: Failed to generate standalone.xml on {
      [ERROR]     "operation" => "composite",
      [ERROR]     "address" => [],
      [ERROR]     "rollback-on-runtime-failure" => true,
      [ERROR]     "steps" => [
      [ERROR]         {
      [ERROR]             "operation" => "add",
      [ERROR]             "address" => [("interface" => "public")],
      [ERROR]             "inet-address" => "${jboss.bind.address:127.0.0.1}"
      [ERROR]         },
      [ERROR]         {
      [ERROR]             "operation" => "add",
      [ERROR]             "address" => [("extension" => "org.wildfly.extension.bean-validation")]
      [ERROR]         },
      [ERROR]         {
      [ERROR]             "operation" => "add",
      [ERROR]             "address" => [("extension" => "org.jboss.as.weld")]
      [ERROR]         },
      [ERROR]         {
      [ERROR]             "operation" => "add",
      [ERROR]             "address" => [("extension" => "org.jboss.as.naming")]
      [ERROR]         },
      [ERROR]         {
      [ERROR]             "operation" => "add",
      [ERROR]             "address" => [("extension" => "org.jboss.as.ee")]
      [ERROR]         },
      [ERROR]         {
      [ERROR]             "operation" => "add",
      [ERROR]             "address" => [("extension" => "org.wildfly.extension.io")]
      [ERROR]         },
      [ERROR]         {
      [ERROR]             "operation" => "add",
      [ERROR]             "address" => [("extension" => "org.wildfly.extension.undertow")]
      [ERROR]         },
      [ERROR]         {
      [ERROR]             "operation" => "add",
      [ERROR]             "address" => [("extension" => "org.jboss.as.jaxrs")]
      [ERROR]         }
      [ERROR]     ]
      [ERROR] }: {"WFLYCTL0062: Composite operation failed and was rolled back. Steps that failed:" => {"Operation step-8" => "WFLYCTL0310: Extension module org.jboss.as.jaxrs not found"}}
      

      Packaging when running mvn clean install -Dversion.org.wildfly.jar.plugin=2.0.0.Beta3 -pl app-two ends with success. Same for app-one only.

      If I replace layers in app-one with layer cloud-server both modules build successfully.

              jdenise@redhat.com Jean Francois Denise
              jkasik@redhat.com Jan Kašík
              Jan Kašík Jan Kašík
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: