newur commented on a change in pull request #35:
URL: https://github.com/apache/maven-archetype/pull/35#discussion_r663360146
##########
File path:
archetype-common/src/main/java/org/apache/maven/archetype/common/util/PomUtils.java
##########
@@ -79,6 +83,13 @@ public static boolean addNewModule( String artifactId,
Reader fileReader, Writer
dbf.setXIncludeAware( false );
dbf.setExpandEntityReferences( false );
+ InputStream inputStream =
PomUtils.class.getClassLoader().getResourceAsStream( "maven-4.0.0.xsd" );
Review comment:
Please check the
[example](https://issues.apache.org/jira/browse/ARCHETYPE-584?focusedCommentId=17008264&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#comment-17008264)
I provided. You will see that without the schema the output is not as expected.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]