Avatar of gudii9
gudii9
Flag 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
JavaJava EE

Avatar of undefined
Last Comment
gudii9

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
mccarl

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
gurpsbassi

Too many questions wrapped in one post.
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?
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?
All of life is about relationships, and EE has made a viirtual community a real community. It lifts everyone's boat
William Peck