Open cbornet opened 2 years ago
Have a question: If all dependency scope is provided, My test result is that there will be a jar package(function itself).
@gaozhangmin @cbornet cc
The issue had no activity for 30 days, mark with Stale label.
@shibd Is that the NAR built in pulsar-functions-api-examples-builtin
? In that case, the artifact pulls pulsar-functions-api-examples
as a dependency. This is not the way people generally build a NAR.
The issue had no activity for 30 days, mark with Stale label.
Describe the bug In several parts of the code (
org.apache.pulsar.common.nar.FileUtils
,NarClassLoader
, ...), the type of the archive (NAR or JAR) is detected by looking at the existence of theMETA-INF/bundled-dependencies
directory. But this directory doesn't necessarily exist in a NAR archive. For instance, if all the dependencies of the artifact are set asprovided
because they already exist in Pulsar. In that case the archive gets wrongly detected as a JAR.To Reproduce Steps to reproduce the behavior:
Write pom including nifi-nar-maven-plugin
META-INF/bundled-dependencies
directoryExpected behavior Another way to detect if the archive is a NAR should be used. Eg. checking if the
MANIFEST.MF
file contains the stringNar-Id: