Created
April 8, 2016 03:17
-
-
Save daemin-hwang/d4359ec2473c411452a04f0bf30ea8d4 to your computer and use it in GitHub Desktop.
git-commit-id-plugin 사용시 주의점 slf4j관련
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<groupId>pl.project13.maven</groupId> | |
<artifactId>git-commit-id-plugin</artifactId> | |
위 라이브러리를 사용할때 버젼에 따른 차이가 있어서 정리한다. | |
<version>2.2.0</version> 의경우 자체 소스코드로 slf4j 구현체를 가지고 있어서 | |
LoggerFactory를 가져올때 slf4j라이브러리것이 아닌 자기 자신이 포함한 패키지내의 LoggerFactory를 가져온다. | |
로깅 레벨은 조절되지만 파일 어펜더 사용불가 LoggerContext등으로 캐스팅이 안되어 정상적으로 사용할 수 없게 된다. | |
아래와 같이 버젼을 2.2.1로 올리고 slf4j를 exclude 시킨다. | |
<dependency> | |
<groupId>pl.project13.maven</groupId> | |
<artifactId>git-commit-id-plugin</artifactId> | |
<version>2.2.1</version> | |
<exclusions> | |
<exclusion> | |
<groupId>org.slf4j</groupId> | |
<artifactId>slf4j-simple</artifactId> | |
</exclusion> | |
</exclusions> | |
</dependency> | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment