Closed ctrueden closed 6 years ago
More specifically the build runs with pom-scijava-20.1.0
but not with pom-scijava-20.2.0
or newer. However if I explicitly depend on imagej-maven-plugin-0.6.0
, I can build with pom-scijava-21.0.0
as well.
Wait! Is the error just that the plug-in is now trying to look for aggregates whose packaging is JAR? pom-bonej2 has packaging pom. If that's the case, then I suspect the error was introduced in commit: https://github.com/imagej/imagej-maven-plugin/commit/a50d17e034ed110c0a6a318cf0f1653da8c2a12f. How would I debug the plug-in if I wanted to make a PR for the bug-fix?
@rimadoma wrote:
How would I debug the plug-in if I wanted to make a PR for the bug-fix?
If you have time to debug it, that would be fantastic. It should be as simple as building a SNAPSHOT version of the imagej-maven-plugin, and then using that version from the CLI:
cd imagej-maven-plugin
mvn clean install
cd ../my-project-for-testing
mvn net.imagej:imagej-maven-plugin:0.7.1-SNAPSHOT:copy-jars
Where 0.7.1-SNAPSHOT
is the version you installed.
@rimadoma @ctrueden Sorry, this has been sitting for so long! This issue will be fixed with #35.
Try building BoneJ2 with an
imagej.app.directory
set and pom-scijava >= 21.0.0. (Specifically: imagej-maven-plugin 0.7.0 rather than 0.6.0.) The build fails with the following error:Running
mvn -DskipTests clean install
first does not alleviate the issue.See also this conversation on Gitter.