Commit 0105603
committed
Fix Maven JAR PURL detection for packages without metadata
* Add maven.py module with enhanced JAR detection for Maven packages
* Detect Maven JARs via pom.properties files and URL pattern analysis
* Convert JAR PURLs to correct Maven format (pkg:jar → pkg:maven)
* Add comprehensive test suite covering all detection scenarios
* Update scan_codebase and inspect_packages pipelines
* Fixes perfmark-api-0.27.0.jar returning incorrect PURL format
Resolves #1836
Signed-off-by: Sara Faraj <[email protected]>1 parent 473c6fe commit 0105603
File tree
4 files changed
+669
-0
lines changed- scanpipe
- pipelines
- pipes
- tests/pipes
4 files changed
+669
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| 25 | + | |
25 | 26 | | |
26 | 27 | | |
27 | 28 | | |
| |||
50 | 51 | | |
51 | 52 | | |
52 | 53 | | |
| 54 | + | |
53 | 55 | | |
54 | 56 | | |
55 | 57 | | |
| |||
65 | 67 | | |
66 | 68 | | |
67 | 69 | | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
68 | 74 | | |
69 | 75 | | |
70 | 76 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| 25 | + | |
25 | 26 | | |
26 | 27 | | |
27 | 28 | | |
| |||
44 | 45 | | |
45 | 46 | | |
46 | 47 | | |
| 48 | + | |
47 | 49 | | |
48 | 50 | | |
49 | 51 | | |
| |||
63 | 65 | | |
64 | 66 | | |
65 | 67 | | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
66 | 72 | | |
67 | 73 | | |
68 | 74 | | |
| |||
0 commit comments