Reputation: 23
mvn -DgroupId=org.epseelon.samples -DartifactId=todolist archetype:create
Can anyone explain me the command here.
Upvotes: 2
Views: 1441
Reputation: 16935
In maven link text you define dependency on other packages/libraries with 3 parameters: groupId:artifactId:version
. For details see documentation. Packages are stored in central repository.
Maven is also known for plugins. Witch archetype:create
you call plugin archetype
and it's action create
(documentation).
The command mvn ...
creates a new project based on specified jar org.epseelon.samples:todolist
.
Upvotes: 0
Reputation: 41686
The tokens in this command line are:
And here is the explanation:
-D
means define a property of the given name, which is very generic. Almost everything can be handled and configured by it.groupId
is the namespace in which your projects live. You should choose your own internet domain for it, in reversed order. For example, I usually choose de.roland_illig.*
, replacing the *
with the actual project name. This will lead to (redundant) complete artifact names like de.roland_illig.todolist:todolist
but is useful if I later decide to split the project into several small libraries.artifactId
is the project name itself. When you build a .jar
file, the resulting file will have this name.archetype
is the name of a Maven plug-in.create
is an action that is defined by that plug-in.Upvotes: 2
Reputation: 69002
See the Getting started manual
org.eclipse.visualedit
as a group of artifacts, the it could have a model, a gui and some other modules packedUpvotes: 0