File tree 1 file changed +12
-13
lines changed
1 file changed +12
-13
lines changed Original file line number Diff line number Diff line change 78
78
<artifactId >log4j-core-test</artifactId >
79
79
<scope >test</scope >
80
80
</dependency >
81
- <dependency >
82
- <groupId >org.apache.logging.log4j</groupId >
83
- <artifactId >log4j-to-slf4j</artifactId >
84
- <scope >test</scope >
85
- </dependency >
86
81
<dependency >
87
82
<groupId >org.assertj</groupId >
88
83
<artifactId >assertj-core</artifactId >
116
111
<groupId >org.apache.maven.plugins</groupId >
117
112
<artifactId >maven-surefire-plugin</artifactId >
118
113
<executions >
114
+ <!-- Separate test execution to verify that the presence of both:
115
+ ~ * `log4j-slf4j2-impl` (bridge from SLF4J to Log4j API)
116
+ ~ * `log4j-to-slf4j` (bridge from Log4j API to SLF4J)
117
+ ~ does not cause a stack overflow.
118
+ -->
119
119
<execution >
120
120
<id >loop-test</id >
121
121
<goals >
122
122
<goal >test</goal >
123
123
</goals >
124
- <phase >test</phase >
125
124
<configuration >
125
+ <additionalClasspathDependencies >
126
+ <dependency >
127
+ <groupId >org.apache.logging.log4j</groupId >
128
+ <artifactId >log4j-to-slf4j</artifactId >
129
+ <version >${project.version} </version >
130
+ </dependency >
131
+ </additionalClasspathDependencies >
126
132
<includes >
127
133
<include >**/OverflowTest.java</include >
128
134
</includes >
129
135
</configuration >
130
136
</execution >
131
137
<execution >
132
138
<id >default-test</id >
133
- <goals >
134
- <goal >test</goal >
135
- </goals >
136
- <phase >test</phase >
137
139
<configuration >
138
140
<includes >
139
141
<include >**/*Test.java</include >
140
142
</includes >
141
143
<excludes >
142
144
<exclude >**/OverflowTest.java</exclude >
143
145
</excludes >
144
- <classpathDependencyExcludes >
145
- <classpathDependencyExcludes >org.apache.logging.log4j:log4j-to-slf4j</classpathDependencyExcludes >
146
- </classpathDependencyExcludes >
147
146
</configuration >
148
147
</execution >
149
148
</executions >
You can’t perform that action at this time.
0 commit comments