Archi Forum

Archi => Archi Development => Topic started by: Hervé on September 29, 2019, 16:00:18 PM

Title: Generate plugin/Feature
Post by: Hervé on September 29, 2019, 16:00:18 PM
Hi,

I fail to generate a feature that install on Archi 4.5.1 using the plugins manager.

What I did:

when Archi restarts, I've got error messages like
org.eclipse.equinox.p2.core.ProvisionException: No repository found at jar:file:/C:/Users/Herve/AppData/Roaming/Archi4/dropins/artifacts.jar!/.

org.eclipse.equinox.p2.core.ProvisionException: Error: file:/C:/Users/Herve/AppData/Roaming/Archi4/dropins/ is not a valid extension location because it already contains a standard p2 repository file.

org.eclipse.equinox.p2.core.ProvisionException: No repository found at jar:file:/C:/Users/Herve/AppData/Roaming/Archi4/dropins/artifacts.jar!/.

A "dropins" folder has been created in C:/Users/Herve/AppData/Roaming/Archi4/ with the following content:

Any advice ?

Thanks
Hervé
Title: Re: Generate plugin/Feature
Post by: Phil Beauvoir on September 29, 2019, 16:35:33 PM
Don't export as a feature or create a feature project. Export as a jar ("Deployable plugins and fragments").

The plan to deply plugins as features was abandoned (for now) in favour of using jars in the "dropins" folder.
Title: Re: Generate plugin/Feature
Post by: Hervé on September 29, 2019, 19:57:30 PM
oh, did not understood that ...

Thanks  ;D
Title: Re: Generate plugin/Feature
Post by: Hervé on September 29, 2019, 23:17:09 PM
In fact, I cannot make it working with JAR either.

I updated the Archi.ini file to change the dropins folder:
-Dorg.eclipse.equinox.p2.reconciler.dropins.directory=C:/Program Files/Archi4.5.1/dropins

I created the C:/Program Files/Archi4.5.1/dropins folder and copied the JAR file into this folder.

But my plugin is still not recognized  :-[

Any advice ?
Title: Re: Generate plugin/Feature
Post by: Phil Beauvoir on September 30, 2019, 07:05:54 AM
Not sure if spaces need to have quote marks.

But the whole point is to install plugins in the "Archi4" directory in the user's home directory in order to keep them separate from the Archi installation program directory. Especially so on Mac.
Title: Re: Generate plugin/Feature
Post by: Hervé on September 30, 2019, 07:58:44 AM
I know that the plugins should now be separated from the installation directory, but I've got several Archi versions with different plugins combinations in order to test them ...

I didn't think about the space char, I'll add quotes this evening ... Thanks  ;)
Title: Re: Generate plugin/Feature
Post by: Phil Beauvoir on September 30, 2019, 08:00:38 AM
Also, I think if the "dropins" folder is in the Archi installation folder you don't need the entry in the Archi.ini file. But I'd have to double check that.