留言板
sass compiler not picking up all scss files
Hello
I am having trouble with the maven sass-compiler. It is only processing main.scss and aui.scss although I have multiple other scss-files in my source dir, including _custom.scss
I am adding my maven output, my source file structure regarding css as well as my pom.xml.
I am using liferay-ce-portal-tomcat-7.0-ga3
Best regards,
Andreas
I am having trouble with the maven sass-compiler. It is only processing main.scss and aui.scss although I have multiple other scss-files in my source dir, including _custom.scss
I am adding my maven output, my source file structure regarding css as well as my pom.xml.
I am using liferay-ce-portal-tomcat-7.0-ga3
Best regards,
Andreas
mvn clean install
[INFO] ------------------------------------------------------------------------
[INFO] Building Theme 0.2.14
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ myapp-theme ---
[INFO] Deleting /home/jenkins/workspace/PITPB Liferay 7/theme/target
[INFO]
[INFO] --- maven-dependency-plugin:2.8:copy (default) @ myapp-theme ---
[INFO] Configured Artifact: com.liferay:com.liferay.frontend.css.common:2.0.4:jar
[INFO] Configured Artifact: com.liferay:com.liferay.frontend.theme.styled:2.0.27:jar
[INFO] Configured Artifact: com.liferay:com.liferay.frontend.theme.unstyled:2.1.14:jar
[INFO] Copying com.liferay.frontend.css.common-2.0.4.jar to /home/jenkins/workspace/PITPB Liferay 7/theme/target/deps/com.liferay.frontend.css.common.jar
[INFO] Copying com.liferay.frontend.theme.styled-2.0.27.jar to /home/jenkins/workspace/PITPB Liferay 7/theme/target/deps/com.liferay.frontend.theme.styled.jar
[INFO] Copying com.liferay.frontend.theme.unstyled-2.1.14.jar to /home/jenkins/workspace/PITPB Liferay 7/theme/target/deps/com.liferay.frontend.theme.unstyled.jar
[INFO]
[INFO] --- com.liferay.portal.tools.theme.builder:1.1.4:build (default) @ myapp-theme ---
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ myapp-theme ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /home/jenkins/workspace/PITPB Liferay 7/theme/src/main/resources
[INFO]
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ myapp-theme ---
[INFO] No sources to compile
[INFO]
[INFO] --- com.liferay.css.builder:1.0.28:build (default-build) @ myapp-theme ---
Using native Sass compiler
[WARNING] Media expression uses unknown feature '-ms-high-contrast'
[WARNING] Media expression uses unknown feature '-ms-high-contrast'
[WARNING] Media expression uses unknown feature '-ms-high-contrast'
[WARNING] Media expression uses unknown feature '-ms-high-contrast'
[WARNING] Media expression uses unknown feature '-ms-high-contrast'
[WARNING] Media expression uses unknown feature '-ms-high-contrast'
Parsed /css/aui.scss in 1235ms
Parsed /css/main.scss in 242ms
[INFO]
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ myapp-theme ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /home/jenkins/workspace/PITPB Liferay 7/theme/src/test/resources
[INFO]
[INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) @ myapp-theme ---
[INFO] No sources to compile
[INFO]
[INFO] --- maven-surefire-plugin:2.12.4:test (default-test) @ myapp-theme ---
[INFO] No tests to run.
[INFO]
[INFO] --- maven-war-plugin:3.0.0:war (default-war) @ myapp-theme ---
[INFO] Packaging webapp
[INFO] Assembling webapp [myapp-theme] in [/home/jenkins/workspace/PITPB Liferay 7/theme/target/myapp-theme-0.2.14]
[INFO] Processing war project
[INFO] Copying webapp resources [/home/jenkins/workspace/PITPB Liferay 7/theme/src/main/webapp]
[INFO] Webapp assembled in [55 msecs]
[INFO] Building war: /home/jenkins/workspace/PITPB Liferay 7/theme/target/myapp-theme-0.2.14.war
[INFO]
file|grep css
./src/main/webapp/css
./src/main/webapp/css/aui.scss
./src/main/webapp/css/_custom.scss
./src/main/webapp/css/print.scss
./src/main/webapp/css/styles.scss
./src/main/webapp/css/main.scss
./src/main/webapp/css/common.css
./src/main/webapp/css/jquery-ui.scss
cat pom.xml
<!--?xml version="1.0" encoding="UTF-8"?-->
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemalocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelversion>4.0.0</modelversion>
<parent>
<artifactid>pit_pb</artifactid>
<groupid>com.innovidata</groupid>
<version>${pitpb.version}</version>
</parent>
<groupid>com.innovidata.pit_pb</groupid>
<artifactid>myapp-theme</artifactid>
<packaging>war</packaging>
<name>Theme</name>
<repositories>
<repository><!-- Required for generating thumbnails -->
<id>JBOSS</id>
<name>JBoss Repository</name>
<url>http://repository.jboss.org/maven2/</url>
</repository>
</repositories>
<build>
<plugins>
<plugin>
<groupid>com.liferay</groupid>
<artifactid>com.liferay.portal.tools.theme.builder</artifactid>
<version>${com.liferay.portal.tools.theme.builder.version}</version>
<executions>
<execution>
<phase>generate-resources</phase>
<goals>
<goal>build</goal>
<!-- <goal>build-thumbnail</goal> -->
</goals>
<configuration>
<diffsdir>${maven.war.src}</diffsdir>
<name>${project.artifactId}</name>
<outputdir>${project.build.directory}/${project.build.finalName}</outputdir>
<parentdir>${project.build.directory}/deps/com.liferay.frontend.theme.styled.jar</parentdir>
<parentname>_styled</parentname>
<templateextension>ftl</templateextension>
<unstyleddir>${project.build.directory}/deps/com.liferay.frontend.theme.unstyled.jar</unstyleddir>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupid>com.liferay</groupid>
<artifactid>com.liferay.css.builder</artifactid>
<version>${com.liferay.css.builder.version}</version>
<executions>
<execution>
<id>default-build</id>
<phase>compile</phase>
<goals>
<goal>build</goal>
</goals>
</execution>
</executions>
<configuration>
<docrootdirname>target/${project.build.finalName}</docrootdirname>
<outputdirname>/</outputdirname>
<portalcommonpath>target/deps/com.liferay.frontend.css.common.jar</portalcommonpath>
</configuration>
</plugin>
<plugin>
<artifactid>maven-dependency-plugin</artifactid>
<executions>
<execution>
<phase>generate-sources</phase>
<goals>
<goal>copy</goal>
</goals>
<configuration>
<artifactitems>
<artifactitem>
<groupid>com.liferay</groupid>
<artifactid>com.liferay.frontend.css.common</artifactid>
<version>${com.liferay.frontend.css.common.version}</version>
</artifactitem>
<artifactitem>
<groupid>com.liferay</groupid>
<artifactid>com.liferay.frontend.theme.styled</artifactid>
<version>${com.liferay.frontend.theme.styled.version}</version>
</artifactitem>
<artifactitem>
<groupid>com.liferay</groupid>
<artifactid>com.liferay.frontend.theme.unstyled</artifactid>
<version>${com.liferay.frontend.theme.unstyled.version}</version>
</artifactitem>
</artifactitems>
<outputdirectory>${project.build.directory}/deps</outputdirectory>
<stripversion>true</stripversion>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<artifactid>maven-war-plugin</artifactid>
<version>3.0.0</version>
<configuration>
<packagingexcludes>**/*.scss</packagingexcludes>
</configuration>
</plugin>
</plugins>
</build>
<dependencies>
<dependency>
<groupid>com.sun.media</groupid>
<artifactid>jai-codec</artifactid>
<version>1.1.3</version>
</dependency>
</dependencies>
<properties>
<com.liferay.css.builder.version>1.0.28</com.liferay.css.builder.version>
<com.liferay.frontend.css.common.version>2.0.4</com.liferay.frontend.css.common.version>
<com.liferay.frontend.theme.styled.version>2.0.27</com.liferay.frontend.theme.styled.version>
<com.liferay.frontend.theme.unstyled.version>2.1.14</com.liferay.frontend.theme.unstyled.version>
<com.liferay.portal.tools.theme.builder.version>1.1.4</com.liferay.portal.tools.theme.builder.version>
</properties>
</project>
Andrew Jardine,修改在6 年前。
RE: sass compiler not picking up all scss files
Liferay Legend 帖子: 2416 加入日期: 10-12-22 最近的帖子
I haven't been able to find any references to the error in the issue tracker -- but that doesn't mean anything.
Have you tried upgrading to the latest GA4? it has a lot of fixes in it -- perhaps it will solve your issue?
Have you tried upgrading to the latest GA4? it has a lot of fixes in it -- perhaps it will solve your issue?