Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to know the which archetype an existing maven project is built on?

Tags:

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

like image 641
GuruKulki Avatar asked Nov 14 '13 16:11

GuruKulki


People also ask

How do I know my Maven project archetype?

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.

How do I find my archetype version?

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.

How do I check my Maven project archetype in IntelliJ?

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.

Which command generates an archetype from an existing Maven project?

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.


1 Answers

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.

like image 126
Hilikus Avatar answered Nov 08 '22 04:11

Hilikus