Hi,
My project has two pom's. One is a called a super pom and contains basic
configuration for the whole project. Second pom declares "super pom" as its
parent.
In super pom you can find these dependency:
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-log4j12</artifactId>
<version>1.5.6</version>
</dependency>
Which defines what kind of implementation all project should use for
logging. In the second pom (child) I want to declare different logging
implementation, namely:
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-nop</artifactId>
<version>1.5.6</version>
</dependency>
But it seems that the maven builds classpath is a way where dependency from
parent is before, dependency from child. So nop logging will not be used
during execution.
Is there any way change that ? (to use nop as logging implementation) I
cannot change "super pom" file. The behavior what I'm interested is the same
as method overriding in OOP.
- John