• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

Choose maven archetype: Choose a number or apply filter

 
Bartender
Posts: 1248
86
Hibernate jQuery Eclipse IDE Angular Framework Spring MySQL Database AngularJS Tomcat Server Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm creating a maven project using command
mvn archetype:generate
after downloading some plugins It's prompted to choose maven archetype.

This is what It shows on command line terminal
Choose a number or apply filter (format: [groupId:]artifactId, case sensitive contains): 1265:                      

and 1265 says:
1265: remote -> org.apache.maven.archetypes:maven-archetype-quickstart (An archetype which contains a sample Maven project.)


But when I created Maven project using Eclipse Java EE IDE for Web Developers. Version: Oxygen.1a Release (4.7.1a) It shows a window ( you can see the screenshot added below ) having a checkbox to create a simple project. I've seen in almost all video tutorial they have chosen create simple project.

Here is what 1266 says:
1266: remote -> org.apache.maven.archetypes:maven-archetype-simple (An archetype which contains a simple Maven project.)

What is the difference between sample Maven project (1265) and simple Maven project (1266)? which one am I suppose to choose for trying a simple Java project?

SimpleProject.png
[Thumbnail for SimpleProject.png]
 
Sheriff
Posts: 7108
184
Eclipse IDE Postgres Database VI Editor Chrome Java Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
From what I can see, the difference between 1265 and 1266 is that the latter creates a site directory and in the pom, a reporting section.  I would say the reason to choose 1266 over 1265 is if you're going to do reporting in Maven.
 
Saloon Keeper
Posts: 22273
151
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is not Maven. If I am not mistaken, it is the Eclipse IDE.

That dialog allows you to create a blank Maven project. If you chose the "simple" checkbox, then the Eclipse Maven plugin constructs a basic Maven project. Probably a minumal POM, and src/main/java and perhaps some other basic directories.

If you do not choose the "simple" checkbox, then the Eclipse Maven plugin should be asking Maven (and possibly other resources) for pre-constructed archtetypes that it knows about and presenting them in a selection dialog. From that dialog you select the archetype you want and at that point Maven will invoke it the same way that it would have if you'd done so from the command line. Except that Eclipse will add a .project file and perhaps some other IDE housekeeping files to the archetypically-constructed project.

You can also construct a Maven project from the command line (with out without an archetype) and then make it Eclipse-friendly by running the command "mvn eclipse:eclipse". That will set up the IDE project files and all that's left is for your to tell Eclipse to adopt the project into the workspace the same way you'd import any other project not originally created with Eclipse.
 
My pie came with a little toothpic holding up this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
    Bookmark Topic Watch Topic
  • New Topic