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
Sign Up
Dashboard
Maven User
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>We need the ability to bind a Mojo to a custom LifeCycle.</p> <p>Our specific use case is to be able to perform extra tasks during release that need to occur at times other than the small window provided by the maven-release-plugin's run-preparation-goals and run-perform-goals phases. In particular we need Mojos to execute during the scm-commit-development and scm-commit-rollback phases.</p> <p>So we need the ability to bind our plugin's Mojos to those phases.</p> <p>I would think that there are probably many other use cases, for other custom LifeCycles, not only for the release-plugin.<br /> A mechanism for binding Mojos to custom LifeCycles provides a much cleaner mechanism for plugins like the release-plugin that are aware that they need to integrate with other plugins.</p> <p>I would like to propose a syntax similar to:</p> <table class="wysiwyg-macro" data-macro-name="code" style="background-image: url(/plugins/servlet/confluence/placeholder/macro-heading?definition=e2NvZGV9&locale=en_GB&version=2); background-repeat: no-repeat;" data-macro-body-type="PLAIN_TEXT"><tr><td class="wysiwyg-macro-body"><pre> <plugin> <groupId>com.yarris.maven.plugins</groupId> <artifactId>maven-subclipse-tags-plugin</artifactId> <version>1.3</version> <executions> <execution> <-- Bind to the release-plugin:scm-commit-development phase. --> <phase>org.apache.maven.plugins:maven-release-plugin:scm-commit-development</phase> <goals> <goal>update-property</goal> </goals> </execution> </executions> </plugin> </pre></td></tr></table> <p>where the groupId and artifact binding of the phase follow the same defaulting process at that used to define dependencies. That is the above binding could be rewritten as:</p> <table class="wysiwyg-macro" data-macro-name="code" style="background-image: url(/plugins/servlet/confluence/placeholder/macro-heading?definition=e2NvZGV9&locale=en_GB&version=2); background-repeat: no-repeat;" data-macro-body-type="PLAIN_TEXT"><tr><td class="wysiwyg-macro-body"><pre> <-- Bind to the release-plugin:scm-commit-development phase. --> <phase>maven-release-plugin:scm-commit-development</phase> </pre></td></tr></table> <p>or even</p> <table class="wysiwyg-macro" data-macro-name="code" style="background-image: url(/plugins/servlet/confluence/placeholder/macro-heading?definition=e2NvZGV9&locale=en_GB&version=2); background-repeat: no-repeat;" data-macro-body-type="PLAIN_TEXT"><tr><td class="wysiwyg-macro-body"><pre> <-- Bind to the release-plugin:scm-commit-development phase. --> <phase>release:scm-commit-development</phase> </pre></td></tr></table> <p>The other (IMHO poorer) option would be to include the LifeCycle of the release-plugin as part of the Maven core.</p> <p>Without this proposal we will</p> <ul> <li>need to continue to maintain a version of release-plugin that includes extra phases required to simulate this behaviour</li> <li>not be able to open-source the subclipse-tags-plugin (which is of benefit to anyone using Eclipse+Subversion) as it needs the hooks provided by our hacked version of the release-plugin.</li> </ul> <p>I'd really like to use a base version of the release-plugin and I'd really like to be able to provide the subclispe-tags-plugin to the community.</p> <p>NB this was originally raised as <a class="external-link" href="http://jira.codehaus.org/browse/MRELEASE-235" rel="nofollow">http://jira.codehaus.org/browse/MRELEASE-235</a></p>
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