service.external.val/src/main/resources/META-INF/cia-service-external-val.xml
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:oxm="http://www.springframework.org/schema/oxm"
xmlns:context="http://www.springframework.org/schema/context"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans.xsd
http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context.xsd
http://www.springframework.org/schema/oxm
http://www.springframework.org/schema/oxm/spring-oxm.xsd">
<context:annotation-config />
<context:spring-configured />
<context:component-scan base-package="com.hack23.cia.service.external.val" />
<oxm:jaxb2-marshaller id="valPartierMarshaller" context-path="com.hack23.cia.model.external.val.partier.impl"/>
<oxm:jaxb2-marshaller id="valRiksdagMarshaller" context-path="com.hack23.cia.model.external.val.riksdagsvalkrets.impl"/>
<oxm:jaxb2-marshaller id="valLandstingMarshaller" context-path="com.hack23.cia.model.external.val.landstingvalkrets.impl"/>
<oxm:jaxb2-marshaller id="valKommunMarshaller" context-path="com.hack23.cia.model.external.val.kommunvalkrets.impl"/>
</beans>