Maven Googlewebtoolkit2 插件:仅在必要时编译
由于编译 GWT 的东西非常昂贵(耗时),我只想在确实必要时才执行它(意味着源代码更改、工件版本更改、类文件丢失等)。 我已经使用了默认情况下停用的配置文件,然后可以通过设置配置文件显式激活它。
mvn install -DmyProfile
问题是有时手动激活会被忘记,所以我希望有某种自动检测机制。因此,如果需要,通过执行
mvn install
Maven 构建应该会自动编译 GWT 内容。 有可能这样做吗?
As compiling the GWT stuff is quite expensive (time consuming) I would like to only have it executed if really necessary (meaning source change, artifact version change, class files missing etc.).
I already work with a profile which is deactivated by default and then one can explicitly activate it by setting the profile.
mvn install -DmyProfile
The problem is that sometimes the manual activation gets forgotten so I would like to have some kind of automatic detection mechanism. So by executing
mvn install
the Maven build should automatically compile the GWT stuff if necessary.
Is there a possibility to do so?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论