2 Replies Latest reply on Mar 22, 2016 8:32 AM by ctomc

    Put slf4j-api dependency in pom.xml with org.wildfly.bom

    pietrobiasuz

      Hello,

       

      I'm trying to put slf4j-api dependency in pom.xml that already has the dependency for BOM. My project target is wildfly 10.0.0.Final

       

      <dependencyManagement>

        <dependencies>

          <dependency>

            <groupId>org.wildfly.bom</groupId>

            <artifactId>wildfly-javaee7-with-tools</artifactId>

            <version>${version.wildfly.bom}</version>

            <type>pom</type>

            <scope>import</scope>

         </dependency>

       

       

      So, when I put the dependency for slf4j:

      <dependencies>

        <dependency>

          <groupId>org.slf4j</groupId>

          <artifactId>slf4j-api</artifactId>

          <scope>provided</scope>

      </dependency>


      I need to declare the version for slf4j-api to avoid an error in pom. The lib is provided by Wildfly and the version declared in pom and the provided lib must match. So, put a arbitrary version not seems to be the right answer.


      Why slf4j-api version is not declared in BOM pom.xml or above (parent poms)?


      Thanks,


      Pietro Biasuz

        • 1. Re: Put slf4j-api dependency in pom.xml with org.wildfly.bom
          ctomc

          WildFly boms are completely separate from WildFly main build.

          boms are meant for users to have common set of server provided APIs / components available to them at build time.

           

          As such we don't provide all components WildFly bundles in boms, as many(most) of those jars are considered server private and not meant be used by users directly.

           

          Said all that, I do agree that stuff like slf4j should be declared in our boms.

          I will fix that right away and do new release of 10.x bom that will include it.

          • 2. Re: Put slf4j-api dependency in pom.xml with org.wildfly.bom
            ctomc

            WildFly boms 10.0.1.Final ware released yesterday that include also slf4j and few other useful deps.