I am try to migrate my project from java7 to java8 , when building my project its failing because of the new ACCESS_EXTERNAL_SCHEMA restrictions introduced in java 8 , so the solution was to add additional parameter
java.xml.accessExternalSchema=all
And this works like a charm, though after reading the document I found that this parameter is set to all by default
https://docs.oracle.com/javase/tutorial/jaxp/properties/properties.html
here is my plugin configurations
<plugin>
<groupId>org.jvnet.jaxb2.maven2</groupId>
<artifactId>maven-jaxb2-plugin</artifactId>
<version>0.8.3</version>
<configuration>
<schemaDirectory>src\main\resources\xsd</schemaDirectory>
<schemaIncludes>
<include>fimi.xsd</include>
</schemaIncludes>
<generatePackage>com.test.message</generatePackage>
<writeCode>true</writeCode>
<readOnly>true</readOnly>
<removeOldOutput>true</removeOldOutput>
<forceRegenerate>true</forceRegenerate>
</configuration>
<executions>
<execution>
<phase>generate-sources</phase>
<goals>
<goal>generate</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>jaxws-maven-plugin</artifactId>
<version>1.12</version>
<executions>
<execution>
<id>generic-build-wsdl</id>
<goals>
<goal>wsimport</goal>
</goals>
</execution>
</executions>
</plugin>
So my question is why do i need to set this property while its by default set to all or I misunderstood the documents?