如何解决Maven Thrift 插件适用于 Windows,但在 Linux 中出现错误权限被拒绝
我正在使用以下 maven 插件,该插件使用 Apache Thrift 编译器来执行 .thrift 文件并从中生成代码。
pom.xml :
<plugin>
<groupId>org.apache.thrift.tools</groupId>
<artifactId>maven-thrift-plugin</artifactId>
<version>${plugin.thrift.version}</version>
<configuration>
<thriftExecutable>${basedir}\compiler\thrift-0.13.0</thriftExecutable>
<generator>java</generator>
</configuration>
<executions>
<execution>
<id>thrift-sources</id>
<phase>generate-sources</phase>
<goals>
<goal>compile</goal>
</goals>
</execution>
<execution>
<id>thrift-test-sources</id>
<phase>generate-test-sources</phase>
<goals>
<goal>testCompile</goal>
</goals>
</execution>
</executions>
</plugin>
这在 Windows 中运行良好,但是当我在 Ubuntu 上运行它时,它给了我这个错误:
[ERROR] thrift failed output:
[ERROR] thrift failed error: /bin/sh: 1: /path/to/the/project/compiler/thrift-0.13.0: Permission denied
我尝试授予 /thrift-0.13.0/ 文件夹及其所有文件和目录的所有访问权限,但还是一样。
有人知道解决方法吗?谢谢!
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。