Repository navigation
Commit ea8ec86
feat(manifest): build every POM a scan uploads with --dynamic-sbom-inference (#1660)
* feat(manifest): build every POM a scan uploads with --dynamic-sbom-inference
Maven build roots are discovered with the API's supported-file pattern for
POMs, case-insensitively as the upload matches it, instead of only pom.xml.
Each POM is its own build root: a non-default POM runs with `--file`, and
coverage by a parent build is judged per file. Discovery also applies
socket.yml's projectIgnorePaths, as the upload does, so a POM a scan would
not upload is not built either. --exclude-paths and .gitignore matching stay
case-sensitive.
The recursive setup wizard asks once per directory holding several POMs, and
no longer disables a whole directory when --exclude-paths matches only one of
its POMs.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* refactor(manifest): address review on per-POM DSI discovery
- Match build markers in the glob filter, POMs case-insensitively, instead of
case-folding the pattern.
- Pass the POM to build as ManifestScriptOptions.entryFile; invokeMaven adds
--file, and progress and failure messages name the POM.
- Resolve socket.yml once per caller and pass it to discovery.
- One table for file-addressed tools; one shared depth-then-path sort.
- Group setup-wizard candidates by directory: one prompt and one summary
count per directory, each of its POMs enumerated unless already covered,
including POMs at cwd.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* refactor(manifest): one build-file record per tool, per-directory DSI config
- Move build-file names, the POM pattern and its case rule into one
BUILD_FILES record; discovery walks narrow globs again and matches after.
- Build every discovered POM with its own --file; a user -f/--file in
mavenOpts is dropped with a warning during config resolution.
- Resolve DSI and wizard settings once per directory.
- Require socketConfig for discovery, loaded through loadSocketConfig.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>1 parent 92f673a commit ea8ec86
21 files changed
Lines changed: 995 additions & 281 deletions
File tree
- src
- commands/manifest
- scripts
- utils
- test/fixtures/commands/manifest/dynamic-sbom-inference/pom-names
- bare
- upper
- vendored
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
7 | 12 | | |
8 | 13 | | |
9 | 14 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
4 | 7 | | |
5 | 8 | | |
6 | 9 | | |
7 | 10 | | |
8 | 11 | | |
9 | 12 | | |
10 | 13 | | |
| 14 | + | |
11 | 15 | | |
12 | 16 | | |
13 | 17 | | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
35 | 43 | | |
36 | 44 | | |
37 | 45 | | |
| |||
85 | 93 | | |
86 | 94 | | |
87 | 95 | | |
88 | | - | |
| 96 | + | |
89 | 97 | | |
90 | 98 | | |
91 | 99 | | |
92 | | - | |
| 100 | + | |
93 | 101 | | |
94 | | - | |
95 | | - | |
96 | | - | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
97 | 107 | | |
98 | 108 | | |
99 | | - | |
100 | | - | |
101 | | - | |
102 | | - | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
103 | 120 | | |
104 | 121 | | |
105 | | - | |
106 | | - | |
107 | | - | |
108 | | - | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
109 | 127 | | |
110 | 128 | | |
111 | 129 | | |
| |||
115 | 133 | | |
116 | 134 | | |
117 | 135 | | |
| 136 | + | |
118 | 137 | | |
119 | 138 | | |
120 | 139 | | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
121 | 143 | | |
122 | | - | |
| 144 | + | |
123 | 145 | | |
124 | 146 | | |
125 | 147 | | |
126 | | - | |
| 148 | + | |
127 | 149 | | |
128 | 150 | | |
129 | 151 | | |
130 | 152 | | |
131 | | - | |
132 | | - | |
133 | | - | |
134 | 153 | | |
135 | 154 | | |
136 | 155 | | |
137 | | - | |
138 | | - | |
139 | | - | |
140 | | - | |
141 | | - | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
142 | 167 | | |
143 | | - | |
144 | | - | |
| 168 | + | |
| 169 | + | |
145 | 170 | | |
146 | | - | |
147 | | - | |
148 | | - | |
149 | | - | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
150 | 183 | | |
151 | 184 | | |
152 | | - | |
153 | | - | |
154 | | - | |
155 | | - | |
| 185 | + | |
| 186 | + | |
156 | 187 | | |
157 | 188 | | |
158 | 189 | | |
159 | 190 | | |
160 | 191 | | |
161 | 192 | | |
162 | | - | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
163 | 197 | | |
164 | 198 | | |
165 | 199 | | |
| |||
0 commit comments