Change source directory in profile maven

前端 未结 2 953
感动是毒
感动是毒 2020-12-03 02:36

I want to use a different source directory for a specific maven profile, however, when I try to specify it in the profile definition I get this error:

Unreco         


        
2条回答
  •  鱼传尺愫
    2020-12-03 03:08

    See Maven model, it is not allowed to define a sourceDirectory within a profile. The only thing you can do is specify the sourceDirectory within the plugin configuration, assuming it is available.

提交回复
热议问题