This is an automated email from the ASF dual-hosted git repository.
Philippus pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/pekko-grpc.git
The following commit(s) were added to refs/heads/main by this push:
new ab2f8705 Return more helpful error message when tmpdir is mounted
noexec maven (#682)
ab2f8705 is described below
commit ab2f8705b1894b91511bf2833ea3b4e48ec72cac
Author: Philippus Baalman <[email protected]>
AuthorDate: Tue Apr 21 10:44:32 2026 +0200
Return more helpful error message when tmpdir is mounted noexec maven (#682)
---
.../scala/org/apache/pekko/grpc/maven/AbstractGenerateMojo.scala | 6 ++++++
1 file changed, 6 insertions(+)
diff --git
a/maven-plugin/src/main/scala/org/apache/pekko/grpc/maven/AbstractGenerateMojo.scala
b/maven-plugin/src/main/scala/org/apache/pekko/grpc/maven/AbstractGenerateMojo.scala
index 06dfc2ee..b8324d65 100644
---
a/maven-plugin/src/main/scala/org/apache/pekko/grpc/maven/AbstractGenerateMojo.scala
+++
b/maven-plugin/src/main/scala/org/apache/pekko/grpc/maven/AbstractGenerateMojo.scala
@@ -270,6 +270,12 @@ abstract class AbstractGenerateMojo @Inject()
(buildContext: BuildContext) exten
BuildContext.SEVERITY_ERROR,
new RuntimeException("protoc compilation failed") with
NoStackTrace)
case Right(otherError) =>
+ if (otherError.contains("program not found or is not executable"))
{
+ sys.error(
+ s"Could not execute the automatically downloaded protoc to
compile protobuf files, check that the filesystem of " +
+ s"[${sys.props("java.io.tmpdir")}] is not mounted with the
'noexec' option, or specify an alternative directory allowing executables using
the Java " +
+ "system property java.io.tmpdir when executing maven.")
+ }
sys.error(s"protoc exit code $exitCode: $otherError")
}
} else {
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]