Skip to content

Maven archetype creating multiple, Tycho-built, Groovy based eclipse-plugin projects

Notifications You must be signed in to change notification settings

open-archetypes/groovy-eclipse-plugin-archetype

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

groovy-eclipse-plugin-archetype

Maven archetype creating multiple, Tycho-built, Groovy based eclipse-plugin projects 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-update-site

The generated plugin is based on the Hello World template from the PDE Wizard, rewritten in Groovy :

[...] 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.

Pre-Requisites :

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 groovy-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.18.1
    • 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 kepler .
  • Hit Finish

  • Wait for awesomeness

Current m2e support in Groovy Eclipse plugin does not automatically add the Groovy nature to the core and test projects. On these projects, you will need to :

  • right click on project
  • Configure > Convert to Groovy Project

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 install

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

About

Maven archetype creating multiple, Tycho-built, Groovy based eclipse-plugin projects

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages