Skip to content
Open
Show file tree
Hide file tree
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
@@ -1,4 +1,4 @@
/**

Check warning on line 1 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 (macos-latest, 26)

documentation comment is not attached to any declaration

Check warning on line 1 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, 26)

documentation comment is not attached to any declaration

Check warning on line 1 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, 25)

documentation comment is not attached to any declaration
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
Expand Down Expand Up @@ -45,7 +45,6 @@
import org.codehaus.plexus.digest.DigesterException;
import org.codehaus.plexus.digest.Md5Digester;
import org.codehaus.plexus.digest.Sha1Digester;
import org.codehaus.plexus.util.IOUtil;
import org.codehaus.plexus.util.WriterFactory;
import org.w3c.dom.Document;
import org.w3c.dom.Node;
Expand Down Expand Up @@ -155,14 +154,15 @@
{
Model model = generateModel(artifact);

Writer writer = null;
try
{
File pomFile = File.createTempFile(artifact.getGroupId() + "."
+ artifact.getArtifactId(), ".pom");

writer = WriterFactory.newXmlWriter(pomFile);
new MavenXpp3Writer().write(writer, model);
try (Writer writer = WriterFactory.newXmlWriter(pomFile))

Check warning on line 162 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 (macos-latest, 26)

org.codehaus.plexus.util.WriterFactory in org.codehaus.plexus.util has been deprecated

Check warning on line 162 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 (macos-latest, 11)

org.codehaus.plexus.util.WriterFactory in org.codehaus.plexus.util has been deprecated

Check warning on line 162 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, 26)

org.codehaus.plexus.util.WriterFactory in org.codehaus.plexus.util has been deprecated

Check warning on line 162 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, 25)

org.codehaus.plexus.util.WriterFactory in org.codehaus.plexus.util has been deprecated

Check warning on line 162 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

Check warning on line 162 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, 21)

org.codehaus.plexus.util.WriterFactory in org.codehaus.plexus.util has been deprecated

Check warning on line 162 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, 11)

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

return pomFile;
}
Expand All @@ -171,10 +171,6 @@
throw new MojoExecutionException(
"Error writing temporary POM file: " + e.getMessage(), e);
}
finally
{
IOUtil.close(writer);
}
}

/**
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/**

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

View workflow job for this annotation

GitHub Actions / build-maven (macos-latest, 26)

documentation comment is not attached to any declaration

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

View workflow job for this annotation

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

documentation comment is not attached to any declaration

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

View workflow job for this annotation

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

documentation comment is not attached to any declaration
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with this
* work for additional information regarding copyright ownership. The ASF
Expand All @@ -15,9 +15,9 @@
package com.savage7.maven.plugin.dependency;

import java.io.File;
import java.util.Objects;

import org.apache.maven.artifact.Artifact;
import org.codehaus.plexus.util.StringUtils;

/**
* ArtifactItem represents information specified in the plugin configuration
Expand Down Expand Up @@ -357,12 +357,12 @@
if (this.classifier == null)
{
return groupId + ":" + artifactId + ":"
+ StringUtils.defaultString(version, "?") + ":" + packaging;
+ Objects.toString(version, "?") + ":" + packaging;
}
else
{
return groupId + ":" + artifactId + ":" + classifier + ":"
+ StringUtils.defaultString(version, "?") + ":" + packaging;
+ Objects.toString(version, "?") + ":" + packaging;
}
}

Expand Down
Loading