byzer-lang
byzer-lang copied to clipboard
Set default profiles
I can not easily run maven clean install -DskipTests
in the project home to compile. Also If I want to debug in IDEA, I need to manually set up profiles like scala-2.11, spark-2.4.0, streamingpro-spark-2.4.0-adaptor, and others.
Dev Design
-
Set default profiles
<activation> <activeByDefault>true</activeByDefault> </activation>
profiles that activate by using activeByDefault will deactivate when using another way, like jdk, os, property or command line
-
customize profiles using command line we can use
mvn clean install -Pscala-2.11 -Pspark-2.4.0
to customize our profiles
Test Evidence
-
run
mvn clean install -DskipTests
-
IDEA can recognize default profiles
-
using command line to build project
mvn clean install -DskipTests -Pscala-2.11 -Pspark-2.4.0 -Ponline -Pstreamingpro-spark-2.4.0-adaptor