How to activate profile by means of maven property?

前端 未结 7 1323
Happy的楠姐
Happy的楠姐 2020-12-05 10:25

I\'m trying to activate a maven profile using a property defined inside pom.xml:


  [...]
  
             


        
7条回答
  •  臣服心动
    2020-12-05 10:47

    • Add a directory ".mvn" to your project root.
    • Add a file ".mvn/jvm.config"
    • Insert "-Drun.it=false" into jvm.config.

    Now it should work. You can overwrite the "run.it" property in your pom.xml and it will be picked up for profile activation.

    I am not sure if this is a bug or a feature.

提交回复
热议问题