That’s a strange error. Does the module that declares the repository in the xml contain the aggregate as well? Perhaps the IDE is a bit over-eager in detecting classes on the classpath?
To inject the snapshotterTrigger without namespace support is not too hard. Just add
<property name="snapshotterTrigger"> <bean class="**org.axonfw...EventCountSnapshotterTrigger**"> <property name="**trigger**" value="**50**"/> <property name="**snapshotter**" ref="**refToSpringSnapshotterInstance**"/> </bean> </property>
to the definition of the repository. If multiple repositories have the same trigger configuration (count and snapshotter), they can reuse the same EventCountSnapshotterTrigger instance.