David Li created ARROW-15199:
--------------------------------

             Summary: [Java] Update protobuf-maven-plugin to avoid "Text file 
busy" failure
                 Key: ARROW-15199
                 URL: https://issues.apache.org/jira/browse/ARROW-15199
             Project: Apache Arrow
          Issue Type: Bug
          Components: Java
            Reporter: David Li


Example:

{noformat}
Error:  Failed to execute goal 
org.xolstice.maven.plugins:protobuf-maven-plugin:0.5.0:compile (test) on 
project flight-core: An error occurred while invoking protoc. Error while 
executing process. Cannot run program 
"/arrow/java/flight/flight-core/target/protoc-plugins/protoc-3.17.3-linux-x86_64.exe":
 error=26, Text file busy -> [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] 
http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
Error:  
Error:  After correcting the problems, you can resume the build with the command
Error:    mvn <args> -rf :flight-core
{noformat}

Appears to be due to a JDK bug: 
https://github.com/xolstice/protobuf-maven-plugin/issues/34

A workaround was introduced in the 0.5.1 version of the Maven plugin we use but 
from the log above, we're on 0.5.0.



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

Reply via email to