I have to create a new Java project using Maven, But I have an already created project whose archetype I need to use for the new project as well. So how can I know about the archetype used in the existing project.
Thanks
Archetype configurationYou can see the packaging maven-archetype . You can customize build of your archetype here as with any other pom. However, there is another pom. xml file located under src\main\resources\archetype-resources which is the pom file of the generated project.
https://github.com/adobe/aem-project-archetype/tags You should be able to compare them and find the respective version. Most of the times, you can see the core component version changes and get the information right away.
Launch the New Project wizard. If no project is currently opened in IntelliJ IDEA, click New Project on the welcome screen. Otherwise, select File | New | Project from the main menu. Select Maven Archetype from the options on the left.
Actually, you can create an archetype very quickly and easily with a single command! Maven provides the ability to create an Archetype from an existing Maven project by running mvn archetype:create-from-project . It will analyze your project pom.
You can't. You could have two archetypes with the exact same structure so from the output structure of the project you wouldn't be able to tell. There isn't any metadata stored about it either.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With