byzer-lang icon indicating copy to clipboard operation
byzer-lang copied to clipboard

Set default profiles

Open lwz9103 opened this issue 3 years ago • 2 comments

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.

lwz9103 avatar Jul 01 '21 03:07 lwz9103

Dev Design

  1. 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

  2. customize profiles using command line we can use mvn clean install -Pscala-2.11 -Pspark-2.4.0 to customize our profiles

lwz9103 avatar Jul 01 '21 05:07 lwz9103

Test Evidence

  1. run mvn clean install -DskipTests image

  2. IDEA can recognize default profiles image

  3. using command line to build project mvn clean install -DskipTests -Pscala-2.11 -Pspark-2.4.0 -Ponline -Pstreamingpro-spark-2.4.0-adaptor image

lwz9103 avatar Jul 01 '21 06:07 lwz9103