Link to home
Start Free TrialLog in
Avatar of gudii9
gudii9Flag for United States of America

asked on

maven project clean install and build and adding as war web plugin

Hi,

When right click on maven project from eclipse and give goal like below

clean install

what it does?

when i give like below

build
it says unknow command

how to build?
is install same as build?
where i can find all list of frequenctly used commmands from command prompt and also from eclipse.

how to add one other project(say xyz) as plugin into existing project (say abc)



i have to change below to war instead of jar inside the xyz pom file?
<packaging>war</packaging>
when i change package to war then refresh i see Deployment Descripot created for that project.
when i right on above say generate stubs looks like stubs generaed. wonder why we need stubs?
please advise
how-to-change-to-war2.png
how-to-change-to-war1.png
mavenBuild.png
ASKER CERTIFIED SOLUTION
Avatar of mccarl
mccarl
Flag of Australia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Too many questions wrapped in one post.
Avatar of gudii9

ASKER

how to build? is install same as build?
To build a Maven project you would probably use the "package" goal. That will compile the source code into class files and package those class files into a JAR/WAR. The install will do all that, but will also then copy that packaged file to the local Maven repository, usually a directory called ".m2" in your user directory or a root directory.

how .m2 in user directory and root directory are related or different?
Avatar of gudii9

ASKER

clean install

what it does?

when i give like below

build
it says unknow command

goal commands that we give using elipse edit configuration and other way from coomand prompt both are same? which one is preferred when?


how to add one other project(say xyz) as plugin into existing project (say abc)

how to do this?


i have to change below to war instead of jar inside the xyz pom file?
<packaging>war</packaging>
this i know as above simply change war to jar or vice versa

when i change package to war then refresh i see Deployment Descripot created for that project.
when i right on above say generate stubs looks like stubs generaed. wonder why we need stubs?
not clear on create stub part similar to web services?