mirror of
https://github.com/ysoftdevs/DependencyCheck.git
synced 2026-03-21 08:39:24 +01:00
Updated error messages to reflect Nexus
Former-commit-id: 60bd62aebbf52844150a58fe4afea45be867f249
This commit is contained in:
@@ -226,7 +226,7 @@ public class NexusAnalyzer extends AbstractFileTypeAnalyzer {
|
|||||||
final File baseDir = Settings.getTempDirectory();
|
final File baseDir = Settings.getTempDirectory();
|
||||||
pomFile = File.createTempFile("pom", ".xml", baseDir);
|
pomFile = File.createTempFile("pom", ".xml", baseDir);
|
||||||
if (!pomFile.delete()) {
|
if (!pomFile.delete()) {
|
||||||
final String msg = String.format("Unable to fetch pom.xml for %s from Central; "
|
final String msg = String.format("Unable to fetch pom.xml for %s from Nexus repository; "
|
||||||
+ "this could result in undetected CPE/CVEs.", dependency.getFileName());
|
+ "this could result in undetected CPE/CVEs.", dependency.getFileName());
|
||||||
LOGGER.warning(msg);
|
LOGGER.warning(msg);
|
||||||
LOGGER.fine("Unable to delete temp file");
|
LOGGER.fine("Unable to delete temp file");
|
||||||
@@ -235,7 +235,7 @@ public class NexusAnalyzer extends AbstractFileTypeAnalyzer {
|
|||||||
Downloader.fetchFile(new URL(ma.getPomUrl()), pomFile);
|
Downloader.fetchFile(new URL(ma.getPomUrl()), pomFile);
|
||||||
pomUtil.analyzePOM(dependency, pomFile);
|
pomUtil.analyzePOM(dependency, pomFile);
|
||||||
} catch (DownloadFailedException ex) {
|
} catch (DownloadFailedException ex) {
|
||||||
final String msg = String.format("Unable to download pom.xml for %s from Central; "
|
final String msg = String.format("Unable to download pom.xml for %s from Nexus repository; "
|
||||||
+ "this could result in undetected CPE/CVEs.", dependency.getFileName());
|
+ "this could result in undetected CPE/CVEs.", dependency.getFileName());
|
||||||
LOGGER.warning(msg);
|
LOGGER.warning(msg);
|
||||||
} finally {
|
} finally {
|
||||||
|
|||||||
Reference in New Issue
Block a user