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>This page contains advice to ensure smooth transition to maven 3 from maven 2 :</p> <h3>A set of maven-enforcer-plugin rule</h3> <ul> <li>Check that plugin versions are defined</li> <li>TODO: Ensure that plugin defs appear only once</li> <li>TODO: More rules!</li> </ul> <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><project> [...] <build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-enforcer-plugin</artifactId> <version>1.0</version> <executions> <execution> <id>enforce-plugin-versions</id> <goals> <goal>enforce</goal> </goals> <configuration> <rules> <requirePluginVersions> <message>Best Practice is to always define plugin versions!</message> <banLatest>true</banLatest> <banRelease>true</banRelease> <banSnapshots>true</banSnapshots> <phases>clean,deploy,site</phases> <additionalPlugins> <additionalPlugin>org.apache.maven.plugins:maven-eclipse-plugin</additionalPlugin> <additionalPlugin>org.apache.maven.plugins:maven-reactor-plugin</additionalPlugin> </additionalPlugins> </requirePluginVersions> <unCheckedPluginsList>org.apache.maven.plugins:maven-enforcer-plugin,org.apache.maven.plugins:maven-idea-plugin</unCheckedPluginsList> </rules> </configuration> </execution> </executions> </plugin> </plugins> </build> [...] </pre></td></tr></table> <p></project></p> <h3>relative path to parent</h3> <p>If a project is referring to a parent pom, but that pom isn't reachable in the default parent path (../pom.xml). Then you should either :</p> <ul> <li>update it to the right path</li> <li>put <relativePath /> in the <parent> tag so that maven knows it will have to look for it directly in the local repository</li> </ul> <h3>Standard variables</h3> <p>For example, when one wants to refer to the artifactId of a POM, the variable ${project.artifactId} can be used. <br /> There are a lot of other possibilities to do that, like ${pom.artifactId}, ${artifactId} and so on. <br /> These ways are all deprecated and might be deleted in the future. With maven3, all these deprecated uses appear as warnings.</p> <ul> <li>Always use the <strong>${project.xxx}</strong> form</li> </ul> <ol> <li>Thank JVZ for the page title: <a href="http://twitter.com/jvanzyl/status/4621533361">http://twitter.com/jvanzyl/status/4621533361</a></li> </ol>
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