Please answer these questions before submitting your issue.
### What version of gRPC are you using?
1.0.2
### What JVM are you using (`java -version`)?
1.8
### What did you do?
If possible, provide a recipe for reproducing the error.
nothing
### What did you see instead?
[ERROR]Failed to execute goal org.xolstice.maven.plugins:protobuf-maven-plugin:0.5.0:compile-custom(default) on project : Unable to copy the file to D:\codebase\api\target\protoc-plugins: D:\codebase\api\target\protoc-plugins\protoc-gen-grpc-java-1.0.2-windows-x86_64.exe
(The process cannot access the file because it is being used by another process)
1)Output of mvn --version
Apache maven 3.2.5
Maven home: C:\gaurav\apache-maven-3.2.5-binary
java version:1.8.0_25, vendor:Oracle corporation
java home: C:\program files\java\jdk1.8.0_25\jre
default local:en_GB, platform encoding:Cp1252
OS name:"windows 7", version:"6.1", arch:"amd64", family:"dos"
Whether you are running Maven inside an IDE, and in that case, which IDE
I am using intellij IDEA 2016 as well as command prompt and it gives same error on both.
It's not a public project but I can share plugin configuration with you.
Following are the protoc related things from my root pom.xml
<dependency>
<groupId> io.grpc </groupId>
<artifactId> grpc-protobuf </artifactId>
<version>${grpc.version}</version>
</dependency>
<plugin>
<groupId>org.xolstice.maven.plugins</groupId>
<artifactId>protobuf-maven-plugin</artifactId>
<version>0.5.0</version>
<extensions>true</extensions>
<executions>
<execution>
<goals>
<goal>compile</goal>
<goal>compile-custom</goal>
</goals>
<configuration>
<protocArtifact>com.google.protobuf:protoc:3.0.2:exe:${os.detected.classifier}</protocArtifact>
<pluginId>grpc-java</pluginId>
<pluginArtifact>io.grpc:protoc-gen-grpc-java:${grpc.version}:exe:${os.detected.classifier}</pluginArtifact>
</configuration>
</execution>
</executions>
</plugin>
Following things are from my other module's pom.xml
<dependency>
<groupId>io.grpc</groupId>
<artifactId>grpc-protobuf</artifactId>
<scope>provided</scope>
</dependency>
<plugin>
<groupId>org.xolstice.maven.plugins</groupId>
<artifactId>protobuf-maven-plugin</artifactId>
</plugin>