I'm creating a maven project using command
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?
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.
All things are lawful, but not all things are profitable.
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.
Bjoke: A "Bully Joke". A Statement or action made with malicious intent - unless challenged. At which point it magically transforms into "I was just funnin'" or "What's the matter, can't take a joke?"