Help with compile SPIS (NUM-layer troubles)

Hi, everyone!

I try to compile SPIS in first time, without any modifications inside the code. I did everything according to the website, but I still couldn’t compile the code. I found some tips on the forum that helped me solve the problem with compiling SPIS-instruments layer, but anyway an error occurs when compiling the NUM layer. I attach a screenshot of the error, as well as a screenshot of the maven and jdk versions. To compile the instrument layer I added a settings.xml file with the content as in the screenshot.

image

Thanks for help or advice!

Indeed it seems there is a misconfiguration in the NUM layer that prevents from compiling without the Git metadata.

A first solution could be to git clone the repository instead of downloading the zip to have the source control version history.

A second solution, simpler and quicker, is to edit the configuration to not fail when the .git directory is missing.
To do so:

  • open the pom.xml at the root of the NUM folder
  • go to line 210
  • change the value to false for the option <failOnNoGitDirectory>
  • you should have now the following configuration:
<configuration>
    <useNativeGit>false</useNativeGit>
    <dotGitDirectory>${project.basedir}/.git</dotGitDirectory>
    <verbose>false</verbose>
    <generateGitPropertiesFile>true</generateGitPropertiesFile>
    <failOnNoGitDirectory>false</failOnNoGitDirectory>
    <injectAllReactorProjects>true</injectAllReactorProjects>
</configuration>

Now if you try to compile, you should not have the issue with .git directory.

1 Like

Thank you so much!
With POM file method I can compile the NUM layer!
But when I try to compile next layer (num-plugins) I receive the error message too, and it’s git problems again. When I look into the POM file, I can’t find any flags to turn on oe off this git link. So I need your help again))

Indeed, there is no center flag to be edited in num-plugins.

In this case, you will need to go to each sub-modules (in the modules directory) and edit each pom.xml file to set the <failOnNoGitDirectory> option to false

1 Like

Thanks again!
Everything works, and the UI layer is compiled too!