Some times ago, I encountered a question on StackOverflow that caught my attention. This was about an error when Maven was called with the archetype goal. The message was saying that to use this goal the user had to execute the command from a directory where there was a POM file. I wondered how this could be as, the archetype goal is used to generate this file and all the project structure. Let’s see what was the error.