Issue
- When leveraging Liferay Developer Studio / IDE to build Liferay 2025.Q1.3, my build fails with indications that Tomcat is not able to download
- Example error:
-
Execution failed for task ':modules:demo-local-service-wrapper-test:setUpTestableTomcat'.
> Can't get http://archive.apache.org/dist/tomcat/tomcat-9/v9.0.90/bin/apache-tomcat-9.0.90.zip to <DESTINATION>
Environment
- Liferay 2025.Q1.3
- Liferay Developer Studio / IDE version 3.10.3
Resolution
-
The download of the Tomcat 9 zip file is necessary, because the Tomcat Manager is required by Arquillian, however it is not part of the default Liferay bundle.
-
During the
setUpTestableTomcattask (which is part of thetestIntegrationtask) the Tomcat zip is downloaded and the Tomcat Manager is copied from it to the Liferay bundle’s Tomcat installation. -
To resolve, make sure your network has access to download external files.
-
Alternatively, you can download the Tomcat zip and copy the
webapps/managerfolder to the{liferay_home}/tomcat/webappsfolder manually. This will solve the issue as thesetUpTestableTomcattask checks if thewebapps/managerfolder is present, and if not, it will go through the download/copy process.
Additional Information