我 win7 编译遇到这个错误,win2012 云服务器也是这个错误。
后面 win2012 删除了重装系统用 win2016 云服务器,里面就只安装 openjdk8u postgresql-12.2 git-2.25. apache-maven-3.6.3-bin 谷歌浏览器 好压 ,是纯净系统,编译还是遇到这错误。
但我还有另外一台云服务器 win2019 ,搞成 win2016 一样重装系统后只安装几个必要软件,编译全部通过了。
我重复编译是重启系统后 taskkill /f /im java.exe 才开始的,照样通不过这一部。
看这帖子,好像也没什么解决方法
[error] failed to execute goal org.xolstice.maven.plugins:protobuf-maven-plugin:0.5.0:compile (default) on project message: unable to copy the file to c:\thingsboard-3.2--bianyi\common\message\target\protoc-plugins: c:\thingsboard-3.2--bianyi\common\message\target\protoc-plugins\protoc-3.11.4-windows-x86_64.exe (另一个程序正在使用此文件,进程无法访问。) -> [help 1] [error] [error] to see the full stack trace of the errors, re-run maven with the -e switch. [error] re-run maven using the -x switch to enable full debug logging. [error] [error] for more information about the errors and possible solutions, please read the following articles: [error] [help 1] [error] [error] after correcting the problems, you can resume the build with the command [error] mvn -rf :message
[error] failed to execute goal org.xolstice.maven.plugins:protobuf-maven-plugin:0.5.0:compile-custom (default) on project message: unable to copy the file to c:\tb3.2\common\message\target\protoc-plugins: c:\tb3.2\common\message\target\protoc-plugins\protoc-gen-grpc-java-1.0.0-windows-x86_64.exe (另一个程序正在使用此文件,进程无法访问。) -> [help 1] [error] [error] to see the full stack trace of the errors, re-run maven with the -e switch. [error] re-run maven using the -x switch to enable full debug logging. [error] [error] for more information about the errors and possible solutions, please read the following articles: [error] [help 1] [error] [error] after correcting the problems, you can resume the build with the command [error] mvn -rf :message