NES for Apache Struts requires Java 8+.
Example repositories showing before/after configuration:
Create or update your registry configuration:
Maven (~/.m2/settings.xml)
Gradle (~/.gradle/gradle.properties)
<settings>
<servers>
<server>
<id>neverendingsupport</id>
<username>any_text_here_not_used</username>
<password>YOUR_NES_ACCESS_TOKEN</password>
</server>
</servers>
</settings>
herodevs_nes_registry_url=https://registry.nes.herodevs.com/maven
herodevs_nes_registry_user=any_text_here_not_used
herodevs_nes_registry_token=NES_TOKEN_HERE
Add the NES repository and dependencies to your build configuration:
<!-- Update Struts dependencies -->
<dependencies>
<dependency>
<groupId>com.herodevs.nes.apache.struts</groupId>
<artifactId>struts2-core</artifactId>
<version>2.5.33-struts2-2.5.34</version>
</dependency>
<dependency>
<groupId>com.herodevs.nes.apache.struts</groupId>
<artifactId>struts2-config-browser-plugin</artifactId>
<version>2.5.33-struts2-2.5.34</version>
</dependency>
</dependencies>
<!-- Add NES repository -->
<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>
dependencies {
// Update Struts Dependencies
implementation "com.herodevs.nes.apache.struts:struts2-core:2.5.33-struts2-2.5.34"
implementation "com.herodevs.nes.apache.struts:struts2-spring-plugin:2.5.33-struts2-2.5.34"
}
// Add NES Repository
repositories {
maven {
url = uri(providers.gradleProperty("herodevs_nes_registry_url").get())
credentials {
username = providers.gradleProperty("herodevs_nes_registry_user").get()
password = providers.gradleProperty("herodevs_nes_registry_token").get()
}
authentication {
basic(BasicAuthentication)
}
}
mavenCentral()
}
pluginManagement {
repositories {
//...
maven {
url = uri(providers.gradleProperty("herodevs_nes_registry_url").get())
credentials {
username = providers.gradleProperty("herodevs_nes_registry_user").get()
password = providers.gradleProperty("herodevs_nes_registry_token").get()
}
authentication {
basic(BasicAuthentication)
}
}
mavenCentral()
//...
}
}
Run your build tool:
To verify your installation, check that:
- Dependencies are downloaded successfully
- No version conflicts are reported in your build
- Your application starts without errors
The direct download URLs for NES for Apache Struts packages follow this format:
Portion | Value | base_url | https://registry.nes.herodevs.com/maven/com/herodevs/nes/apache/struts/ |
package_name | struts2-core |
version | 2.5.33-struts2-2.5.34 |
filename | package_name + version + extension |
Example Link
https://registry.nes.herodevs.com/maven/com/herodevs/nes/apache/struts/struts2-core/2.5.33-struts2-2.5.34/struts2-core-2.5.33-struts2-2.5.34.pom