# Maven doesn't detect generateByaccs

**URL:** <https://forum.ripe.net/t/maven-doesnt-detect-generatebyaccs/350>\
**Category:** Uncategorized\
**Tags:** ripe-database\
**Created:** [12 January 2023 12:32 UTC](https://forum.ripe.net/t/maven-doesnt-detect-generatebyaccs/350 "2023-01-12T12:32:56Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![tchizhov.m](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.ripe.net/tchizhov.m/32/284_2.png) [@tchizhov.m](https://forum.ripe.net/u/tchizhov.m)\
**Post date:** [12 January 2023 12:32 UTC](https://forum.ripe.net/t/maven-doesnt-detect-generatebyaccs/350/1 "2023-01-12T12:32:56Z")

</div>

Hello!,

would you kindly advise me on the following,

i’m trying to launch the whois project ([GitHub - RIPE-NCC/whois: RIPE Database whois code repository](https://github.com/RIPE-NCC/whois#running-whois-from-within-intellij)), Windows 10 with Linux subsystem, but can’t make a build, on  
trying ‘mvn clean install’ i’m getting an error:  
“Cannot run program “src\main\parser\bin\generateByaccs” ():  
CreateProcess error=2, The system cannot find the file specified”  
while the module is there:

 ![generateByaccs](https://europe1.discourse-cdn.com/flex013/uploads/ripe/original/1X/f15f2c349dcaa812e88d1668c369b518ef275acd.png)

Also tried to follow the Help link, but can’t find some clue there neither.  
May be the problem is here:  
case $OSTYPE in  
darwin\*)  
YACC=‘src/main/parser/bin/yacc.macosx’  
;;  
linux\*)  
YACC=‘src/main/parser/bin/yacc.linux’  
;;  
\*)  
YACC=‘src/main/parser/bin/yacc’  
;;

The OS is Windows 10 with Linux subsystem (have installed Ubuntu), and there is notheing like yacc or yacc.windows in the project…

---

<div class="post-metadata">

**Author:** ![eshryane](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.ripe.net/eshryane/32/34_2.png) [@eshryane](https://forum.ripe.net/u/eshryane)\
**Post date:** [27 January 2023 15:48 UTC](https://forum.ripe.net/t/maven-doesnt-detect-generatebyaccs/350/2 "2023-01-27T15:48:38Z")

</div>

Hello,

I ran “mvn clean install” on the Whois project and also in the “whois-rpsl” module and it completed successfully in IntelliJ on my Mac laptop.

Yacc is required for building the parser classes in whois-rpsl, can you install yacc under Ubuntu? It’s part of the “bison” package.

Regards  
Ed Shryane  
RIPE NCC

---

<div class="post-metadata">

**Author:** ![Chris\_Harry](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.ripe.net/chris_harry/32/241_2.png) [@Chris\_Harry](https://forum.ripe.net/u/Chris_Harry)\
**Post date:** [16 May 2023 17:44 UTC](https://forum.ripe.net/t/maven-doesnt-detect-generatebyaccs/350/3 "2023-05-16T17:44:49Z")

</div>

check the execution phase of the BYACC/J plugin in your Maven “pom.xml”. Ensure that the plugin execution in define in the correct lifestyle phase where it should be executed.I.e if you want the ‘generateByaccs’ command to be executed while ‘generated-source’ phase[,](https://pintdow.com/pinterest-gifs-downloader/) make sure the plugin execution is configured.

---

<div class="post-metadata">

**Author:** ![verdyp](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.ripe.net/verdyp/32/170_2.png) [@verdyp](https://forum.ripe.net/u/verdyp)\
**Post date:** [27 May 2023 22:50 UTC](https://forum.ripe.net/t/maven-doesnt-detect-generatebyaccs/350/4 "2023-05-27T22:50:21Z")

</div>

Likely caused by tab characters in the expected filename, whereas your local filesystem (NTFS?) uses spaces ?

---

<div class="post-metadata">

**Author:** ![tchizhov.m](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.ripe.net/tchizhov.m/32/284_2.png) [@tchizhov.m](https://forum.ripe.net/u/tchizhov.m)\
**Post date:** [30 May 2023 11:07 UTC](https://forum.ripe.net/t/maven-doesnt-detect-generatebyaccs/350/5 "2023-05-30T11:07:37Z")

</div>

Dear All, Hi!

…  
I ran “mvn clean install” on the Whois project and also in the “whois-rpsl” module and it completed successfully in IntelliJ on my Mac laptop.  
…  
Yacc is required for building the parser classes in whois-rpsl, can you install yacc under Ubuntu? It’s part of the “bison” package.  
…  
check the execution phase of the BYACC/J plugin in your Maven “pom.xml”. Ensure that the plugin execution in define in the correct lifestyle phase where it should be executed.I.e if you want the ‘generateByaccs’ command to be executed while ‘generated-source’ phase, make sure the plugin execution is configured.  
…  
Likely caused by tab characters in the expected filename, whereas your local filesystem (NTFS?) uses spaces ?  
…

Have been returning to this topic many times, tried everything seems… including, reinstalled yacc several times, seem the plugin had been executed and tabs vs spaces - no, only spaces (ewhilte yep, NTFS). Finally got my laptop down, and he left me (broken by other reason)…

Than you very much all!, seem i’m unlucky here, with the Java, tried to write some light version in Python (at lest i have some exp with Python).

but now huge problem with DB - how to find all related objects, starting from the inet(6)num, i’ll make a separate post for it
