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
<h1>How To</h1> <h2>Import a pom-only project into Eclipse</h2> <p>'mvn eclipse:eclipse' won't generate .project and .classpath for a pom-only project.</p> <p>Change the packaging to jar temporarily, run mvn eclipse:eclipse and then revert changes.</p> <p>Then you can File -> Import -> Existing projects into workspace and Eclipse will recognize it.</p> <h2>Build an internal repository containing the plugins from an Eclipse installation</h2> <p><strong>Note</strong>: Running this command from a complete Callisto install can take some time (in the order of hours), thankfully it is a once off.</p> <p>This will create pom's for all the plugins from your Eclipse installation located at <br /> <code>/path/to/eclipse/install</code> and deploy them to your internal repository <code>external_free</code></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 eclipse:make-artifacts \ -DeclipseDir=/path/to/eclipse/install \ -DdeployTo=external_free::default::scp://NUCLEUS/usr/local/www/default/maven2_repositories/external_free </pre></td></tr></table> <p>The created <code>pom.xml</code> will also have dependencies on any plugins they require.</p> <h2>Add the Eclipse RCP artifacts to your internal repository</h2> <p>This will add the Eclipse RCP artifacts which you have downloaded and install them into your internal repository <code>external_free</code> so they can be shared. These files need to be deployed to a maven repository so that they can be referenced in your pom as dependencies. e.g. <a class="confluence-link" href="#Create an Eclipse RCP Target" data-anchor="Create an Eclipse RCP Target" data-linked-resource-default-alias="Create an Eclipse RCP Target" data-base-url="http://docs.codehaus.org">#Create an Eclipse RCP Target</a> will only be able to automate the creation if they are available in a maven repository.</p> <p>Upload the <code>eclipse-RCP-3.2-win32.zip</code></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 deploy:deploy-file \ -DrepositoryId=external_free \ -Durl=scp://NUCLEUS/usr/local/www/default/maven2_repositories/external_free \ -DgeneratePom=true \ -Dpackaging=zip \ -DgroupId=org.eclipse \ -DartifactId=eclipse-RCP \ -Dversion=3.2 \ -Dclassifier=win32 \ -Dfile=eclipse-RCP-3.2-win32.zip </pre></td></tr></table> <p>Upload the <code>eclipse-RCP-3.2-delta-pack.zip</code></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 deploy:deploy-file \ -DrepositoryId=external_free \ -Durl=scp://NUCLEUS/usr/local/www/default/maven2_repositories/external_free \ -DgeneratePom=true \ -Dpackaging=zip \ -DgroupId=org.eclipse \ -DartifactId=eclipse-RCP \ -Dversion=3.2 \ -Dclassifier=delta-pack \ -Dfile=eclipse-RCP-3.2-delta-pack.zip </pre></td></tr></table> <h2>Create an Eclipse RCP Target</h2> <p>Follow the instructions below to configure your pom.xml. Then to create the Eclipse RCP target use <code>mvn validate</code></p> <h3>Unpack the Eclipse RCP platform, delta pack and install any plugins that you need</h3> <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> <build> <plugins> <plugin> <!-- Unpack the Eclipse RCP platform and delta pack --> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-dependency-plugin</artifactId> <executions> <execution> <id>create-eclipse-target</id> <phase>validate</phase> <goals> <goal>unpack</goal> </goals> <configuration> <artifactItems> <artifactItem> <groupId>org.eclipse</groupId> <artifactId>eclipse-RCP</artifactId> <version>3.2</version> <classifier>win32</classifier> <type>zip</type> </artifactItem> <artifactItem> <groupId>org.eclipse</groupId> <artifactId>eclipse-RCP</artifactId> <version>3.2</version> <classifier>delta-pack</classifier> <type>zip</type> </artifactItem> </artifactItems> <outputDirectory> ${project.build.directory} </outputDirectory> </configuration> </execution> </executions> </plugin> <plugin> <!-- Install all plugins that are dependencies of this pom --> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-eclipse-plugin</artifactId> <version>2.3-INTERNAL-r489210</version> <executions> <execution> <id>install-plugins</id> <phase>validate</phase> <goals> <goal>install-plugins</goal> </goals> <configuration> <eclipseDir>target/eclipse</eclipseDir> </configuration> </execution> </executions> </plugin> </pre></td></tr></table> <h3>Define as dependencies any plugins needed in the target platform</h3> <p>Add each plugin needed to be in the target platform as a dependency in the pom.xml file.</p> <p>For example, suppose that <code>org.eclipse.update.core_3.2.0.v20060605.jar</code> needs to be included, then:</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> <dependencies> <dependency> <groupId>org.eclipse.update</groupId> <artifactId>org.eclipse.update.core</artifactId> <version>3.2.0</version> </dependency> </dependencies> </pre></td></tr></table> <p>This will also download all transitive dependent plugins.</p> <h2>Build your Eclipse Plugin</h2> <p>As far as I know the maven-eclipse-plugin can't help you to build your Eclipse plugin.</p> <p>There is some work going on with OSGi bundles being built, some discussions with the Eclipse team to expose and unify classpath and PDE features to make it easier to externally tool plugin development.</p> <p>However you can use the <a href="http://mojo.codehaus.org/pde-maven-plugin/">pde-maven-plugin@codehaus</a> to build your plugins with Maven. <code>pde-maven-plugin</code> invokes the Ant pde build files to actually do the work. You can even create an RCP application this way.</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