This article documents a known issue where creating a theme using Maven in LDS may result in an error message: Invalid code length set.
The root cause is that some dependencies are not downloaded completely. This article describes a workaround to resolve this error.
Steps to Reproduce
- Navigate to File > New > Liferay Module Project
- Enter Project Name, select Build Type > Maven, Project Template Name > Theme
- Click Finish
Resolution
Status: Workaround Available
- Please check the following directories for
.sha1
files. If those files have some in progress status, it means they should be downloaded again./home/username/.m2/repository/com/liferay/com.liferay.frontend.theme.unstyled/
- Remove all of the contents in that folder.
- In the developer studio, right-click on the theme and select Maven > Update Project. An alternative approach is using Terminator to run mvn clean package.
Additional Information
See IDE-3540 for more information on the reported bug.