Legacy Knowledge Base
Published Jul. 2, 2025

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

You are viewing an article from our legacy "FastTrack" publication program, made available for informational purposes. Articles in this program were published without a requirement for independent editing or verification and are provided"as is" without guarantee.

Before using any information from this article, independently verify its suitability for your situation and project.

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