diff --git a/maven/bnd-generate-maven-plugin/src/main/java/aQute/bnd/maven/generate/plugin/BndContainer.java b/maven/bnd-generate-maven-plugin/src/main/java/aQute/bnd/maven/generate/plugin/BndContainer.java index 385cfe34d7..3bf4bf26b2 100644 --- a/maven/bnd-generate-maven-plugin/src/main/java/aQute/bnd/maven/generate/plugin/BndContainer.java +++ b/maven/bnd-generate-maven-plugin/src/main/java/aQute/bnd/maven/generate/plugin/BndContainer.java @@ -153,6 +153,7 @@ public int generate(String task, File workingDir, GenerateOperation operation, S bnd.setProperties(properties.replaceHere(project.getBasedir())); bnd.setProperty("project.output", workingDir.getCanonicalPath()); + bnd.setProperty(aQute.bnd.osgi.Constants.DEFAULT_PROP_TARGET_DIR, workingDir.getCanonicalPath()); if (logger.isDebugEnabled()) { logger.debug("Generate Project Properties"); @@ -170,7 +171,7 @@ public int generate(String task, File workingDir, GenerateOperation operation, S } public Project init(String task, File wsDir, File workingDir, Properties mavenProperties) throws Exception { - File temporaryDir = workingDir.toPath() + File temporaryDir = wsDir.toPath() .resolve("tmp") .resolve(task) .toFile();