Error Message 'Invalid Code Length Set' When Creating a Theme Using Maven in LDS

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

  1. Navigate to File > New > Liferay Module Project
  2. Enter Project Name, select Build Type > Maven, Project Template Name > Theme
  3. Click Finish

Resolution

Status: Workaround Available 

  1. 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/
  2. Remove all of the contents in that folder.
  3. 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.

¿Fue útil este artículo?
Usuarios a los que les pareció útil: 0 de 0