Grails Maven Plugin

can't execute mvn grails:install-plugin xxx

Details

  • Type: Sub-task Sub-task
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Not A Bug
  • Affects Version/s: None
  • Fix Version/s: None
  • Component/s: None
  • Labels:
    None

Activity

Hide
Ed Young added a comment -

This when I executed using the 1.0-SNAPSHOT of grails and the grails maven plugin:
mvn archetype:generate -DarchetypeGroupId=org.grails -DarchetypeArtifactId=grails-maven-archetype -DarchetypeVersion=1.0-SNAPSHOT -DarchetypeRepository=http://snapshots.repository.codehaus.org -DgroupId=com.summitbid -DartifactId=coach-maven-arch-1.0-SNAPSHOT

mvn initialize

D:\src\workspace-Grails\coach-maven-arch-1.0-SNAPSHOT>mvn grails:install-plugin acegi
mvn grails:install-plugin acegi
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'grails'.
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Invalid task 'acegi': you must specify a valid lifecycle phase, or a goal in the format plugin:goal or pluginGroupId:pluginArtifactId:pluginVersion:goal
[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: < 1 second
[INFO] Finished at: Mon Jan 19 13:22:25 MST 2009
[INFO] Final Memory: 2M/5M
[INFO] ------------------------------------------------------------------------

D:\src\workspace-Grails\coach-maven-arch-1.0-SNAPSHOT>mvn grails:install-plugin jsecurity
mvn grails:install-plugin jsecurity
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'grails'.
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Invalid task 'jsecurity': you must specify a valid lifecycle phase, or a goal in the format plugin:goal or pluginGroupId:pluginArtifactId:pluginVersion:goal
[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: < 1 second
[INFO] Finished at: Mon Jan 19 13:23:33 MST 2009
[INFO] Final Memory: 2M/5M
[INFO] ------------------------------------------------------------------------

Show
Ed Young added a comment - This when I executed using the 1.0-SNAPSHOT of grails and the grails maven plugin: mvn archetype:generate -DarchetypeGroupId=org.grails -DarchetypeArtifactId=grails-maven-archetype -DarchetypeVersion=1.0-SNAPSHOT -DarchetypeRepository=http://snapshots.repository.codehaus.org -DgroupId=com.summitbid -DartifactId=coach-maven-arch-1.0-SNAPSHOT mvn initialize D:\src\workspace-Grails\coach-maven-arch-1.0-SNAPSHOT>mvn grails:install-plugin acegi mvn grails:install-plugin acegi [INFO] Scanning for projects... [INFO] Searching repository for plugin with prefix: 'grails'. [INFO] ------------------------------------------------------------------------ [ERROR] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Invalid task 'acegi': you must specify a valid lifecycle phase, or a goal in the format plugin:goal or pluginGroupId:pluginArtifactId:pluginVersion:goal [INFO] ------------------------------------------------------------------------ [INFO] For more information, run Maven with the -e switch [INFO] ------------------------------------------------------------------------ [INFO] Total time: < 1 second [INFO] Finished at: Mon Jan 19 13:22:25 MST 2009 [INFO] Final Memory: 2M/5M [INFO] ------------------------------------------------------------------------ D:\src\workspace-Grails\coach-maven-arch-1.0-SNAPSHOT>mvn grails:install-plugin jsecurity mvn grails:install-plugin jsecurity [INFO] Scanning for projects... [INFO] Searching repository for plugin with prefix: 'grails'. [INFO] ------------------------------------------------------------------------ [ERROR] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Invalid task 'jsecurity': you must specify a valid lifecycle phase, or a goal in the format plugin:goal or pluginGroupId:pluginArtifactId:pluginVersion:goal [INFO] ------------------------------------------------------------------------ [INFO] For more information, run Maven with the -e switch [INFO] ------------------------------------------------------------------------ [INFO] Total time: < 1 second [INFO] Finished at: Mon Jan 19 13:23:33 MST 2009 [INFO] Final Memory: 2M/5M [INFO] ------------------------------------------------------------------------
Hide
Ed Young added a comment -

D:\src\workspace-Grails\coach-maven-beta2>mvn -version 2.0.9
mvn -version 2.0.9
Maven version: 2.0.9
Java version: 1.5.0_13
OS name: "windows xp" version: "5.1" arch: "x86" Family: "windows"

Show
Ed Young added a comment - D:\src\workspace-Grails\coach-maven-beta2>mvn -version 2.0.9 mvn -version 2.0.9 Maven version: 2.0.9 Java version: 1.5.0_13 OS name: "windows xp" version: "5.1" arch: "x86" Family: "windows"
Hide
Ed Young added a comment -

correction: Can't execute any mvn grails:xxx command.

I've been following the docs at
http://www.grails.org/Maven+Integration

I have unset GRAILS_HOME so that

D:\src\workspace-Grails\coach-maven>grails -version
grails -version
'grails' is not recognized as an internal or external command,
operable program or batch file.

Show
Ed Young added a comment - correction: Can't execute any mvn grails:xxx command. I've been following the docs at http://www.grails.org/Maven+Integration I have unset GRAILS_HOME so that D:\src\workspace-Grails\coach-maven>grails -version grails -version 'grails' is not recognized as an internal or external command, operable program or batch file.
Hide
Graeme Rocher added a comment -

I believe it is

mvn grails:install-plugin -DpluginName=jsecurity
Show
Graeme Rocher added a comment - I believe it is
mvn grails:install-plugin -DpluginName=jsecurity

People

  • Assignee:
    Unassigned
    Reporter:
    Ed Young
Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: