We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents f7becb4 + 08ce121 commit 851b4f6Copy full SHA for 851b4f6
biz.aQute.bndlib/src/aQute/bnd/build/ProjectBuilder.java
@@ -224,10 +224,11 @@ public void init() {
224
if ((c.getType() == TYPE.PROJECT) && !file.exists()) {
225
continue;
226
}
227
- Jar jar = new Jar(file);
228
Map<String, String> containerAttributes = c.getAttributes();
229
if (!Boolean.parseBoolean(containerAttributes.getOrDefault("maven-optional", "false"))) {
230
- fillDependencies(dependencies, jar, containerAttributes);
+ try (Jar jar = new Jar(file)) {
+ fillDependencies(dependencies, jar, containerAttributes);
231
+ }
232
233
234
0 commit comments