Mohamed Hamdan
Mohamed Hamdan

Reputation: 177

How to create a maven profile from custom maven mojo

I'm creating my own custom maven mojo to manage custom profiles, I'm using project.setActiveProfiles(profiles); to create profiles but I think this method only to activate profiles not create them.

How I can create a new profile from custom maven mojo?

Upvotes: 0

Views: 105

Answers (1)

J Fabian Meier
J Fabian Meier

Reputation: 35853

You cannot create profiles during the build.

If some profiles are needed by several people, put them into the company parent POM.

Upvotes: 1

Related Questions