legacy-knowledge-base
Publicado Jul. 25, 0002

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

written-by

Laura Li

How To articles are not official guidelines or officially supported documentation. They are community-contributed content and may not always reflect the latest updates to Liferay DXP. We welcome your feedback to improve How To articles!

While we make every effort to ensure this Knowledge Base is accurate, it may not always reflect the most recent updates or official guidelines.We appreciate your understanding and encourage you to reach out with any feedback or concerns.

legacy-article

learn-legacy-article-disclaimer-text

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.

did-this-article-resolve-your-issue

legacy-knowledge-base