|
15 | 15 | */ |
16 | 16 | package com.redhat.exhort.providers; |
17 | 17 |
|
| 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; |
18 | 30 | import java.io.IOException; |
19 | 31 | import java.nio.file.Files; |
20 | 32 | import java.nio.file.Path; |
|
28 | 40 | import java.util.logging.Level; |
29 | 41 | import java.util.logging.Logger; |
30 | 42 | import java.util.stream.Collectors; |
31 | | - |
32 | 43 | import javax.xml.stream.XMLInputFactory; |
33 | 44 | import javax.xml.stream.XMLStreamConstants; |
34 | 45 | import javax.xml.stream.XMLStreamException; |
35 | 46 | import javax.xml.stream.XMLStreamReader; |
36 | 47 |
|
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 | | - |
49 | 48 | /** |
50 | 49 | * Concrete implementation of the {@link Provider} used for converting dependency trees for Java |
51 | 50 | * 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) { |
440 | 439 | } |
441 | 440 | return mvnw; |
442 | 441 | } 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()); |
444 | 446 | } |
445 | 447 | } |
446 | 448 | } |
|
0 commit comments