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
<h3>Deploying a pom only module</h3> <p>There seem to be two options.</p> <p>One is to use only 'file' and specify the groupId/artifactId/version/packaging as properties:</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> C:\Temp>mvn deploy:deploy-file -Dfile=apache-3.pom.xml -Durl=file:///c:/temp/m2-test-repo -DrepositoryId=test-repo \ -DgroupId=org.apache -DartifactId=apache -Dversion=3 -Dpackaging=pom [INFO] Scanning for projects... [INFO] Searching repository for plugin with prefix: 'deploy'. [INFO] artifact org.apache.maven.plugins:maven-deploy-plugin: checking for updat es from central [INFO] ------------------------------------------------------------------------- --- [INFO] Building Maven Default Project [INFO] task-segment: [deploy:deploy-file] (aggregator-style) [INFO] ------------------------------------------------------------------------- --- [INFO] [deploy:deploy-file] Uploading: file:///c:/temp/m2-test-repo/org/apache/apache/3/apache-3.pom 3K uploaded [INFO] Retrieving previous metadata from test-repo [INFO] Uploading repository metadata for: 'artifact org.apache:apache' [INFO] Retrieving previous metadata from test-repo [INFO] Uploading project information for apache 3 [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESSFUL [INFO] ------------------------------------------------------------------------ [INFO] Total time: 1 second [INFO] Finished at: Tue Jan 30 14:19:31 MST 2007 [INFO] Final Memory: 2M/4M [INFO] ------------------------------------------------------------------------ </pre></td></tr></table> <p>Another is to pass the pom file (with path) as both 'file' and 'pomFile'. Following is an example using the top-level Apache pom:</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> C:\Temp>mvn deploy:deploy-file -Dfile=apache-3.pom.xml -DpomFile=apache-3.pom.xml -Durl=file:///c:/temp/m2-test-repo -DrepositoryId=test-repo [INFO] Scanning for projects... [INFO] Searching repository for plugin with prefix: 'deploy'. [INFO] artifact org.apache.maven.plugins:maven-deploy-plugin: checking for updates from central [INFO] ------------------------------------------------------------------------- --- [INFO] Building Maven Default Project [INFO] task-segment: [deploy:deploy-file] (aggregator-style) [INFO] ------------------------------------------------------------------------- --- [INFO] [deploy:deploy-file] Uploading: file:///c:/temp/m2-test-repo/org/apache/apache/3/apache-3.pom 3K uploaded [INFO] Retrieving previous metadata from test-repo [INFO] Uploading repository metadata for: 'artifact org.apache:apache' Uploading: file:///c:/temp/m2-test-repo/org/apache/apache/3/apache-3.pom 3K uploaded [INFO] Retrieving previous metadata from test-repo [INFO] Uploading repository metadata for: 'artifact org.apache:apache' [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESSFUL [INFO] ------------------------------------------------------------------------ [INFO] Total time: 1 second [INFO] Finished at: Tue Jan 30 14:14:19 MST 2007 [INFO] Final Memory: 2M/4M [INFO] ------------------------------------------------------------------------ {noformat] In both casaes, the resulting repository structure is: {noforamt} C:\Temp>tree m2-test-repo Folder PATH listing Volume serial number is BCCB-CB88 C:\TEMP\M2-TEST-REPO └───org └───apache └───apache └───3 </pre></td></tr></table>
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