This repository provides a trial setup for the Never-Ending Support (NES) version of Struts 2.5.33. The example apps are from OSS struts 2.5.33 example apps and have been updated to use NES trial products. This project contains both maven and gradle examples. It demonstrates how to use NES as a drop in replacement.
- Configure your local environment to use the HeroDevs NES registry.
- ~/.m2/settings.xml
<settings> <servers> <!-- Other server settings --> <server> <id>herodevs-nes-registry</id> <username>some@email.com</username> <password>some@email.com</password> </server> </servers> </settings>
- ~/.gradle/gradle.properties
herodevs_nes_registry_url=https://registry.nes.herodevs.com/maven herodevs_nes_registry_user=some@email.com herodevs_nes_registry_token=some@email.com
- Build the project. Gradle requires java 11 and maven requires java 8.
- Navigate to the build directory.
cd mavenorcd gradle. - For Maven: Run
./mvnw clean install. - For Gradle: Run
./gradlew clean build.
- Navigate to the build directory.
To verify that the NES products are being used, check the following:
For Maven run ./mvnw dependency:tree and look for struts2-2.5.35-trial in the output. Example output:
\- org.apache.struts:struts2-core:jar:2.5.33-struts2-2.5.35-trial:compile
For Gradle run ./gradlew dependencies and look for struts2-2.5.35-trial in the output. Example output:
+--- org.apache.struts:struts2-config-browser-plugin:2.5.33-struts2-2.5.35-trial
| \--- org.apache.struts:struts2-core:2.5.33-struts2-2.5.35-trial (*)
To run the sample application, follow these steps:
- build the Docker image
docker build . -t nes-struts2-apps - Run the Docker container
docker run --rm -p 8080:8080 nes-struts2-apps - Open the browser and navigate to
http://localhost:8080/