Skip to content
Skip to breadcrumbs
Skip to header menu
Skip to action menu
Skip to quick search
Quick Search
Browse
Pages
Blog
Labels
Attachments
Mail
Advanced
What’s New
Space Directory
Feed Builder
Keyboard Shortcuts
Confluence Gadgets
Log In
Dashboard
GMaven
Copy Page
You are not logged in. Any changes you make will be marked as
anonymous
. You may want to
Log In
if you already have an account. You can also
Sign Up
for a new account.
This page is being edited by
.
Paragraph
Paragraph
Heading 1
Heading 2
Heading 3
Heading 4
Heading 5
Heading 6
Preformatted
Quote
Bold
Italic
Underline
More colours
Strikethrough
Subscript
Superscript
Monospace
Clear Formatting
Bullet list
Numbered list
Outdent
Indent
Align left
Align center
Align right
Link
Table
Insert
Insert Content
Image
Link
Attachment
Symbol
Emoticon
Wiki Markup
Horizontal rule
tinymce.confluence.insert_menu.macro_desc
Info
JIRA Issue
Status
Gallery
Tasklist
Table of Contents
Other Macros
Page Layout
No Layout
Two column (simple)
Two column (simple, left sidebar)
Two column (simple, right sidebar)
Three column (simple)
Two column
Two column (left sidebar)
Two column (right sidebar)
Three column
Three column (left and right sidebars)
Undo
Redo
Find/Replace
Keyboard Shortcuts Help
<p><table class="wysiwyg-macro" data-macro-name="excerpt" data-macro-parameters="atlassian-macro-output-type=BLOCK" style="background-image: url(/plugins/servlet/confluence/placeholder/macro-heading?definition=e2V4Y2VycHQ6YXRsYXNzaWFuLW1hY3JvLW91dHB1dC10eXBlPUJMT0NLfQ&locale=en_GB&version=2); background-repeat: no-repeat;" data-macro-body-type="RICH_TEXT"><tr><td class="wysiwyg-macro-body"> <p>If you already have Maven installed, then GMaven is the <em>quickest</em> path to running some Groovy tools!</p></td></tr></table></p> <img class="editor-inline-macro" src="/plugins/servlet/confluence/placeholder/macro?definition=e3RvYzptYXhMZXZlbD0yfG1pbkxldmVsPTF9&locale=en_GB&version=2" data-macro-name="toc" data-macro-parameters="maxLevel=2|minLevel=1"> <h1>Groovy Shell</h1> <p>Provides very convenient command-line access to the Groovy language:</p> <table class="wysiwyg-macro" data-macro-name="noformat" style="background-image: url(/plugins/servlet/confluence/placeholder/macro-heading?definition=e25vZm9ybWF0fQ&locale=en_GB&version=2); background-repeat: no-repeat;" data-macro-body-type="PLAIN_TEXT"><tr><td class="wysiwyg-macro-body"><pre> mvn groovy:shell </pre></td></tr></table> <p>Which should look something like this:</p> <p><img class="confluence-embedded-image" src="/download/attachments/230400684/GroovyShell.png?version=1&modificationDate=1368948104160" data-image-src="/download/attachments/230400684/GroovyShell.png?version=1&modificationDate=1368948104160" data-linked-resource-id="230565092" data-linked-resource-type="attachment" data-linked-resource-default-alias="GroovyShell.png" data-base-url="http://docs.codehaus.org" data-linked-resource-container-id="230400684" title="null > GroovyShell.png"></p> <p>For more information please see the documentation for <a class="confluence-link" href="/display/GROOVY/Groovy+Shell" data-linked-resource-id="15204521" data-linked-resource-type="page" data-linked-resource-default-alias="Groovy Shell" data-base-url="http://docs.codehaus.org">Groovy Shell</a>.</p> <h1>Groovy Console</h1> <p>For folks that prefer a GUI over command-line access:</p> <table class="wysiwyg-macro" data-macro-name="noformat" style="background-image: url(/plugins/servlet/confluence/placeholder/macro-heading?definition=e25vZm9ybWF0fQ&locale=en_GB&version=2); background-repeat: no-repeat;" data-macro-body-type="PLAIN_TEXT"><tr><td class="wysiwyg-macro-body"><pre> mvn groovy:console </pre></td></tr></table> <p>After running, Maven will spit out something similar to this:</p> <table class="wysiwyg-macro" data-macro-name="noformat" style="background-image: url(/plugins/servlet/confluence/placeholder/macro-heading?definition=e25vZm9ybWF0fQ&locale=en_GB&version=2); background-repeat: no-repeat;" data-macro-body-type="PLAIN_TEXT"><tr><td class="wysiwyg-macro-body"><pre> [INFO] Scanning for projects... [INFO] Searching repository for plugin with prefix: 'groovy'. [INFO] ------------------------------------------------------------------------ [INFO] Building Maven Default Project [INFO] task-segment: [groovy:console] (aggregator-style) [INFO] ------------------------------------------------------------------------ [INFO] [groovy:console] </pre></td></tr></table> <p>And then display the GUI console window, waiting for it to be closed before continuing:</p> <p><img class="confluence-embedded-image" src="/download/attachments/230400684/GroovyConsole.png?version=1&modificationDate=1368948104217" data-image-src="/download/attachments/230400684/GroovyConsole.png?version=1&modificationDate=1368948104217" data-linked-resource-id="230565093" data-linked-resource-type="attachment" data-linked-resource-default-alias="GroovyConsole.png" data-base-url="http://docs.codehaus.org" data-linked-resource-container-id="230400684" title="null > GroovyConsole.png"></p> <p>For more information please see the documentation for <a class="confluence-link" href="/display/GROOVY/Groovy+Console" data-linked-resource-id="36800" data-linked-resource-type="page" data-linked-resource-default-alias="Groovy Console" data-base-url="http://docs.codehaus.org">Groovy Console</a>.</p> <h1>Resources</h1> <h2>Goal Documentation</h2> <ul> <li><a href="http://groovy.codehaus.org/gmaven-generated/gmaven-plugin/shell-mojo.html">groovy:shell</a></li> <li><a href="http://groovy.codehaus.org/gmaven-generated/gmaven-plugin/console-mojo.html">groovy:console</a></li> </ul>
Please type the word appearing in the picture.
Attachments
Labels
Location
Watch this page
< Edit
Preview >
Loading…
Save
Cancel
Next hint
search
attachments
weblink
advanced