Philip created MCASSANDRA-16:
--------------------------------

             Summary: Cassandra plugin force to use slf4j log4j binding
                 Key: MCASSANDRA-16
                 URL: https://jira.codehaus.org/browse/MCASSANDRA-16
             Project: Mojo's Cassandra Maven Plugin
          Issue Type: Improvement
    Affects Versions: 1.0.0-1
            Reporter: Philip
            Assignee: Stephen Connolly


Hello,

We are using cassandra-maven-plugin to run integration tests of our products. 
Our project configured to use logback as a slf4j implementation, but plugin 
adds log4j binding to the classpath and that breaks logging for out tests. 

Due to maven restrictions it is not possible to remove slf4j-log4j12 from the 
plugin dependency in the child pom. So it would be nice, to mark that 
dependency with the provided scope and exclude it from cassandra:
    <dependency>
      <groupId>org.apache.cassandra</groupId>
      <artifactId>cassandra-all</artifactId>
      <version>${cassandraVersion}</version>
      <exclusions>
        <exclusion>
             <groupId>org.slf4j</groupId>
             <artifactId>slf4j-log4j12</artifactId>
        </exclusion>
      </exclusions>
    </dependency>
    <dependency>
      <groupId>org.slf4j</groupId>
      <artifactId>slf4j-log4j12</artifactId>
      <version>1.6.1</version>
      <scope>provided</scope>
    </dependency>

That will allow any project to choose any slf4j binding.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to