Skip to content

Eclipse-China/tycho-eclipse-plugin-archetype

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

tycho-eclipse-plugin-archetype

This archetype will create a multi-modules project with a nested structure :

 __artifactId__    : parent pom project
 |
 |---__artifactId__.core   : eclipse-plugin 
 |
 |---__artifactId__.feature: eclipse-feature 
 |
 |---__artifactId__.test   : eclipse-test-plugin (Fragment project)
 |
 |---__artifactId__.site : eclipse-repository

The generated plugin is based on the Hello World template from the PDE Wizard :

[...] creates a simple action set that adds Sample Menu to the menu bar and a button to the tool bar. 
Both the menu item in the new menu and the button invoke the same Sample Action. 
Its role is to open a simple message dialog with a message of your choice.

This archetype is an updated version of the one I gave to https://issues.sonatype.org/browse/TYCHO-442

Pre-Requisites :

  • JDK 1.6 or later
  • maven 3.0 or later
  • Eclipse Helios (3.6) with PDE or later (Juno (4.2) is the default target)
  • m2e 1.1 or later
  • m2eclipse-tycho 0.6 or later

How to use

In Eclipse, first add the Open Archetypes catalog :

  • On the Archetypes Preferences page (Window > Preferences > Maven > Archetypes), click on the "Add Remote Catalog..." button

  • Click OK to close the dialog

  • Click OK to close the preferences

Now you can create a new project, using the Maven wizard :

  • Create a new Maven project

  • Click Next to land on the Archetype page

  • Select the Open Archetypes (Snapshots) catalog

  • Check the "Include Snapshots" button

  • Select tycho-eclipse-plugin-archetype and click Next

  • Enter the Group Id, Artifact Id and Version informations. Eclipse requires the version to follow a Major.Minor.Micro pattern, so you should use 1.0.0-SNAPSHOT instead of 1.0-SNAPSHOT

  • You can change the required properties if needed :

    • tycho_version : the tycho version that will be used to build the project in command line. Defaults to 0.16.0
    • eclipse_platform : the Eclipse platform, will drive what eclipse update site will be used to resolve the Eclipse dependencies. Supported values are : helios, indigo, juno, kepler. Defaults to juno .
  • Hit Finish

  • Wait for awesomeness

  • Once the projects are created, you can start testing Eclipse hosted mode, run JUnit Plug-in tests ...

You can then build your projects in command line, in a terminal, by issuing :

mvn clean verify

An zipped update site will be created as <project.parent>/<project.site>/target/<project.site>-<project.version>-site.zip.

About

Maven archetype to build tycho-based eclipse plugins

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published