Maven doesn't detect generateByaccs

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), 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:

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…

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

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 ?

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