1 Reply Latest reply on Dec 26, 2011 10:04 AM by John Ament

    How to exclude weld-servlet's own slf4j bingdings

    mi haisheng Newbie
       
      in class path:
      i have a weld-servlet and slf4j-log4j12 in class path
      ------------
      <dependency>
        <groupId>org.jboss.weld.servlet</groupId>
        <artifactId>weld-servlet</artifactId>
        <version>1.1.4.Final</version>
      </denpendency>
      ------------
      <dependency>
        <groupId>org.slf4j</groupId>
        <artifactId>slf4j-log4j12</artifactId>
        <version>1.6.4</version>
      </denpendency>
      ------------
      when deploying the project,log says : "class path contains muliple slf4j bindings".

      i want to exclude weld-servlet's own slf4j bindings.
      <dependency>
        <groupId>org.jboss.weld.servlet</groupId>
        <artifactId>weld-servlet</artifactId>
        <version>1.1.4.Final</version>
        <exclude>
          ????????????????
        </exclude>
      </dependency>
      how to fill ??????????? with correct code ?thanks every one!

      </denpendency>