Author Topic: Packaging a new Archi Export Plugin  (Read 587 times)

Thomas Rischbeck (ITMC.ch)

  • Member
  • **
  • Posts: 19
  • working on STAR: strategy - architecture
    • ITMC
Packaging a new Archi Export Plugin
« on: August 14, 2020, 10:18:47 AM »
We want to create a new plugin to Archi that generates a Word document using the javadocx  library. Based on the ImportExportExample the first prototype runs within an Eclipse launch configuration.

How would we go about creating a distributable Plugin/Dropin *.jar file from this? I can do it manually but presume that some built-in logic for this is already available somewhere.
ITMC AG • Bahnhofstrasse 10 • CH-8001 Zürich
Dr. Thomas Rischbeck
PhD in Computer Science
Managing Partner   
rischbeck@itmc.ch
www.itmc.ch

Phil Beauvoir

  • Administrator
  • Hero Member
  • *****
  • Posts: 1639
  • Code Punk
    • Archi
Re: Packaging a new Archi Export Plugin
« Reply #1 on: August 14, 2020, 10:25:40 AM »
I do it manually, too. I have not found a way to automate it.

Make sure the "build.properties" file has all the right dependencies ticked.

Select the project(s) in Eclipse and choose "Export -> Deployable plug-ins and fragments" and export the jar(s) or folder(s) into a directory.

BTW - Archi plug-ins in the "*.archiplugin" format are the exported jar(s) zipped into a zip file (the extension is renamed) together with the magic "archi-plugin" marker file so Archi knows that it's an Archi plug-in that can be unpacked and copied to the "dropins" folder (rather than some random *.jar file). In fact, you could just manually copy the *.jar file(s) to the "dropins" folder.
« Last Edit: August 14, 2020, 10:51:57 AM by Phil Beauvoir »
If you value and use Archi please consider making a donation! https://www.archimatetool.com/donate

Thomas Rischbeck (ITMC.ch)

  • Member
  • **
  • Posts: 19
  • working on STAR: strategy - architecture
    • ITMC
Re: Packaging a new Archi Export Plugin
« Reply #2 on: August 14, 2020, 11:33:09 AM »
Phil,

Thanks for your help - the Eclipse Export did the trick and I've got my first Archi Plugin running.
What a wonderful feeling!!!  ;D

Cheers and happy weeekend, Thomas.
ITMC AG • Bahnhofstrasse 10 • CH-8001 Zürich
Dr. Thomas Rischbeck
PhD in Computer Science
Managing Partner   
rischbeck@itmc.ch
www.itmc.ch

Phil Beauvoir

  • Administrator
  • Hero Member
  • *****
  • Posts: 1639
  • Code Punk
    • Archi
Re: Packaging a new Archi Export Plugin
« Reply #3 on: August 14, 2020, 11:35:34 AM »
Hi Thomas,

great news! Congratulations!

Two Top Tips:

1. Nothing in Eclipse is easy
2. See (1)

;-)
If you value and use Archi please consider making a donation! https://www.archimatetool.com/donate