Less language is an extension of css and less4j compiles it into regular css. Less adds several dynamic features into css: variables, expressions, nested rules, and so on. Less was designed to be compatible with css and any correct css file is also correct less file.
[INFO] ------------------------------------------------------------------------
[INFO] Building less4j 1.17.2
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- antlr3-maven-plugin:3.5.2:antlr (run antlr) @ less4j ---
[INFO] ANTLR: Processing source directory /home/gil/rpmbuild/BUILD/less4j-less4j-1.17.2/src/main/antlr3
ANTLR Parser Generator Version 3.5.2
Output file /home/gil/rpmbuild/BUILD/less4j-less4j-1.17.2/target/generated-sources/antlr3/com/github/sommeri/less4j/core/parser/LessParser.java does not exist: must build /home/gil/rpmbuild/BUILD/less4j-less4j-1.17.2/src/main/antlr3/com/github/sommeri/less4j/core/parser/Less.g
com/github/sommeri/less4j/core/parser/Less.g
warning(200): com/github/sommeri/less4j/core/parser/Less.g:1531:19:
Decision can match input such as "{NEW_LINE, WS}" using multiple alternatives: 1, 2
As a result, alternative(s) 2 were disabled for that input
warning(200): com/github/sommeri/less4j/core/parser/Less.g:1532:29:
Decision can match input such as "{NEW_LINE, WS}" using multiple alternatives: 1, 2
As a result, alternative(s) 2 were disabled for that input
[INFO]
[INFO] --- build-helper-maven-plugin:1.9.1:add-source (add-source) @ less4j ---
[INFO] Source directory: /home/gil/rpmbuild/BUILD/less4j-less4j-1.17.2/target/generated-sources/antlr3 added.
[INFO]
[INFO] --- maven-resources-plugin:2.7:resources (default-resources) @ less4j ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 1 resource
[INFO] Copying 2 resources
[INFO]
[INFO] --- maven-compiler-plugin:3.5.1:compile (default-compile) @ less4j ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 292 source files to /home/gil/rpmbuild/BUILD/less4j-less4j-1.17.2/target/classes
The system is out of resources.
Consult the following stack trace for details.
java.lang.OutOfMemoryError: GC overhead limit exceeded
at com.sun.tools.javac.parser.JavaTokenizer.readToken(JavaTokenizer.java:686)
at com.sun.tools.javac.parser.Scanner.ensureLookahead(Scanner.java:102)
at com.sun.tools.javac.parser.Scanner.token(Scanner.java:95)
at com.sun.tools.javac.parser.JavacParser.peekToken(JavacParser.java:310)
at com.sun.tools.javac.parser.JavacParser.peekToken(JavacParser.java:306)
at com.sun.tools.javac.parser.JavacParser.term3(JavacParser.java:1249)
at com.sun.tools.javac.parser.JavacParser.term2(JavacParser.java:909)
at com.sun.tools.javac.parser.JavacParser.term1(JavacParser.java:880)
at com.sun.tools.javac.parser.JavacParser.term(JavacParser.java:836)
at com.sun.tools.javac.parser.JavacParser.term(JavacParser.java:816)
at com.sun.tools.javac.parser.JavacParser.parseExpression(JavacParser.java:779)
at com.sun.tools.javac.parser.JavacParser.variableInitializer(JavacParser.java:2291)
at com.sun.tools.javac.parser.JavacParser.variableDeclaratorRest(JavacParser.java:3035)
at com.sun.tools.javac.parser.JavacParser.variableDeclaratorsRest(JavacParser.java:3006)
at com.sun.tools.javac.parser.JavacParser.variableDeclarators(JavacParser.java:2989)
at com.sun.tools.javac.parser.JavacParser.blockStatement(JavacParser.java:2441)
at com.sun.tools.javac.parser.JavacParser.blockStatements(JavacParser.java:2337)
at com.sun.tools.javac.parser.JavacParser.block(JavacParser.java:2308)
at com.sun.tools.javac.parser.JavacParser.block(JavacParser.java:2322)
at com.sun.tools.javac.parser.JavacParser.parseStatement(JavacParser.java:2480)
at com.sun.tools.javac.parser.JavacParser.blockStatement(JavacParser.java:2391)
at com.sun.tools.javac.parser.JavacParser.parseStatementAsBlock(JavacParser.java:2356)
at com.sun.tools.javac.parser.JavacParser.parseStatement(JavacParser.java:2488)
at com.sun.tools.javac.parser.JavacParser.blockStatement(JavacParser.java:2391)
at com.sun.tools.javac.parser.JavacParser.blockStatements(JavacParser.java:2337)
at com.sun.tools.javac.parser.JavacParser.block(JavacParser.java:2308)
at com.sun.tools.javac.parser.JavacParser.block(JavacParser.java:2322)
at com.sun.tools.javac.parser.JavacParser.parseStatement(JavacParser.java:2480)
at com.sun.tools.javac.parser.JavacParser.blockStatement(JavacParser.java:2391)
at com.sun.tools.javac.parser.JavacParser.parseStatementAsBlock(JavacParser.java:2356)
at com.sun.tools.javac.parser.JavacParser.parseStatement(JavacParser.java:2484)
at com.sun.tools.javac.parser.JavacParser.blockStatement(JavacParser.java:2391)
[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] An unknown compilation problem occurred
[INFO] 1 error
[INFO] -------------------------------------------------------------
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Skipping less4j
[INFO] This project has been banned from the build due to previous failures.
[INFO] ------------------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 54.106 s
[INFO] Finished at: 2016-09-16T14:38:51+02:00
[INFO] Final Memory: 21M/910M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.5.1:compile (default-compile) on project less4j: Compilation failure
[ERROR] An unknown compilation problem occurred
[ERROR] -> [Help 1]
i tried with
export MAVEN_OPTS="-Xms1024m -Xmx1024m -XX:PermSize=128m -XX:MaxPermSize=384m"
OpenJDK Server VM warning: ignoring option PermSize=128m; support was removed in 8.0
OpenJDK Server VM warning: ignoring option MaxPermSize=384m; support was removed in 8.0
Error occurred during initialization of VM
Could not reserve enough space for 3170304KB object heap
with
export MAVEN_OPTS="-Xms1024m -Xmx3096m"
Error occurred during initialization of VM
Could not reserve enough space for 3170304KB object heap
and as last with
export MAVEN_OPTS="-Xms1024m -Xmx1024m"
hi i get:
i tried with export MAVEN_OPTS="-Xms1024m -Xmx1024m -XX:PermSize=128m -XX:MaxPermSize=384m" OpenJDK Server VM warning: ignoring option PermSize=128m; support was removed in 8.0 OpenJDK Server VM warning: ignoring option MaxPermSize=384m; support was removed in 8.0 Error occurred during initialization of VM Could not reserve enough space for 3170304KB object heap with export MAVEN_OPTS="-Xms1024m -Xmx3096m" Error occurred during initialization of VM Could not reserve enough space for 3170304KB object heap
and as last with export MAVEN_OPTS="-Xms1024m -Xmx1024m"
Apache Maven 3.3.9 (NON-CANONICAL_2016-04-07T23:15:34Z_mockbuild; 2016-04-08T01:15:34+02:00) Maven home: /usr/share/maven Java version: 1.8.0_102, vendor: Oracle Corporation Java home: /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.102-1.b14.fc24.i386/jre Default locale: it_IT, platform encoding: UTF-8 OS name: "linux", version: "4.7.3-200.fc24.i686", arch: "i386", family: "unix"
Regards Thanks in advance