How do I invoke two different profiles in one maven command? February 15, 2023 by Tarik Based on the documentation and discussion here, try separating profile names with a comma: mvn install -P Test1,Test2