So from the command line what is the exact command? Thanks
On Wed, Dec 23, 2009 at 10:14 PM, Matt Raible <m...@raibledesigns.com> wrote: > You need to run "mvn install" on your core module before building your web > module. > > On Dec 23, 2009, at 7:56 PM, veena pandit <v.kri...@gmail.com> wrote: > >> I am trying to run the project archetypes from netbeans. I am getting >> the following errors. >> Some of the archetypes work well. But the appfuse applications have >> errors. >> This one is appfuse-basic-jsf-archetype. >> >> [ERROR]Transitive dependency resolution for scope: compile has failed >> for your project. >> [ERROR]Error message: Missing: >> [ERROR]---------- >> [ERROR]1) com.pandit:mavenproject1-core:jar:1.0-SNAPSHOT >> [ERROR] Try downloading the file manually from the project website. >> [ERROR] Then, install it using the command: >> [ERROR] mvn install:install-file -DgroupId=com.pandit >> -DartifactId=mavenproject1-core -Dversion=1.0-SNAPSHOT -Dpackaging=jar >> -Dfile=/path/to/file >> [ERROR] Alternatively, if you host your own repository you can deploy >> the file there: >> [ERROR] mvn deploy:deploy-file -DgroupId=com.pandit >> -DartifactId=mavenproject1-core -Dversion=1.0-SNAPSHOT -Dpackaging=jar >> -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id] >> [ERROR] Path to dependency: >> [ERROR] 1) com.pandit:mavenproject1-webapp:war:1.0-SNAPSHOT >> [ERROR] 2) com.pandit:mavenproject1-core:jar:1.0-SNAPSHOT >> [ERROR]---------- >> [ERROR]1 required artifact is missing. >> [ERROR]for artifact: >> [ERROR] com.pandit:mavenproject1-webapp:war:1.0-SNAPSHOT >> [ERROR]from the specified remote repositories: >> [ERROR] appfuse (http://static.appfuse.org/repository), >> [ERROR] java.net (http://download.java.net/maven/1/), >> [ERROR] central (http://repo1.maven.org/maven2) >> [ERROR]Group-Id: com.pandit >> [ERROR]Artifact-Id: mavenproject1-webapp >> [ERROR]Version: 1.0-SNAPSHOT >> [ERROR]From file: C:\Program Files\NetBeans >> 6.0.1\workspace\mavenproject1\web\pom.xml >> ------------------------------------------------------------------------ >> Any suggestions on how I can fix it. >> >> Thanks, >> >> Sonia. >> >> >> >> On Wed, Dec 23, 2009 at 11:19 AM, Ebrahim Pasbani <e.pasb...@gmail.com> >> wrote: >>> >>> 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 >>>> >>> >>> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: users-unsubscr...@appfuse.dev.java.net >> For additional commands, e-mail: users-h...@appfuse.dev.java.net >> > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@appfuse.dev.java.net > For additional commands, e-mail: users-h...@appfuse.dev.java.net > > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@appfuse.dev.java.net For additional commands, e-mail: users-h...@appfuse.dev.java.net