Ok. 1) When you need to do something, you find the plugin you need. As always in open source, there's a jungle out there with many plugins where some do pretty much the same thing. When defining a project type (like 'jar') you get a default set of plugins bound to the Maven lifecycle. Extend that when needed. 2) groupId is like package structure. Have a look at some open source software that use Maven and you'll get the idea. artifactID is just that, the ID of your artifact (must be unique in the groupID defined). 3) what was the question? 4) A dependency is a artifact that your code depends on (compile time dependency, runtime dependency, etc). A plugin does a work for you. dependencyManagament is explained very well in online docs.
/Anders On Wed, Sep 23, 2009 at 09:40, maven apache <[email protected]> wrote: > Thanks for all the reply! > Actually, I have read the doucument in the maven web site ,the qucik start > and the understand maven in 5 min and so on , however this is just some > simple example like tony,and I am facing a complex application so I feel > confused. > The question I ask above is do what confusing at moment. > > 2009/9/23 Luca Li Greci <[email protected]> > > > 2009/9/23 maven apache <[email protected]> > > > > > I am new in using maven , so some basic problem confusing me: > > > 1 When I create a new maven project how do I know which plugin to use? > > > 2 the artifaceID and groupID respent what? > > > 3 I have not use ant or other build tool before,so the pom.xml is > stange > > to > > > me . > > > 4 what is the difference between the maven dependency and the plugin in > a > > > pom.xml,and what is the difference between the dependencies under the > tag > > > "dependencyManagement" and the dependencies under the tag "project"? > > > > > > > It's very good the introduction Maven in 5 minutes, > > > http://maven.apache.org/guides/getting-started/maven-in-five-minutes.html > > > > > > -- > > Victor Hugo wrote, “The future has many names: For the weak, it means the > > unattainable. For the fearful, it means the unknown. For the courageous, > it > > means opportunity.” > > >
