<artifactId>junit</artifactId>
<scope>compile</scope>
</dependency>
-
- <dependency>
- <groupId>com.github.spotbugs</groupId>
- <artifactId>spotbugs-annotations</artifactId>
- <optional>true</optional>
- </dependency>
</dependencies>
<build>
</plugin>
</plugins>
</build>
-</project>
\ No newline at end of file
+</project>
import static java.util.Objects.requireNonNull;
-import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
import java.io.IOException;
import java.io.OutputStream;
import java.io.PrintStream;
+import java.nio.charset.StandardCharsets;
import java.util.concurrent.atomic.AtomicBoolean;
import org.apache.maven.plugin.MojoExecutionException;
import org.ops4j.pax.exam.ExamSystem;
}
@SuppressWarnings({"IllegalCatch", "RegexpSinglelineJava"})
- @SuppressFBWarnings("DM_DEFAULT_ENCODING")
void execute() throws MojoExecutionException {
// Use the same repository for Pax Exam as is used for Maven
for (var container : containers) {
// disable karaf stdout output to maven log
final var stdout = System.out;
- System.setOut(new PrintStream(OutputStream.nullOutputStream()));
+ System.setOut(new PrintStream(OutputStream.nullOutputStream(), true, StandardCharsets.UTF_8));
final var containerStarted = new AtomicBoolean(false);
try {