cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Modulegen - Ant build failing for accelerator template

0 Likes
1,995

I am trying to run ant modulegen, but it is failing while trying to convert files in temp folder.

 java.util.regex.PatternSyntaxException: Illegal repetition near index 0
 ${YMODULE_TOKEN}(.*)
 ^

As ant build is failing, nothing appears in the custom folder. Hybris version is 6.6

Accepted Solutions (1)

Accepted Solutions (1)

0 Likes

Its an installation issue - just resolved that by unzipping Hybris zip on a new directory.

Answers (6)

Answers (6)

njoshi_gorilla
Discoverer

When you use the b2b_acc_plus installer recipe, the yacceleratorstorefront extension gets added to custom folder. This causes the following error to be generated when ‘ant modulegen’ command is run - java.util.regex.PatternSyntaxException: Illegal repetition near index 0 ${YMODULE_TOKEN}(.*) The fix seems to be to delete the yacceleratorstorefront from custom folder and also to remove it from localextensions.xml

siddhaarth22
Discoverer
0 Likes

This worked for me.

former_member681869
Discoverer
0 Likes

Worked for me too.

Former Member

I was also facing same issue. Now used ant modulegen -Dinput.module=b2baccelerator -Dinput.name=autoparts -Dinput.package=com.hybris.autoparts -Dinput.template=develop . Use b2baccelerator instead of accelerator for b2b installation. It solved my issue.

svintha
Explorer
0 Likes

Hi and @sumit try this , When I have tried this it started working for me

 ***ant modulegen -Dinput.module=accelerator -Dinput.name=training -Dinput.package=de.hybris.training -Dinput.template=develop***



svangra
Explorer
0 Likes

after installing the B2B recipe , delete the extension name='yb2bacceleratorstorefront' in the localextensions.xml and in custom file it will work fine. By doing this

Former Member
0 Likes

For B2B stores you should start with the B2C recipe and add the B2B extensions, instructions here: https://help.hybris.com/6.7.0/hcd/8acc8a5a86691014a20781b3f738213e.html

Former Member
0 Likes

i'm also facing same issue in 6.7. Did u found the solution ?? Because i unzip another directory but still facing same issue .

Former Member
0 Likes

i followed this steps unzip folder -> ant clean all -> install receipe -> ant modulegen ->add custom extension in local extension -> ant clean all -> start server -> open hac do initialization

Huskar
Participant
0 Likes

I think you are using 'b2baccelerator'. Use 'accelerator' to create your accelerator and then install b2b addon if you want b2b features.