When creating ABI and BIN artifacts the path is based on the defined outputDirectory and the packageName. See JavaClassGeneratorMojo#createPath(String destinationPath):
In that case all Java classes will be generated in the folder target/generated-sources/java/org/sample/generated/ but all BIN files will be generated in the folder target/generated-sources/java/org.sample.generated/. As you can see org/sample/generated/ is not the used folder structure here but a single org.sample.generated/ folder has been created. It's the same for the ABI files.
Possible solution:
Just replace . in the createPath method by /.
When creating ABI and BIN artifacts the path is based on the defined
outputDirectory
and thepackageName
. SeeJavaClassGeneratorMojo#createPath(String destinationPath)
:Since the
packageName
is using.
as a separator the created path is always horrible.Concrete sample:
In the pom the following config for the plugin has been defined:
In that case all Java classes will be generated in the folder
target/generated-sources/java/org/sample/generated/
but all BIN files will be generated in the foldertarget/generated-sources/java/org.sample.generated/
. As you can seeorg/sample/generated/
is not the used folder structure here but a singleorg.sample.generated/
folder has been created. It's the same for the ABI files.Possible solution: Just replace
.
in thecreatePath
method by/
.