itaross commented on issue #6701: Cannot create Pulsar-IO connector with nar 
maven plugin
URL: https://github.com/apache/pulsar/issues/6701#issuecomment-612372347
 
 
   > @itaross it seems like a bug. Do you want to contribute a fix?
   
   I am not quite sure it is a bug from Pulsar side.
   The Pulsar API expects to find "pulsar-io.yaml" inside the .nar archive, but 
when building it is not copied under target/classes/META-INF/services.
   From Ni-Fi plugin side I understand that they could not be aware that it is 
required to copy that pulsar-io.yaml. Yesterday I digged down a bit and I have 
found that on apache/nifi-maven there is this method: 
   
https://github.com/apache/nifi-maven/blob/b81db233a200847998a57ac9b1f5b6218ab66a1b/src/main/java/org/apache/nifi/extension/definition/extraction/ExtensionDefinitionFactory.java#L104
   I am not quite sure if it is referred to the target folder or resources 
under src.
   
   Anyway, the use of that maven goal resources:resources I came up with 
overcomes the missing file in the target directory.
   So a correct maven pipeline is:
   ```
   mvn clean compile resources:resources nifi-nar:nar
   ```
   
   I don't know if this is really a bug or not, if you can suggest one I can 
try to fix it.
   For now I think the first action is to update the documentation with the use 
of this resources plugin for maven.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to