The plugin is attempting to add the sample project as a module to your "my-app" project. It's failing because you can only add modules to pom projects. You should either generate the archetype in an empty directory, or the directory should house a parent pom.