Hi, I'd like to create my own archetype for multi-module projects. I took and customized the maven-archetype-j2ee-simple archetype at first.
I've got a problem when I try to add a java class file in one of the existing modules of my personnal. I added the file App.java in the following directory maven-archetype-j2ee-simple\src\main\resources\archetype-resources\projects\logging\src\main\java\. And I modified archetype.xml like that : <archetype> <id>j2ee</id> <sources> <source>projects/logging/src/main/java/App.java</source> <!-- *** THE LINE I ADDED *** --> </sources> <resources> ... <resource>projects/logging/pom.xml</resource> <resource>projects/logging/src/main/java/App.java</resource> ... </resources> </archetype> When I try to use my archetype, I've got this error : Embedded error: Template 'projects/logging/src/main/java/App.java' not in directory 'src/main/java' How to solve this problem ? Thanks. Olivier