You're right, in fact solution was in a comment of the issue you indicated :
"notice that you must configure includeEmptyDirs=true for maven-resources-plugin or the archetype jar won't contain the empty directory (then of course the project generated from the archatype can't contain it...)" With that configuration, everything works well :) Maybe this information could be added to the archetype plugin documentation though. Br, Jeremie olamy wrote > > weird as must be fixed see http://jira.codehaus.org/browse/ARCHETYPE-289 > and we have an it test for that. > Do you have any sample project to test that ? > > 2012/9/6 jerem <jeremie.bousquet@>: >> Hi, >> >> I'm using archetype:integration-test (version 2.2) to perform some >> integration tests on some archetypes I created and used. >> These archetypes create some empty folders under the source tree of >> generated projects. >> >> I've put under /src/test/resources/projects/<mytest>/reference the >> reference >> that should be compared with what is generated from the archetype. >> >> The problem is that when this reference is copied under >> /target/test-classes/projects/<mytest>/reference, empty folders are not >> taken into account. When this reference is compared with >> /target/test-classes/projects/<mytest>/project, the integration-test goal >> fails, considering that some folders are missing from the reference. >> >> - can this be considered an issue of the archetype:integration-test goal >> ? >> - is there any workaround ? (apart from removing empty folders from the >> archetype generation of course) >> >> Thanks, >> Jeremie >> >> >> >> -- >> View this message in context: >> http://maven.40175.n5.nabble.com/Testing-with-archetype-integration-test-for-archetypes-producing-empty-folders-tp5720467.html >> Sent from the Maven - Users mailing list archive at Nabble.com. >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: [email protected] >> For additional commands, e-mail: [email protected] >> > > > > -- > Olivier Lamy > Talend: http://coders.talend.com > http://twitter.com/olamy | http://linkedin.com/in/olamy > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > -- View this message in context: http://maven.40175.n5.nabble.com/Testing-with-archetype-integration-test-for-archetypes-producing-empty-folders-tp5720467p5720645.html Sent from the Maven - Users mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
