NSF Installation XML

The nsfInstallation.xml describes settings of a local installation. For a regular NSF installation it can be found under ${NSFBase}/repositories/nsx/prime/nsfInstallation.xml

The nsfInstallation.xml looks as follows:

<nsfInstallation name="nsfInstallation">
  <version>2019.5.2</version>
  <primeDataVersion>2019.5.1</primeDataVersion>
  <baseComponentsVersion>2019.5.1</baseComponentsVersion>
  <webStylesVersion>2019.5.1</webStylesVersion>
  <primeDataDirectory>C:\NSF-3.0\repositories\data</primeDataDirectory>
  <repositoriesDirectory>C:\NSF-3.0\repositories</repositoriesDirectory>
  <infrastructureDirectory>C:\NSF-3.0\infrastructure</infrastructureDirectory>
  <webStylesDirectory>C:\NSF-3.0\repositories\webStyles</webStylesDirectory>
  <baseComponentsDirectory>C:\NSF-3.0\repositories\baseComponents</baseComponentsDirectory>
  <expansionResources>
    <expansionResource name="net.democritus:some-expanders" version="1.2.3">
  </expansionResources>
</nsfInstallation>

It contains:

  • versions of several resources
  • paths to the resource folders
  • expansionResources which are added to the expansion of every project

Separate installation

The file can also be generated by running the NsxPrimeInstaller:

java -jar nsx-prime-*-jar-with-dependencies.jar
  install \
  --baseComponentsDir $_baseComponents \
  --primeDataDir $_primeDataPath \
  --repositoriesDir $_repositoriesDir \
  --webStylesDir $_webStyles

This will generate the nsfInstallation.xml, the nsf.sh and nsf.bat scripts and copy the nsx-prime jar to the correct directory. All of these will be placed under $_repositoriesDir/nsx/prime/.