<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <title>7.1 Theme building with maven and sass errors</title>
  <link rel="self" href="https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=111475419" />
  <subtitle>7.1 Theme building with maven and sass errors</subtitle>
  <id>https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=111475419</id>
  <updated>2026-04-07T12:48:44Z</updated>
  <dc:date>2026-04-07T12:48:44Z</dc:date>
  <entry>
    <title>RE: 7.1 Theme building with maven and sass errors</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=114201167" />
    <author>
      <name>Ben Collins</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=114201167</id>
    <updated>2019-07-04T08:37:33Z</updated>
    <published>2019-07-04T08:37:33Z</published>
    <summary type="html">Thanks for the comment - i will try this myself shortly!</summary>
    <dc:creator>Ben Collins</dc:creator>
    <dc:date>2019-07-04T08:37:33Z</dc:date>
  </entry>
  <entry>
    <title>RE: 7.1 Theme building with maven and sass errors</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=114199455" />
    <author>
      <name>Alexander Wolf</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=114199455</id>
    <updated>2019-07-04T07:18:08Z</updated>
    <published>2019-07-04T07:18:08Z</published>
    <summary type="html">Got the same Problem in Liferay 7.2&lt;br /&gt;&lt;br /&gt;Edit: The Problem was resolved after upgrading Maven Plugin com.liferay.css.builder v 2.1.3 --&amp;gt; v 3.0.0</summary>
    <dc:creator>Alexander Wolf</dc:creator>
    <dc:date>2019-07-04T07:18:08Z</dc:date>
  </entry>
  <entry>
    <title>RE: 7.1 Theme building with maven and sass errors</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=112087316" />
    <author>
      <name>Ben Collins</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=112087316</id>
    <updated>2019-01-22T14:28:28Z</updated>
    <published>2019-01-22T14:28:28Z</published>
    <summary type="html">No-one else seeing this? </summary>
    <dc:creator>Ben Collins</dc:creator>
    <dc:date>2019-01-22T14:28:28Z</dc:date>
  </entry>
  <entry>
    <title>7.1 Theme building with maven and sass errors</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=111475418" />
    <author>
      <name>Ben Collins</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=111475418</id>
    <updated>2018-11-07T11:02:32Z</updated>
    <published>2018-11-07T11:02:32Z</published>
    <summary type="html">&lt;p&gt;I'm still trying to get theme development working with Liferay 7.1
  and Maven and whilst I've made some progress it's still not 100%, i'm
  having to hack a few things which I don;t like to do, so I'm looking
  for advice/pointers incase I am missing something. &lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;This is where I am at now:&lt;/p&gt;
&lt;ul&gt;
  &lt;li&gt;I have used the Maven archetype to build the project&lt;/li&gt;
  &lt;li&gt;I have updated the pom file to include the latest versions of the
    styled and unstyled themes through the dependencies section (by
    default the css builder includes the old 7.0 theme files, which
    generate css for AUI not Clay, as required by 7.1)&lt;/li&gt;&lt;/ul&gt;
&lt;p&gt;However the one stumbling block is still that I can't get the SASS
  files to build without me hacking a few things. &lt;/p&gt;
&lt;p&gt;This is the error I get:&lt;/p&gt;
&lt;pre&gt;
[ERROR] Failed to execute goal com.liferay:com.liferay.css.builder:2.1.3:build (default) on project mellon-public-theme: Error: It's not clear which file to import for '@import &amp;quot;bootstrap/bootstrap&amp;quot;'.
[ERROR] Candidates:
[ERROR] bootstrap/bootstrap.scss
[ERROR] bootstrap/bootstrap.css
[ERROR] Please delete or rename all but one of these files.
[ERROR] on line 4 of target/build-theme/css/clay/bootstrap.scss
[ERROR] &amp;gt;&amp;gt; @import &amp;quot;bootstrap/bootstrap&amp;quot;;&lt;/pre&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;Now I *can* get around this by adding my own copy of
  &amp;quot;/css/clay/bootstrap.scss&amp;quot; and editing it to change the
  import line to say @import &amp;quot;bootstrap/bootstrap.scss&amp;quot;; and
  this error goes away but:&lt;/p&gt;
&lt;ol&gt;
  &lt;li&gt;I don't want to have to hack files like this&lt;/li&gt;
  &lt;li&gt;i also have to do this for a number of files across the theme&lt;/li&gt;&lt;/ol&gt;
&lt;p&gt;I believe the issue is because the source has the file
  /css/clay/bootstrap/boostrap.scss, and because the file doesn't start
  with an underscore it will generate the file bootstrap.css during the
  sass build process. This then means we have two files called bootstrap
  (.css and .scss) which then causes the issue i am getting.&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;So... the questions:&lt;/p&gt;
&lt;ul&gt;
  &lt;li&gt;Am i missing something simple here?&lt;/li&gt;
  &lt;li&gt;Is anyone else seeing this?&lt;/li&gt;
  &lt;li&gt;Is this a bug in the theme source files or something on my side?&lt;/li&gt;&lt;/ul&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Ben&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;ps if anyone wants to see how i go the theme project to import the
  7.1 styled/unstyled resources just let me know...&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt; &lt;/p&gt;</summary>
    <dc:creator>Ben Collins</dc:creator>
    <dc:date>2018-11-07T11:02:32Z</dc:date>
  </entry>
</feed>
