Reputation: 4310
When I use Maven archetype quickstart, it does not create src/main/resources folder and I have to create it myself. Why is it like this?
I want src/main/resources to be created automatically.
Is there a better archetype for this?
Upvotes: 7
Views: 8486
Reputation: 69
That happened to me too. The only solution that I've found was create the /src/main/resources
and also /src/main/java
for myself. Other parts of maven-archetype
works fine for me.
Upvotes: 0
Reputation: 281
This maven archetype is an enhanced combination of the quickstart and webapp maven archetypes:
https://github.com/sabram/maven-archetype-quickweb
The project it creates will include both src/main/java and src/main/resources as well as src/test and src/webapp...
Feel free to use and delete any folders you don't need, or fork the archetype for your own needs.
Upvotes: 4
Reputation: 10311
If you are frequently creating projects from quickstart but require a resources directory, then create your own custom archetype and install it to your repository (local cache or the one used by your team).
The source for the archetype, which you can check out anonymously and modify, is here:
http://svn.apache.org/viewvc/maven/archetypes/trunk/maven-archetype-quickstart/
Upvotes: 5