Access to trial versions of NES Maven artifacts do not require a NES registry token. However, the following configurations are needed for Maven and Gradle.
Maven
For setting up Maven to access the NES Registry, locate the Maven settings file used to build the application. This is typically included in the USER_HOME/.m2 folder (e.g. ~/.m2/settings.xml).
<settings>
<servers>
<!-- Other server settings -->
<server>
<id>herodevs-nes-registry</id>
<username>some@email.com</username>
</server>
</servers>
</settings>
Note: The ID of "herodevs-nes-registry" should match that of the ID for source and plugin repositories in the applications' pom.xml (or parent pom.xml).
Example snippet of the pom.xml.
<repositories>
<repository>
<id>herodevs-nes-registry</id>
<url>https://registry.nes.herodevs.com/maven</url>
</repository>
</repositories>
<pluginRepositories>
<pluginRepository>
<id>herodevs-nes-registry</id>
<url>https://registry.nes.herodevs.com/maven</url>
</pluginRepository>
</pluginRepositories>
Gradle
For setting up a Gradle project with access to the NES registry, locate the Gradle properties file used to store variables used for Gradle builds. Typically this is stored in the global "gradle.properties" file (e.g. ~/.gradle/gradle.properties).
Add the following variables in the properties file.
herodevs_nes_registry_url=https://registry.nes.herodevs.com/maven
herodevs_nes_registry_user=some@email.com
Update the application's Gradle source repositories and plugin repositories to use the new NES variables with the following maven configuration. This is typically in the build.gradle and/or settings.gradle files.
maven {
url = uri(providers.gradleProperty("herodevs_nes_registry_url").get())
credentials {
username = providers.gradleProperty("herodevs_nes_registry_user").get()
}
}