且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

在Eclipse IDE中使用maven / m2e从.proto自动生成Java

更新时间:2021-08-20 01:50:22

for protobuf-行家-插件

for protobuf-maven-plugin

感谢sergei-ivanov在 https://github.com/xolstice/protobuf-maven-plugin/issues/16 ,它给了链接 https://github.com/trustin/os-maven-plugin#issues-with- eclipse-m2e-or-other-ides

Thanks to sergei-ivanov answer in https://github.com/xolstice/protobuf-maven-plugin/issues/16, that gave link https://github.com/trustin/os-maven-plugin#issues-with-eclipse-m2e-or-other-ides :

需要下载os-maven-plugin-xxxFinal.jar(您的pomx中的版本) .ml),并将其放入< ECLIPSE_HOME> / plugins 目录中。

One need to download os-maven-plugin-x.x.x.Final.jar (the version as in your pomx.ml) and put it into the <ECLIPSE_HOME>/plugins directory.

之后Eclipse将生成源包括在Maven-update项目之后...( Alt + F5 ),但不是在Project - > Build(或默认自动构建)后。还有在IDE开始它不会编译。

After that Eclipse will generate source on project clean, including after Maven -update project... (Alt+F5), but not after Project -> Build (or with default Build Automatically). Also on IDE start it will not compile.

是的,这是不合逻辑的:

Yes, that is illogical:

清理将生成和编译Java源

但是

项目 - Build不会。

PS提高了错误507412