Hi,

There are two ways to generate maven project structure:
First way:
Download the maven package, unzip it and set the maven path up to bin
enviornmnet variable.

Now once you are done with this you can generate the maven project
structure
through command prompt using below command:

mvn archetype:generate
-DgroupId=com.dns-DartifactId=hibernatemappingexample
-DarchetypeArtifactId=maven-archetype-quickstart -DinteractiveMode=false

Second way:
Install m2e plugin in eclipse to enable support of maven in eclipse.

To make a maven project structure:
File->project->maven project-> select the archetype you want, then provide
the group id and artifact id.

By default .m2 directory (contains all jar dependency) is created inside
C:\Users\reena.upadhyay location. You can change its location in
conf/settings.xml


I hope this answers your question :)


On Tue, Apr 22, 2014 at 7:22 AM, Mayank <[email protected]> wrote:

> Hi,
>
> I am new to Maven, so need some help !!
>
> I have started using by unzipping its binary.zip and setting the
> environment
> variables and got the mvn -version executed successfully but after that
> none
> of the command worked, probably because of setting.xml (not sure, please
> clarify).
> Then I got another idea and integrated the maven plugin in Eclipse Kepler
> and got that successful too. Then I tried to create jsf archetype project
> in
> eclipse, but I did not get the correct structure and facet option (though I
> also tried to change the builder and nature in .project file).
> Now I am confused, I want to use mvn plugin for eclipse and confusion is
> does successfully integrating the maven plugin with eclipse is enough or
> does env variable creation and unzipped maven folder are mandatory ?
>
> And since I noticed about .m2 folder after two different tries so I am not
> sure which one actually created it ?
>
> Kindly help urgently!!
>
>
>
> --
> View this message in context:
> http://maven.40175.n5.nabble.com/m2-folder-creation-tp5791740.html
> Sent from the Maven - Users mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>

Reply via email to