我想在我的maven項目中使用Google's GXP library。我是Maven的新手,並且因爲.jar在Maven存儲庫中不存在,所以遇到了很多麻煩。從我讀過的,我應該能夠在我的本地存儲庫中安裝jar,然後利用它。但是,我遇到了一些麻煩。任何人都知道我可能出錯了?如何手動將jar安裝到我的本地Maven存儲庫中?
PS C:\Documents and Settings\bmccann\Desktop> mvn install:install-file -Dfile=gxp-0.2.4-beta.jar -DgroupId=com.google -DartifactId=gxp -Dversion=0.2.4-BETA -Dpackaging=jar [INFO] Scanning for projects... [INFO] Searching repository for plugin with prefix: 'install'. [INFO] ------------------------------------------------------------------------ [ERROR] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Invalid task '.2.4-beta.jar': you must specify a valid lifecycle phase, or a goal in the format plugin:goal or pluginGroupId:pluginArtifactId:pluginVersi on:goal [INFO] ------------------------------------------------------------------------ [INFO] For more information, run Maven with the -e switch [INFO] ------------------------------------------------------------------------ [INFO] Total time:
做你嘗試把引號將'-Dfile = GXP-0.2.4-beta.jar'說法? – akuhn 2009-12-09 07:41:10