Skip to content

Commit fbdcfa7

Browse files
committed
feat: update expectations for go mvs
Signed-off-by: Ruben Romero Montes <rromerom@redhat.com>
1 parent d593a9c commit fbdcfa7

9 files changed

Lines changed: 12394 additions & 25525 deletions

File tree

src/main/java/com/redhat/exhort/providers/JavaMavenProvider.java

Lines changed: 16 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,18 @@
1515
*/
1616
package com.redhat.exhort.providers;
1717

18+
import static com.redhat.exhort.impl.ExhortApi.debugLoggingIsNeeded;
19+
20+
import com.github.packageurl.MalformedPackageURLException;
21+
import com.github.packageurl.PackageURL;
22+
import com.redhat.exhort.Api;
23+
import com.redhat.exhort.Provider;
24+
import com.redhat.exhort.logging.LoggersFactory;
25+
import com.redhat.exhort.sbom.Sbom;
26+
import com.redhat.exhort.sbom.SbomFactory;
27+
import com.redhat.exhort.tools.Ecosystem.Type;
28+
import com.redhat.exhort.tools.Operations;
29+
import com.redhat.exhort.utils.Environment;
1830
import java.io.IOException;
1931
import java.nio.file.Files;
2032
import java.nio.file.Path;
@@ -28,24 +40,11 @@
2840
import java.util.logging.Level;
2941
import java.util.logging.Logger;
3042
import java.util.stream.Collectors;
31-
3243
import javax.xml.stream.XMLInputFactory;
3344
import javax.xml.stream.XMLStreamConstants;
3445
import javax.xml.stream.XMLStreamException;
3546
import javax.xml.stream.XMLStreamReader;
3647

37-
import com.github.packageurl.MalformedPackageURLException;
38-
import com.github.packageurl.PackageURL;
39-
import com.redhat.exhort.Api;
40-
import com.redhat.exhort.Provider;
41-
import static com.redhat.exhort.impl.ExhortApi.debugLoggingIsNeeded;
42-
import com.redhat.exhort.logging.LoggersFactory;
43-
import com.redhat.exhort.sbom.Sbom;
44-
import com.redhat.exhort.sbom.SbomFactory;
45-
import com.redhat.exhort.tools.Ecosystem.Type;
46-
import com.redhat.exhort.tools.Operations;
47-
import com.redhat.exhort.utils.Environment;
48-
4948
/**
5049
* Concrete implementation of the {@link Provider} used for converting dependency trees for Java
5150
* Maven projects (pom.xml) into a content Dot Graphs for Stack analysis or Json for Component
@@ -440,7 +439,10 @@ private String selectMvnRuntime(final Path manifestPath) {
440439
}
441440
return mvnw;
442441
} catch (Exception e) {
443-
log.log(Level.WARNING, "Failed to check for mvnw due to: {0} Fall back to use mvn", e.getMessage());
442+
log.log(
443+
Level.WARNING,
444+
"Failed to check for mvnw due to: {0} Fall back to use mvn",
445+
e.getMessage());
444446
}
445447
}
446448
}

0 commit comments

Comments
 (0)