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

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

    Pietro Biasuz Newbie

      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