This archetype will create a multi-module 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, using the Eclipse 3.x architecture :
[...] creates a simple handler 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 Handler.
Its role is to open a simple message dialog with a message of your choice.
In Eclipse, first add the Open Archetypes catalog :
On the Archetypes Preferences page (Windows: Window
> Preferences
; OS X: Eclipse
> Preferences
or ⌘,
), open Maven
> Archetypes
, click on the Add Remote Catalog...
button
Open Archetypes
Click OK
to close the dialog
Click OK
to close the preferences
Open your terminal or Windows CMD:
mvn org.apache.maven.plugins:maven-archetype-plugin:2.4:generate -DarchetypeCatalog=http://open-archetypes.github.com/maven-repo/releases/ -DarchetypeGroupId=org.openarchetypes -DarchetypeArtifactId=tycho-eclipse-plugin-archetype
Next
to land on the Archetype pageOpen Archetypes
catalogtycho-eclipse-plugin-archetype
and click Next1.8
to 15
. Defaults to 11
2.1.0
2020-12
. Previous non-date-based platforms like neon
, luna
might work too.Finish
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
A zipped update site will be created as <project.parent>/<project.site>/target/<project.site>-<project.version>-site.zip
.
Signed artifacts will be created when the sign
profile is used.
mvn package -Psign
In order to sign artifacts, you will need to generate/provide a keystore first (see http://docs.oracle.com/javase/6/docs/technotes/tools/solaris/jarsigner.html) and configure your settings.xml like :
<profiles>
<profile>
<id>sign</id>
<properties>
<sign.keystore>~/.ssh/sample.keystore</sign.keystore>
<sign.alias>sample</sign.alias>
<sign.storepass>samplepass</sign.storepass>
<sign.keypass>samplepass</sign.keypass>
</properties>
</profile>
</profiles>
You can find somewhat similar tycho-based archetypes based on :