Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@
import java.io.InputStream;
import java.io.OutputStream;
import java.io.Writer;
import java.nio.file.Files;
import java.nio.file.Path;
import java.util.ArrayList;
import java.util.jar.JarEntry;
import java.util.jar.JarFile;
Expand Down Expand Up @@ -156,10 +158,11 @@

try
{
File pomFile = File.createTempFile(artifact.getGroupId() + "."
Path pomFilePath = Files.createTempFile(artifact.getGroupId() + "."
+ artifact.getArtifactId(), ".pom");
File pomFile = pomFilePath.toFile();

try (Writer writer = WriterFactory.newXmlWriter(pomFile))

Check warning on line 165 in maven-external-dependency-plugin/maven-external-dependency-plugin/src/main/java/com/savage7/maven/plugin/dependency/AbstractExternalDependencyMojo.java

View workflow job for this annotation

GitHub Actions / build-maven (ubuntu-latest, 17)

org.codehaus.plexus.util.WriterFactory in org.codehaus.plexus.util has been deprecated
{
new MavenXpp3Writer().write(writer, model);
}
Expand Down
Loading