-
Notifications
You must be signed in to change notification settings - Fork 29
Replies: 1 comment · 6 replies
-
Please check the Java version on your local machine: java -version This project requires Java 8. |
Beta Was this translation helpful? Give feedback.
All reactions
-
Can you provide version of maven? mvn -version |
Beta Was this translation helpful? Give feedback.
All reactions
-
👍 1
-
Beta Was this translation helpful? Give feedback.
All reactions
-
Java used for Maven is Java 17. However, there is a problem. Please change it to Java 8. |
Beta Was this translation helpful? Give feedback.
All reactions
-
👍 1
-
I changed it but I'm getting the "Java heap size" error. PS C:\TestRepos\rocket-bi\rocket-bi-server> mvn package |
Beta Was this translation helpful? Give feedback.
All reactions
-
Checkout increase heap size for maven in here https://subscription.packtpub.com/book/cloud-and-networking/9781783986767/1/ch01lvl1sec09/configuring-the-heap-size Btw, you run cmd without test: mvn package -DskipTests |
Beta Was this translation helpful? Give feedback.
-
[INFO] Scanning for projects...
[WARNING]
[WARNING] Some problems were encountered while building the effective model for datainsider:rocket-bi-server:jar:1.0-SNAPSHOT
[WARNING] 'dependencies.dependency.(groupId:artifactId:type:classifier)' must be unique: com.microsoft.sqlserver:mssql-jdbc:jar -> duplicate declaration of version 9.2.1.jre8 @ line 496, column 21
[WARNING]
[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
[WARNING]
[WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
[WARNING]
[INFO]
[INFO] --------------------< datainsider:rocket-bi-server >--------------------
[INFO] Building rocket-bi-server 1.0-SNAPSHOT
[INFO] from pom.xml
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] --- scrooge:20.4.0:compile (thrift-sources) @ rocket-bi-server ---
[INFO] finding thrift files in dependencies
[INFO] finding thrift files in referenced (reactor) projects
[INFO] No thrift files to compile.
[INFO]
[INFO] --- resources:3.3.1:resources (default-resources) @ rocket-bi-server ---
[WARNING] Using platform encoding (Cp1254 actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] Copying 3 resources from conf to target\classes
[INFO] Copying 3 resources from sql to target\classes
[INFO] Copying 106 resources from src\main\resources to target\classes
[INFO]
[INFO] --- scala:3.2.0:add-source (scala-compile-first) @ rocket-bi-server ---
[INFO] Add Source directory: C:\TestRepos\rocket-bi\rocket-bi-server\src\main\scala
[INFO] Add Test Source directory: C:\TestRepos\rocket-bi\rocket-bi-server\src\test\scala
[INFO]
[INFO] --- scala:3.2.0:compile (scala-compile-first) @ rocket-bi-server ---
[WARNING] Expected all dependencies to require Scala version: 2.12.12
[WARNING] com.twitter:finatra-http_2.12:20.5.0 requires scala version: 2.12.8
[WARNING] Multiple versions of scala libraries detected!
[WARNING] Zinc server is not available at port 3030 - reverting to normal incremental compile
[INFO] Using incremental compilation
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 7.450 s
[INFO] Finished at: 2023-10-18T12:54:38+03:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal net.alchim31.maven:scala-maven-plugin:3.2.0:compile (scala-compile-first) on project rocket-bi-server: Execution scala-compile-first of goal net.alchim31.maven:scala-maven-plugin:3.2.0:compile failed
: Cannot invoke "java.lang.CharSequence.length()" because "this.text" is null -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginExecutionException
Beta Was this translation helpful? Give feedback.
All reactions