[
https://issues.redhat.com/browse/WFWIP-346?page=com.atlassian.jira.plugin...
]
Jan Kasik updated WFWIP-346:
----------------------------
Description:
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:
{noformat}
[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"}}
{noformat}
Packaging when running {{mvn clean install -Dversion.org.wildfly.jar.plugin=2.0.0.Beta2
-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.
was:
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:
{noformat}
[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"}}
{noformat}
Packaging when running {{mvn clean install -Dversion.org.wildfly.jar.plugin=2.0.0.Beta2
-pl app-two}} ends with success. Same for {{app-one}} only.
If I replace layers in app-one with layer {{cloud-server}} both modules builds
successfully.
Bootable JAR - Second bootable JAR fails to package if first uses
certain layers
--------------------------------------------------------------------------------
Key: WFWIP-346
URL:
https://issues.redhat.com/browse/WFWIP-346
Project: WildFly WIP
Issue Type: Bug
Reporter: Jan Kasik
Assignee: Jean Francois Denise
Priority: Critical
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:
{noformat}
[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"}}
{noformat}
Packaging when running {{mvn clean install -Dversion.org.wildfly.jar.plugin=2.0.0.Beta2
-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.
--
This message was sent by Atlassian Jira
(v7.13.8#713008)