Please review this url http://www.waltercedric.com/java-j2ee-mainmenu-53/361-maven-build-system/1555-deploy-to-tomcat-6-using-maven.html It explains how to create deploy goal for automate deploying to tomcat. And don't use "install" goal. Let me know what happen.
Best Ebrahim On Wed, Dec 23, 2009 at 7:31 PM, veena pandit <v.kri...@gmail.com> wrote: > Once I import the project as a maven project into eclipse. I want to > build and deploy it. > But the maven build fails. From eclipse I am selecting run as maven > build and selecting a goal of "install" > I actually want to select the goal of "deploy" but it is not > available. How do I make this goal > available for the project. Please make suggestions as to what goal > types to use in order to build > and deploy the application. When I choose run as and try to deploy > the project on TOmcat I get a 404. > > This is the error message I get when I choose a goal of install: > [ERROR] Failed to execute goal > org.codehaus.mojo:appfuse-maven-plugin:2.1-SNAPSHOT:install > (default-cli) on project LogicModelModular: Doh! This plugin cannot be > run from a pom project, please run it from a jar or war project (i.e. > core or web). -> [Help 1] > > > Thanks in advance, > > Sonia > >