Uploaded image for project: 'WildFly'
  1. WildFly
  2. WFLY-10157

version of the modules defined in wildfly core cannot be overrided in wildfly full build

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Can't Do
    • Icon: Major Major
    • None
    • None
    • Build System
    • None
    • Hide

      1. checkout latest wildfly-core:master, run:
      > mvn clean install

      2. checkout latest wildfly:master, run:
      > mvn clean install -DskipTests -Dversion.org.wildfly.core=5.0.0.Alpha3-SNAPSHOT -Dversion.io.undertow=2.0.2.Final

      3. see the undertow modules in the full feature distribution:

      [lgao@lgao wildfly]$ tree dist/target/wildfly-13.0.0.Alpha1-SNAPSHOT/modules/system/layers/base/io/undertow/
      dist/target/wildfly-13.0.0.Alpha1-SNAPSHOT/modules/system/layers/base/io/undertow/
      ├── core
      │   └── main
      │       ├── module.xml
      │       └── undertow-core-2.0.3.Final.jar
      ├── js
      │   └── main
      │       ├── module.xml
      │       └── undertow-js-1.0.2.Final.jar
      ├── jsp
      │   └── main
      │       ├── jastow-2.0.3.Final.jar
      │       └── module.xml
      ├── servlet
      │   └── main
      │       ├── module.xml
      │       └── undertow-servlet-2.0.2.Final.jar
      └── websocket
          └── main
              ├── module.xml
              └── undertow-websockets-jsr-2.0.2.Final.jar
      
      
      • Expected: io.undertow:undertow-core:2.0.2.Final should be used, not 2.0.3.Final which is defined in wildfly-core:5.0.0.Alpha3-SNAPSHOT
      • Actual: io.undertow:undertow-core:2.0.3.Final is used.

      > NOTE: The difference between these modules is that io.undertow:undertow-core is defined in wildfly core feature pack.

      Show
      1. checkout latest wildfly-core:master, run: > mvn clean install 2. checkout latest wildfly:master, run: > mvn clean install -DskipTests -Dversion.org.wildfly.core=5.0.0.Alpha3-SNAPSHOT -Dversion.io.undertow=2.0.2.Final 3. see the undertow modules in the full feature distribution: [lgao@lgao wildfly]$ tree dist/target/wildfly-13.0.0.Alpha1-SNAPSHOT/modules/system/layers/base/io/undertow/ dist/target/wildfly-13.0.0.Alpha1-SNAPSHOT/modules/system/layers/base/io/undertow/ ├── core │   └── main │   ├── module.xml │   └── undertow-core-2.0.3.Final.jar ├── js │   └── main │   ├── module.xml │   └── undertow-js-1.0.2.Final.jar ├── jsp │   └── main │   ├── jastow-2.0.3.Final.jar │   └── module.xml ├── servlet │   └── main │   ├── module.xml │   └── undertow-servlet-2.0.2.Final.jar └── websocket └── main ├── module.xml └── undertow-websockets-jsr-2.0.2.Final.jar Expected: io.undertow:undertow-core:2.0.2.Final should be used, not 2.0.3.Final which is defined in wildfly-core:5.0.0.Alpha3-SNAPSHOT Actual: io.undertow:undertow-core:2.0.3.Final is used. > NOTE: The difference between these modules is that io.undertow:undertow-core is defined in wildfly core feature pack.

      I suppose it is a bug but not for sure.

      After WFLY-9911 is resolved, I think we are able to override version of modules defined in wildfly-core at maven build time too.

      Like:

      mvn clean install -Dversion.org.wildfly.core=5.0.0.Alpha3-SNAPSHOT -Dversion.io.undertow=2.0.2.Final
      

      should produce module: io.undertow.core:2.0.2.Final instead of io.undertow.core:2.0.3.Final which is defined in the wildfly-core.

              Unassigned Unassigned
              rhn-engineering-lgao Lin Gao
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: