如何从自定义的Maven插件(mojo)创建一个Maven配置文件。

huangapple go评论137阅读模式
英文:

How to create a maven profile from custom maven mojo

问题

如何从自定义Maven插件中创建新的配置文件?

英文:

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?

答案1

得分: 1

不能在构建过程中创建配置文件。

如果有一些配置文件需要多个人使用,将它们放入公司的父POM中。

英文:

You cannot create profiles during the build.

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

huangapple
  • 本文由 发表于 2020年7月22日 22:42:04
  • 转载请务必保留本文链接:https://go.coder-hub.com/63036911.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定