问题描述
我想让我的插件需要许可证才能运行,类似于maven clover插件.有没有可以用来生成许可证的实用程序,也可以将其集成到插件中?
I would like to make my plugin require a license to run similar to the maven clover plugin. Is there some utility out there that I can generate licenses with that will also allow me to integrate that into the plugin?
我需要执行以下步骤.
- 修改现有插件以验证许可证文件
- 在线生成许可证文件,并存储信息以供以后检索.
谢谢,沃尔特
推荐答案
我不知道在Maven内部生成许可证的任何插件.
但是,如果您拥有许可证生成工具,例如 Padlock (商业产品),则它相对简单易行创建一个包装生成过程的插件.
I don't know of any plugins that generate licenses within a Maven build.
However if you have a license generation tool such as Padlock (commercial product), it is relatively straightforward to create a plugin that wraps the generation process.
挂锁具有这样的 API(pdf),并且有基本的创建Maven插件的指南,或者您可以查看此网站上的其他一些问题以开始使用
Padlock has a such an API (pdf), and there is a basic guide to creating Maven plugins, or you can look at some of the other questions on this site to get started
这篇关于Maven插件-如何要求许可证的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!