RE: RE: build failure on a just created Liferay theme module project

txapeldot ., modified 3 Years ago. Junior Member Posts: 91 Join Date: 1/15/15 Recent Posts

Hi all.

I've just created a Liferay Theme module project, and the moment I try to build the project I've get the error described below. Obvioulsy, it fails because the file  build/buildTheme/css/_custom.scss doesn´t exist but it should have been downloaded during the build process, as it is stated in the build.gradle file.

I've been googling for some similar issue but I didn't find any helpful case. I'd really appreciate some help.

Backgroung:

Liferay CE 7.4 ga1 + Liferay Developer Studio 3.9.3-ga4

 

Parsed /css/clay.scss in 17734ms
Parsed /css/custom/custom.scss in 6ms
Exception in thread "main" com.liferay.sass.compiler.jsass.internal.JSassCompilerException: io.bit3.jsass.CompilationException: Error: File to import not found or unreadable: components/breadcrumb.
        on line 9 of build/buildTheme/css/_custom.scss
        from line 21 of build/buildTheme/css/main.scss
>> @import 'components/breadcrumb';   

    at com.liferay.sass.compiler.jsass.internal.JSassCompiler.compileFile(JSassCompiler.java:134)
    at com.liferay.css.builder.CSSBuilder._parseSass(CSSBuilder.java:395)
    at com.liferay.css.builder.CSSBuilder._parseSassFile(CSSBuilder.java:407)
    at com.liferay.css.builder.CSSBuilder.execute(CSSBuilder.java:166)
    at com.liferay.css.builder.CSSBuilder.main(CSSBuilder.java:80)
Caused by: io.bit3.jsass.CompilationException: Error: File to import not found or unreadable: components/breadcrumb.
        on line 9 of build/buildTheme/css/_custom.scss
        from line 21 of build/buildTheme/css/main.scss

    at io.bit3.jsass.adapter.NativeAdapter.compileFile(Native Method)
    at io.bit3.jsass.adapter.NativeAdapter.compile(NativeAdapter.java:44)
    at io.bit3.jsass.Compiler.compile(Compiler.java:124)
    at com.liferay.sass.compiler.jsass.internal.JSassCompiler.compileFile(JSassCompiler.java:115)
 

txapeldot ., modified 3 Years ago. Junior Member Posts: 91 Join Date: 1/15/15 Recent Posts

Am I asked a difficult question or is it just this Liferay Community is not supervised and mantained any longer by Liferay Experts??? It's so frustrating...

 

thumbnail
Russell Bohl, modified 3 Years ago. Expert Posts: 308 Join Date: 2/13/13 Recent Posts

I can't answer your specific quesiton, but I know there have been some issues around theme creation. For example, here's another community post

 

txapeldot ., modified 3 Years ago. Junior Member Posts: 91 Join Date: 1/15/15 Recent Posts

Thanks for your reply, but, unfortunately, the post you're referencing to is a case related to the Theme Generator plugin, which is one of the valid approaches for Theme creation within Liferay Theme development area. The other approach, the one I'm using, is related to Theme creation from Liferay Developer Studio.

Thanks anyway.

thumbnail
Russell Bohl, modified 3 Years ago. Expert Posts: 308 Join Date: 2/13/13 Recent Posts

ahh, soory, as you can see i'm not the expert you were looking for. i have very slight experience with the generator (it broke for me recently), and none with dev studio themes.

thumbnail
Russell Bohl, modified 3 Years ago. Expert Posts: 308 Join Date: 2/13/13 Recent Posts

I'll try to be more helpful, but no promises.

I've just tested this after updating my Liferay Developer Studio installation (Liferay IDE 3.9.5.202112170330-ga6)--I use the updatesite URL to install it into a plain Eclipse, I don't know if that's different.

1. New Liferay Workspace--Change the settings.gradle > workspace plugin version > 3.4.17 (was 3.4.12 by default)

2. New Liferay Module (theme template)

3. In Gradle tasks, choose Build

BUILD SUCCESSFUL

 

I failed building with the older workspace plugin version but my failures were not the same as yours.See below:

FAILURE: Build failed with an exception.

