]
Jean Francois Denise edited comment on WFWIP-346 at 9/3/20 12:15 PM:
---------------------------------------------------------------------
[~jkasik], very good catch! We have an unwanted JBoss module classes sharing between
executions. I have fixed it in this branch, could you give it a
Thank-you. Again excellent finding! In addition having such a nice reproducer really
really helps.
was (Author: jdenise):
[~jkasik], very good catch! We have an unwanted JBoss module classes sharing between
executions. I have fixed it in this branch, could you give it a
Thank-you. Again excellent finding!
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.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.