Details
-
Improvement
-
Status: Open
-
Minor
-
Resolution: Unresolved
-
Slider 0.90.2
-
None
-
Centos 6.5, Maven 3.2.5
Description
Now slider using protobuf for RPC, but the output directory is <output>${basedir}/src/main/java</output> in slider-core/pom.xml. That means the generated java code was been placed in the src directory.
I have seen the generated java code for protobuf in Hadoop, they put the code in build directory <output>${project.build.directory}/generated-sources/java</output>. And they put the compile-protoc in <plugin> not <profile> in the pom.xml.
I think the way Hadoop used is more reasonable. The code is generated by protobuf, not by ourselves.