Well, you have some odd spaces in both of your examples. For example, no space between "gwt" and "-", and a space between the "=" after version in the first example.
-- Bryan -----Original Message----- From: Kerry Sainsbury [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 19, 2007 5:15 PM To: [email protected] Subject: install:install-file demanding a valid lifecycle phase ... Hi Folks, I'm a Maven newbie (sorry!) and I can't figure out what I'm doing wrong with install:install-file using Maven 2.0.6 I'm trying to install a jar file from the GWT toolkit, on Windows XP, but keep getting told "Invalid task 'XXXXX': you must specify a valid lifecycle phase, or a goal in the format plugin:goal or pluginGroupId:pluginArtifactId:pluginVersion:goal", where XXXXX is whatever value I pass to the first -D parameter passed. eg: C:\work\snews2\snews-gwt>mvn install:install-file -DgroupId=com.google.gwt-DartifactId=gwt-servlet -Dversion= 1.4.10 -Dpackaging=jar -Dfile=gwt-servlet.jar [INFO] Scanning for projects... [INFO] Searching repository for plugin with prefix: 'install'. [INFO] ------------------------------------------------------------------------ [ERROR] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Invalid task 'com.google.gwt': you must specify a valid lifecycle phase, or a goal in the format plugin:goal or pluginGroupId:pluginArtifactId:pluginVersion:goal Even when I make up some dummy -D property, that too is used to generate the error: C:\work\snews2\snews-gwt>mvn install:install-file -Dmmm=77 -DgroupId= com.google. gwt -DartifactId=gwt-servlet -Dversion=1.4.10 -Dpackaging=jar -Dfile=gwt-servlet .jar [INFO] Scanning for projects... [INFO] Searching repository for plugin with prefix: 'install'. [INFO] ------------------------------------------------------------------------ [ERROR] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Invalid task '77': you must specify a valid lifecycle phase, or a goal in the format plugin:goal or pluginGroupId:pluginArtifactId:pluginVersion:goal [INFO] ------------------------------------------------------------------------ Does anybody have any idea at all? I've googled for Africa, but can't find anything sensible. Thanks, Kerry --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
