Uploaded image for project: 'WildFly Core'
  1. WildFly Core
  2. WFCORE-5503

Get rid of maven warning importing the testbom dependencies

    XMLWordPrintable

Details

    Description

      The following warning is shown when wildfly-core is built:

      [WARNING]
      [WARNING] Some problems were encountered while building the effective model for org.wildfly.core:wildfly-core-testsuite-standalone:jar:17.0.0.Beta3-SNAPSHOT
      [WARNING] 'dependencies.dependency.scope' for org.wildfly.core:wildfly-core-testbom:pom must be one of [provided, compile, runtime, test, system] but is 'import'. @ line 42, column 20
      [WARNING]
      [WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
      [WARNING]
      [WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
      [WARNING]
      

      At the wildfly-core-testsuite-standalone module level, we are using the import scope to incorporate the maven dependencies from wildfly-core-testbom with the intention of overriding those that come from the parent module, however, the import scope is only supported in the dependencyManagement section.

      It's opened as a task because the dependencies are correctly being overridden by the testbom declaration.

      Attachments

        Activity

          People

            yborgess1@redhat.com Yeray Borges Santana
            yborgess1@redhat.com Yeray Borges Santana
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: