Apache Commons Lang
TuxCare's Endless Lifecycle Support (ELS) for Apache Commons Lang provides security patches and selected bug fixes that are integral to the stable operation of applications using Commons Lang.
Supported Versions
- Apache Commons Lang 2.4, 2.6
- Apache Commons Lang3 3.4, 3.8.1, 3.10, 3.12.0, 3.17.0
Installation
Prerequisites
- Maven or Gradle build tool installed
- Nexus repository access credentials (username and password) — contact sales@tuxcare.com
- To browse available artifacts, visit TuxCare Nexus and click Sign in in the top right corner. You may need to refresh the page after logging in.
Navigate to the build tool directory
- Windows
Maven: C:\Users\{username}\.m2 Gradle: C:\Users\{username}\.gradle- macOS
Maven: /Users/{username}/.m2 Gradle: /Users/{username}/.gradle- Linux
Maven: /home/{username}/.m2 Gradle: /home/{username}/.gradleConfigure credentials
For Maven, you may choose any valid
<id>value instead oftuxcare-registry, but the same value must be used in bothsettings.xmlandpom.xml.<?xml version="1.0" encoding="UTF-8"?> <settings xmlns="http://maven.apache.org/SETTINGS/1.1.0"> <servers> <server> <id>tuxcare-registry</id> <username>USERNAME</username> <password>PASSWORD</password> </server> </servers> </settings>Here
USERNAMEandPASSWORDare your Tuxcare credentials.Add the TuxCare repository
Add the TuxCare Apache Commons Lang repository and plugins to your build configuration.
<repositories> <repository> <id>tuxcare-registry</id> <url>https://nexus.repo.tuxcare.com/repository/els_java/</url> </repository> </repositories>- To fully switch from the official Apache Commons Lang repository, replace it with the TuxCare repository.
- To keep both, add TuxCare after the official one.
Update dependencies
Replace Apache Commons Lang dependencies with TuxCare-maintained versions. You can find artifact versions on Nexus — sign in with your TuxCare credentials.
Choose version:<dependencies> <dependency> <groupId>commons-lang</groupId> <artifactId>commons-lang</artifactId> <version>2.6-tuxcare.1</version> </dependency> </dependencies>Verify and build
Verify the setup:
mvn dependency:tree -DverboseBuild the project:
mvn clean installThe build tool should be able to identify and resolve dependencies from the TuxCare ELS for Apache Commons Lang repository.