Apache Tomcat
TuxCare's Endless Lifecycle Support (ELS) for Apache Tomcat provides security patches, and selected bug fixes, that are integral to the stable operation of applications running on these versions of Apache Tomcat core components such as Coyote, Catalina, Jasper etc.. These components have either reached their end of standard support from vendors or have reached End of Life (EOL). Our ELS for Apache Tomcat service is designed to provide solutions for organizations that are not yet ready to migrate to newer versions and that are seeking long-term stability for their legacy Apache Tomcat applications.
Connection to ELS for Apache Tomcat Repository
This guide outlines the steps needed to integrate the TuxCare ELS for Apache Tomcat repository into your Java application. The repository provides trusted Java libraries that can be easily integrated into your Maven as well as Gradle project.
Step 1: Get user credentials
You need username and password in order to use TuxCare ELS Apache Tomcat repository. Anonymous access is disabled. To receive username and password please contact sales@tuxcare.com.
Step 2: Create or Modify Your Build Tool Settings
Maven
- If you are using Maven as your build automation tool, you will need to make changes in your
${MAVEN_HOME}/settings.xml
file. If the file does not already exist in your Maven home directory (${MAVEN_HOME}
), you should create one. Open thesettings.xml
file with a text editor and include the following configuration:
<?xml version="1.0" encoding="UTF-8"?>
<settings xmlns="http://maven.apache.org/SETTINGS/1.1.0">
<servers>
<server>
<id>repository-id</id>
<username>${env.USERNAME}</username>
<password>${env.PASSWORD}</password>
</server>
</servers>
</settings>
- Set your credentials via the following environment variables:
export USERNAME=your-username
export PASSWORD=your-password
Here your-username
and your-password
are your credentials mentioned in the Step 1.
- You may choose an arbitrary allowed value instead of
repository-id
and use the same value in the following snippet from yourpom.xml
file:
<repositories>
<repository>
<id>repository-id</id>
<url>https://nexus.repo.tuxcare.com/repository/els_tomcat/</url>
</repository>
</repositories>
- An example of maven project you can find here. Do not forget to set the environment variables.
Gradle
- If you are using Gradle as your build automation tool, make sure to include the following configuration in your project setup:
repositories {
maven {
url = uri("https://nexus.repo.tuxcare.com/repository/els_tomcat/")
credentials {
username = findProperty('USERNAME')
password = findProperty('PASSWORD')
}
}
}
- Set your credentials via the following environment variables:
export ORG_GRADLE_PROJECT_USERNAME=your-username
export ORG_GRADLE_PROJECT_PASSWORD=your-password
Here your-username
and your-password
are your credentials mentioned in the Step 1.
- An example of gradle project you can find here. Do not forget to set the environment variables.
Verification
To confirm that the repository has been correctly established, include any library from the repository into your project and then run a build. The build tool you're using should be able to identify and resolve dependencies from the TuxCare ELS for Apache Tomcat repository.
Conclusion
You've successfully integrated the TuxCare ELS for Apache Tomcat repository into your project. You can now benefit from the secure and vetted Apache Tomcat libraries it provides.