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