xolstice / protobuf-maven-plugin

Maven Plugin that executes the Protocol Buffers (protoc) compiler
https://www.xolstice.org/protobuf-maven-plugin/
Other
236 stars 78 forks source link

-DclearOutputDirectory=false cannot be worked by 0.6.1 #112

Open alexanderqiu opened 1 year ago

alexanderqiu commented 1 year ago

mvn org.xolstice.maven.plugins:protobuf-maven-plugin:0.6.1:compile -DprotoSourceRoot=src/main/proto -DjavaOutputDirectory=src/main/java -DclearOutputDirectory=false -DprotocArtifact=com.google.protobuf:protoc:3.11.0:exe:osx-x86_64 -X

result

[DEBUG] Configuring mojo 'org.xolstice.maven.plugins:protobuf-maven-plugin:0.6.1:compile' with basic configurator --> [DEBUG] (f) attachDescriptorSet = false [DEBUG] (f) attachProtoSources = true [DEBUG] (f) checkStaleness = false [DEBUG] (f) clearOutputDirectory = true [DEBUG] (f) descriptorSetFileName = protobuf-maven-plugin-0.7.0-SNAPSHOT.protobin [DEBUG] (f) descriptorSetOutputDirectory = /Users/jianglai/work/protobuf-maven-plugin/target/generated-resources/protobuf/descriptor-sets [DEBUG] (f) forceMojoExecution = false [DEBUG] (f) hashDependentPaths = true [DEBUG] (f) includeDependenciesInDescriptorSet = false [DEBUG] (f) includeSourceInfoInDescriptorSet = false [DEBUG] (f) localRepository = id: local

ananta-code commented 1 year ago

@alexanderqiu is it resolved ..for me intermittently i am getting even though it is false by default i am getting error "unable to clean up temporary proto file directory" intermittently. could you please guide me

alexanderqiu commented 1 year ago

@alexanderqiu is it resolved ..for me intermittently i am getting even though it is false by default i am getting error "unable to clean up temporary proto file directory" intermittently. could you please guide me

The new code fixes the problem, but no package is released

alexanderqiu commented 1 year ago

@alexanderqiu is it resolved ..for me intermittently i am getting even though it is false by default i am getting error "unable to clean up temporary proto file directory" intermittently. could you please guide me

I used a new path to get around this problem, such as ${project.basedir}/src/main/build and then add into to make sure it is compiled

`

${project.basedir}/src/main/build

`