Closed mvilliger closed 12 months ago
What is the use case for this? Is it not possible to achieve using ${maven.multiModuleProjectDirectory}
or ${project.parent.basedir}
or something like that? Why is node being installed inside outputDirectory
(I assume it's one of the target
folders)?
We use a general parent pom which installs Node into the parent module's target dir as soon as the first sub-module is built which requires Node. For this the destination directory is configured using various properties which some might contain /../
.
Anyway it should not have any downside to normalize both directories as comparing them only makes sense if both are compared normalized. Don't you think?
Another point: These kind of installDirectories used to work fine in version < 1.13. So it seems like a regression concerning this feature. Currently, this blocks us from updating the plugin.
Do you want to request a feature or report a bug? Report a Bug
What is the current behavior? Using a relative path in
installDirectory
for goalinstall-node-and-npm
always leads to "Bad zip entry" exception:The reason seems to be here where a normalized
destPath
is compared against a non-normalizeddestinationDirectory
. I assume thedestinationDirectory
should be normalized as well before comparing.If the current behavior is a bug, please provide the steps to reproduce. Execute the
install-node-and-npm
goal with a relativeinstallDirectory
for node as shown in the sample above.What is the expected behavior? Node is correctly extracted to the normalized path of the given relative
installDirectory
.Please mention your frontend-maven-plugin and operating system version. frontend-maven-plugin version: 1.14.2 operating system: any