Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

-DclearOutputDirectory=false cannot be worked by 0.6.1 #112

Open
alexanderqiu opened this issue Mar 7, 2023 · 3 comments
Open

-DclearOutputDirectory=false cannot be worked by 0.6.1 #112

alexanderqiu opened this issue Mar 7, 2023 · 3 comments

Comments

@alexanderqiu
Copy link

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
Copy link

@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
Copy link
Author

@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
Copy link
Author

@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

<build> <sourceDirectory>${project.basedir}/src/main/build</sourceDirectory> </build>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants