From: Vladimir G. <vga...@ne...> - 2009-12-14 19:02:32
|
On Dec 11, 2009, at 8:00 PM, youjun guo wrote: > Alternative solution is run "maven package" on the project from your > eclipse to build the war file then copy the treebase-web.war to your > tomcat webapp directory, then restart the tomcat if you didn't set > the autodeploy. On the treebase-web project, I did Run As > m2 Maven Package. This failed due to the missing mesquite dependency -- see the partial log below. I see that the dependency on mesquite is commented out from treebase-core/pom.xml -- any idea why's the build failure then? --Vladimir Downloading: http://snapshots.maven.codehaus.org/maven2/mesquite/mesquite/2.6+SNAPSHOT/mesquite-2.6+SNAPSHOT.jar [ERROR] Transitive dependency resolution for scope: compile has failed for your project. Error message: Missing: ---------- 1) mesquite:mesquite:jar:2.6+SNAPSHOT Try downloading the file manually from the project website. Then, install it using the command: mvn install:install-file -DgroupId=mesquite - DartifactId=mesquite -Dversion=2.6+SNAPSHOT -Dpackaging=jar -Dfile=/ path/to/file Alternatively, if you host your own repository you can deploy the file there: mvn deploy:deploy-file -DgroupId=mesquite -DartifactId=mesquite -Dversion=2.6+SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file - Durl=[url] -DrepositoryId=[id] Path to dependency: 1) org.cipres.treebase:treebase-web:war:1.0-SNAPSHOT 2) org.nexml.model:nexml:jar:1.5-SNAPSHOT 3) mesquite:mesquite:jar:2.6+SNAPSHOT ---------- 1 required artifact is missing. for artifact: org.cipres.treebase:treebase-web:war:1.0-SNAPSHOT from the specified remote repositories: Maven Snapshots (http://snapshots.maven.codehaus.org/maven2), m2.remote.repos (http://treebase.sourceforge.net/maven2/), central (http://repo1.maven.org/maven2), m2.nexml.repos (http://nexml-dev.nescent.org/.m2/repository/), repository.jboss.org (http://repository.jboss.org/maven2), maven2 (http://repo1.maven.org/maven2) Group-Id: org.cipres.treebase Artifact-Id: treebase-web Version: 1.0-SNAPSHOT From file: /Users/vgapeyev/Work/TreeBase/EclipseMaven/treebase/ treebase-web/pom.xml [INFO] ------------------------------------------------------------------------ [INFO] For more information, run with the -e flag [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILED [INFO] ------------------------------------------------------------------------ [INFO] Total time: 1 minute 11 seconds [INFO] Finished at: Mon Dec 14 10:18:21 EST 2009 [INFO] Final Memory: 2M/18M [INFO] ------------------------------------------------------------------------ |