Can a Battle Oracle take the Marshall dedication?

When an Oracle chooses the Battle mystery, they become trained in all martial weapons belonging to a chosen weapon group (e.g. Sword, Axe).

A requirement of the Marshall dedication is that the character is ‘trained in martial weapons’.

Is the Oracle therefore eligible to take the dedication, or would they first need to take the Weapon Proficiency general feat?