apache / incubator-livy

Apache Livy is an open source REST interface for interacting with Apache Spark from anywhere.
https://livy.apache.org/
Apache License 2.0
890 stars 602 forks source link

Build fails when using -Pscala-2.12 #422

Open mvanderlee opened 1 year ago

mvanderlee commented 1 year ago

Build fails on assembly module due to scala-2.11 dependencies. I think this is due to the ${scala.binary.version} being used in the modules sections, and it's populated before the profiles are loaded. When I ensure that scala-2.12 is the default in the <properties> then it works fine.

javiroman commented 7 months ago

The same problem, more information about the error here:

$ podman run --rm -it -v $(pwd):/workspace -v $HOME/.m2:/root/.m2 livy-ci mvn clean package -Pscala-2.12 -Pspark3 -DskipTests -DskipITs -Dmaven.javadoc.skip=true

[...]
[INFO] livy-server ........................................ SUCCESS [ 37.986 s]                                                                   
[INFO] livy-assembly ...................................... FAILURE [  0.065 s]                                                                   
[INFO] livy-client-http ................................... SKIPPED                                                                               
[INFO] livy-scala-api-parent .............................. SKIPPED                                                                               
[INFO] livy-scala-api_2.12 ................................ SKIPPED                                                                               
[INFO] livy-integration-test .............................. SKIPPED                                                                               
[INFO] livy-coverage-report ............................... SKIPPED                                                                               
[INFO] livy-examples ...................................... SKIPPED                                                                               
[INFO] livy-python-api .................................... SKIPPED                                                                               
[INFO] ------------------------------------------------------------------------                                                                   
[INFO] BUILD FAILURE                                                                                                                              
[INFO] ------------------------------------------------------------------------                                                                   
[INFO] Total time: 01:34 min                                                                                                                      
[INFO] Finished at: 2024-04-20T08:44:36+00:00                                                                                                     
[INFO] Final Memory: 212M/3879M                                                                                                                   
[INFO] ------------------------------------------------------------------------                                                                   
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-remote-resources-plugin:1.5:process (process-resource-bundles) on project livy-assem
bly: Failed to resolve dependencies for one or more projects in the reactor. Reason: Missing:                                                     
[ERROR] ----------                                                                                                                                
[ERROR] 1) org.apache.livy:livy-core_2.11:jar:0.9.0-incubating-SNAPSHOT  
[...]