* What went wrong:
Could not determine the dependencies of task ':modules:test-theme:buildTheme'.
> Could not resolve all files for configuration ':modules:test-theme:parentThemes'.
   > Could not find com.liferay:com.liferay.frontend.theme.styled:.
     Required by:
         project :modules:test-theme
   > Could not find com.liferay:com.liferay.frontend.theme.unstyled:.
     Required by:
         project :modules:test-theme
   > Could not find com.liferay.portal:release.portal.bom.third.party:7.4.13.u6.
     Searched in the following locations:
       - https://repo.maven.apache.org/maven2/com/liferay/portal/release.portal.bom.third.party/7.4.13.u6/release.portal.bom.third.party-7.4.13.u6.pom
       - https://repository-cdn.liferay.com/nexus/content/groups/public/com/liferay/portal/release.portal.bom.third.party/7.4.13.u6/release.portal.bom.third.party-7.4.13.u6.pom
       - https://repository.liferay.com/nexus/content/groups/public/com/liferay/portal/release.portal.bom.third.party/7.4.13.u6/release.portal.bom.third.party-7.4.13.u6.pom
     Required by:
         project :modules:test-theme
   > Could not find com.liferay.portal:release.portal.bom:7.4.13.u6.
     Searched in the following locations:
       - https://repo.maven.apache.org/maven2/com/liferay/portal/release.portal.bom/7.4.13.u6/release.portal.bom-7.4.13.u6.pom
       - https://repository-cdn.liferay.com/nexus/content/groups/public/com/liferay/portal/release.portal.bom/7.4.13.u6/release.portal.bom-7.4.13.u6.pom
       - https://repository.liferay.com/nexus/content/groups/public/com/liferay/portal/release.portal.bom/7.4.13.u6/release.portal.bom-7.4.13.u6.pom
     Required by:
         project :modules:test-theme
   > Could not find com.liferay.portal:release.portal.bom.compile.only:7.4.13.u6.
     Searched in the following locations:
       - https://repo.maven.apache.org/maven2/com/liferay/portal/release.portal.bom.compile.only/7.4.13.u6/release.portal.bom.compile.only-7.4.13.u6.pom
       - https://repository-cdn.liferay.com/nexus/content/groups/public/com/liferay/portal/release.portal.bom.compile.only/7.4.13.u6/release.portal.bom.compile.only-7.4.13.u6.pom
       - https://repository.liferay.com/nexus/content/groups/public/com/liferay/portal/release.portal.bom.compile.only/7.4.13.u6/release.portal.bom.compile.only-7.4.13.u6.pom
     Required by:
         project :modules:test-theme

 

txapeldot ., modified 3 Years ago. Junior Member Posts: 91 Join Date: 1/15/15 Recent Posts

Could you please provide to me with the updatesite URL you used to update your Liferay Dev Studio?

I've found this one: https://releases.liferay.com/tools/ide/latest/stable, but when I attempt to do the installation I got the following error:

An error occurred while collecting items to be installed
session context was:(profile=DefaultProfile, phase=org.eclipse.equinox.internal.p2.engine.phases.Collect, operand=, action=).
No repository found containing: osgi.bundle,org.eclipse.epp.logging.aeri.core,2.0.7.v20180504-0806
No repository found containing: osgi.bundle,org.eclipse.epp.logging.aeri.ide,2.0.7.v20180504-0806

thumbnail
Russell Bohl, modified 3 Years ago. Expert Posts: 308 Join Date: 2/13/13 Recent Posts

I've not seen that error, and I also use https://releases.liferay.com/tools/ide/latest/stable/

thumbnail
Russell Bohl, modified 3 Years ago. Expert Posts: 308 Join Date: 2/13/13 Recent Posts

You can also try building it from the command line (install Blade CLI, or update it if you already have it):

In a test dir, run

1. blade init [workspace-name] creates the workspace (probably using the latest version of Liferay to determine its configuration)

1. blade create (you'll be asked to choose the template and then name the module)

1. From modules/theme-name, build it and see if it works.

txapeldot ., modified 3 Years ago. Junior Member Posts: 91 Join Date: 1/15/15 Recent Posts

I've managed to update Liferay Developer Studio to 3.9.5.202112170330-ga6 version. I've modified the 'settings.gradle'  file of the Liferay Workspace I'm using to create Liferay modules to point to the 3.4.17 version of the workspace plugin.

Nevertheless, the buildCSS gradle task is still failing (the same error as the one described in my first post). The content of the 'settings.gradle' file is as follows:

buildscript {
	dependencies {
		classpath group: "biz.aQute.bnd", name: "biz.aQute.bnd", version: "5.2.0"
		classpath(group: "com.liferay", name: "com.liferay.gradle.plugins.workspace", version: "3.4.17") {
			exclude group: "biz.aQute.bnd", module: "biz.aQute.bnd"
		}
		classpath group: "net.saliman", name: "gradle-properties-plugin", version: "1.4.6"
	}
	repositories {
		maven {
			url "https://repository-cdn.liferay.com/nexus/content/groups/public"
		}
		maven {
			url "https://repository.liferay.com/nexus/content/groups/public"
		}
	}
}
apply plugin: "net.saliman.properties"
apply plugin: "com.liferay.workspace"

 

No clue about what's going on...

thumbnail
Russell Bohl, modified 3 Years ago. Expert Posts: 308 Join Date: 2/13/13 Recent Posts

Can you update the gradle.properties file in your workspace to a newer 7.4?

liferay.workspace.product = dxp-7.4-u6