Two questions about generating JAXB objects.
What is the difference when the Jaxb is configured as shown in the two examples.
Using Maven
<plugin>
<groupId>org.jvnet.jaxb2.maven2</groupId>
<artifactId>maven-jaxb2-plugin</artifactId>
<executions>
<execution>
<goals>
<goal>generate</goal>
</goals>
</execution>
</executions>
<configuration>
<schemaDirectory>src/main/webapp/WEB-INF/schemas</schemaDirectory>
</configuration>
</plugin>
Using Spring configuration file
<bean id="marshaller" class="org.springframework.oxm.jaxb.Jaxb2Marshaller">
<property name="contextPath" value="org.springframework.ws.samples.mtom.schema"/>
<property name="mtomEnabled" value="true"/>
</bean>
Do the above two configuration achieve the same thing?
The second question is how do i enable MTOM using the Maven configuration method?