If you just build the module you’re working on but don’t recompile any of the 
dependent follow-on modules, or put the built NAR into the lib/ directory of 
the running NiFi instance and restart (depending on what you’ve changed), you 
will get errors similar to what you’re referencing. The safest & easiest way is 
to rebuild the whole project from the root. The faster but more complicated way 
is to determine what depends on what you’ve changed and rebuild and deploy 
things surgically. 


Andy LoPresto
[email protected]
[email protected]
He/Him
PGP Fingerprint: 70EC B3E5 98A6 5A3F D3C4  BACE 3C6E F65B 2F7D EF69

> On Mar 23, 2020, at 12:37 PM, Waleed Aibany <[email protected]> wrote:
> 
> Thank you all,
> 
> The build working fine.
> 
> I added a new code lines, then I just built module that I am working on by
> this command: [ mvn -T C2.0 clean install -Ddir-only], when I try to debug
> it to see my chnages, it shows me this on Breakpoint:
> ([image: skip.PNG] no executable code found at line). My changes not
> reflects on nifi canvas.
> 
> Thank you again :)
> 
> ‫في الاثنين، 23 مارس 2020 في 4:31 م تمت كتابة ما يلي بواسطة ‪Mike Thomsen‬‏
> <‪[email protected]‬‏>:‬
> 
>> Also, I think even in a multi-module build like NiFi just running "package"
>> will not make compiled dependencies available. Ergo the JAR file for the
>> Mongo client service won't be available to the NiFi modules that reference
>> it unless you switch to the install goal.
>> 
>> On Sun, Mar 22, 2020 at 6:08 PM Joe Witt <[email protected]> wrote:
>> 
>>> Muazma’s reply was spot on.  An additional point is to do the build from
>>> the root nifi source directory.
>>> 
>>> On Sun, Mar 22, 2020 at 5:41 PM Muazma Zahid <[email protected]> wrote:
>>> 
>>>> mvn -Pcontrib-check clean install  //for contribution check
>>>> mvn clean install –DskipTests //for skipping tests
>>>> 
>>>> //works on MAC OS
>>>> 
>>>> export MAVEN_OPTS="-Xms1024m -Xmx3076m -XX:MaxPermSize=256m"
>>>> 
>>>> mvn -T C2.0 clean install
>>>> More information at http://nifi.apache.org/quickstart.html
>>>> 
>>>> Thanks,
>>>> Muazma
>>>> 
>>>> On Sun, Mar 22, 2020 at 2:20 PM Waleed Aibany <[email protected]>
>>> wrote:
>>>> 
>>>>> Dear Nifi Team,
>>>>> 
>>>>> What is the maven command you use to build NiFi Source Code? Any
>>>> preferable
>>>>> one!. I face some issues when I try to run [mvn package], it is give
>> me
>>>>> this message as example "*The POM for
>>>>> 
>> org.apache.nifi:nifi-mongodb-client-service-api-nar:nar:1.12.0-SNAPSHOT
>>>> is
>>>>> missing, no dependency information available*".
>>>>> 
>>>>> Thank you
>>>>> 
>>>> 
>>> 
>> 

Reply via email to