gudii9
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
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Too many questions wrapped in one post.
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?
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?this i know as above simply change war to jar or vice versa
<packaging>war</packaging>
when i change package to war then refresh i see Deployment Descripot created for that project.not clear on create stub part similar to web services?
when i right on above say generate stubs looks like stubs generaed. wonder why we need stubs?