Snap-engine build failure

I’m trying to build snap-engine on Windows10, using maven 3.6.3 and java 1.8.0_231, I have the latest version of snap-engine from the git master branch and I’m running into this error during compilation of the snap-classification:

[INFO] — nbm-maven-plugin:4.1:manifest (default-manifest) @ snap-classification —
[INFO] NBM Plugin generates manifest
[INFO] Adding on module’s Class-Path:
[INFO] com.google.guava:guava:jar:21.0
[INFO] nz.ac.waikato.cms.weka:LibSVM:jar:1.0.10
[INFO] nz.ac.waikato.cms.weka:weka-dev:jar:3.9.4
[INFO] com.github.vbmacher:java-cup:jar:11b-20160615
[INFO] com.github.vbmacher:java-cup-runtime:jar:11b-20160615
[INFO] nz.ac.waikato.cms.weka.thirdparty:bounce:jar:0.18
[INFO] com.googlecode.matrix-toolkits-java:mtj:jar:1.0.4
[INFO] net.sourceforge.f2j:arpack_combined_all:jar:0.1
[INFO] com.googlecode.netlib-java:netlib-java:jar:1.1
[INFO] com.github.fommil.netlib:core:jar:1.1
[INFO] com.github.fracpete:jfilechooser-bookmarks:jar:0.1.6
[INFO] com.github.fracpete:jclipboardhelper:jar:0.1.0
[INFO] com.sun.istack:istack-commons-runtime:jar:3.0.8
[INFO] jakarta.activation:jakarta.activation-api:jar:1.2.1
[INFO] jakarta.xml.bind:jakarta.xml.bind-api:jar:2.3.2
[INFO] org.glassfish.jaxb:jaxb-runtime:jar:2.3.2
[INFO] org.glassfish.jaxb:txw2:jar:2.3.2
[INFO] org.jvnet.staxex:stax-ex:jar:1.8.1
[INFO] com.sun.xml.fastinfoset:FastInfoset:jar:1.2.16
[INFO] tw.edu.ntu.csie:libsvm:jar:3.24
[INFO] net.sf:javaml:jar:0.1.7
[INFO] be.abeel:ajt:jar:2.11
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] SNAP Engine Project 8.0.0-SNAPSHOT … SUCCESS [ 1.233 s]
[INFO] SNAP Test Utils 8.0.0-SNAPSHOT … SUCCESS [ 1.745 s]
[INFO] Ceres Runtime Library 8.0.0-SNAPSHOT … SUCCESS [ 9.302 s]
[INFO] Ceres Binding 8.0.0-SNAPSHOT … SUCCESS [ 4.524 s]
[INFO] Ceres JAI Library 8.0.0-SNAPSHOT … SUCCESS [ 5.428 s]
[INFO] Ceres GLayer Library 8.0.0-SNAPSHOT … SUCCESS [ 4.781 s]
[INFO] Ceres User Interface Library 8.0.0-SNAPSHOT … SUCCESS [ 7.999 s]
[INFO] Ceres Binary I/O Library 8.0.0-SNAPSHOT … SUCCESS [ 3.857 s]
[INFO] Ceres Metadata handling Library 8.0.0-SNAPSHOT … SUCCESS [ 4.477 s]
[INFO] SNAP Runtime 8.0.0-SNAPSHOT … SUCCESS [ 0.744 s]
[INFO] SNAP Core Library 8.0.0-SNAPSHOT … SUCCESS [ 24.938 s]
[INFO] SNAP Graph Processing Framework (GPF) 8.0.0-SNAPSHOT SUCCESS [ 10.296 s]
[INFO] SNAP Engine Utilities 8.0.0-SNAPSHOT … SUCCESS [ 5.618 s]
[INFO] SNAP Product Library 8.0.0-SNAPSHOT … SUCCESS [ 7.766 s]
[INFO] HDF Library 2.7.1 … SUCCESS [ 26.255 s]
[INFO] SNAP ArcInfo Binary Grid Reader 8.0.0-SNAPSHOT … SUCCESS [ 5.147 s]
[INFO] SNAP GeoTIFF/BigTIFF Product Reader 8.0.0-SNAPSHOT . SUCCESS [ 5.189 s]
[INFO] SNAP NetCDF Product Reader/Writer 8.0.0-SNAPSHOT … SUCCESS [ 9.877 s]
[INFO] SNAP Envisat Product Reader 8.0.0-SNAPSHOT … SUCCESS [ 8.906 s]
[INFO] NASA Blue Marble Worldmap 8.0.0-SNAPSHOT … SUCCESS [ 10.234 s]
[INFO] SNAP Level-3 Binning Processor (GPF) 8.0.0-SNAPSHOT SUCCESS [ 9.174 s]
[INFO] SNAP Classification 8.0.0-SNAPSHOT … FAILURE [ 2.335 s]
[INFO] SNAP Cluster Analysis 8.0.0-SNAPSHOT … SKIPPED
[INFO] SNAP Collocation Operator 8.0.0-SNAPSHOT … SKIPPED
[INFO] SNAP CSV Product Reader/Writer 8.0.0-SNAPSHOT … SKIPPED
[INFO] SNAP GeoTIFF Product Reader/Writer 8.0.0-SNAPSHOT … SKIPPED
[INFO] SNAP Digital Elevation Models 8.0.0-SNAPSHOT … SKIPPED
[INFO] SNAP ENVI Product Reader 8.0.0-SNAPSHOT … SKIPPED
[INFO] GETASSE30 DEM 8.0.0-SNAPSHOT … SKIPPED
[INFO] HDF5 Product Writer 8.0.0-SNAPSHOT … SKIPPED
[INFO] SNAP Jython Interface 8.0.0-SNAPSHOT … SKIPPED
[INFO] SNAP Land Cover 8.0.0-SNAPSHOT … SKIPPED
[INFO] SNAP NDVI Processor 8.0.0-SNAPSHOT … SKIPPED
[INFO] SNAP Product Conversion Tool 8.0.0-SNAPSHOT … SKIPPED
[INFO] SNAP PGX Product Reader 8.0.0-SNAPSHOT … SKIPPED
[INFO] SNAP Pixel Extraction Tool 8.0.0-SNAPSHOT … SKIPPED
[INFO] SNAP Python Interface 8.0.0-SNAPSHOT … SKIPPED
[INFO] SNAP Raster Operators 8.0.0-SNAPSHOT … SKIPPED
[INFO] SNAP Statistics Operator 8.0.0-SNAPSHOT … SKIPPED
[INFO] SNAP Temporal Percentile Operator 8.0.0-SNAPSHOT … SKIPPED
[INFO] SNAP Spectral Unmixing Tool 8.0.0-SNAPSHOT … SKIPPED
[INFO] SNAP Virtual File Systems 8.0.0-SNAPSHOT … SKIPPED
[INFO] SNAP Watermask Operator 8.0.0-SNAPSHOT … SKIPPED
[INFO] ESA GlobCover Worldmap 8.0.0-SNAPSHOT … SKIPPED
[INFO] SNAP Smart Configurator 8.0.0-SNAPSHOT … SKIPPED
[INFO] SNAP Standalone Tool Adapter 8.0.0-SNAPSHOT … SKIPPED
[INFO] SNAP Remote Execution 8.0.0-SNAPSHOT … SKIPPED
[INFO] SNAP Engine Kit Module 8.0.0-SNAPSHOT … SKIPPED
[INFO] SNAP Raw, tiled pyramid product I/O (experimental) 8.0.0-SNAPSHOT SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 02:51 min
[INFO] Finished at: 2020-01-06T16:09:36+08:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.codehaus.mojo:nbm-maven-plugin:4.1:manifest (default-manifest) on project snap-classification: Execution default-manifest of goal org.codehaus.mojo:nbm-maven-plugin:4.1:manifest failed.: IllegalArgumentException -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginExecutionException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn -rf :snap-classification

I would really appreciate any help. Thanks in advance.

Thanks for the following website:

The fix is to update the following artifact in the file nbm-maven-plugin/pom.xml:

<dependency>
    <groupId>org.apache.maven.shared</groupId>
    <artifactId>maven-dependency-analyzer</artifactId>
    <version>1.10<ersion> to <version>1.11.1<ersion>
</dependency>

Thanks for the report and for trying to fix it.
We are working on fixing this issue.
https://senbox.atlassian.net/browse/SNAP-1269

Instead of modifying the pom of the nbm-maven-plugin we will move to a later version.

Thanks again.