How to build correct jar plugin?

Confluence User - 21 Jul, 2020

Hello,

I downloaded eva-theme.zip and wanted to test uploading it to my settings and I always get:

`Error uploading plugin` (this isn't verbose)

Point 9 of the theme tutorial, you state:

g. Build it and test

Let build our plugin. Once the building process is done ...

How to build it?

I guess maven (mvn) is used according to https://github.com/jogetworkflow/jw-community/blob/a40c8dd2a4e6c8533aade31692d48d29f6983cb4/wflow-plugin-archetype/create-plugin.sh

But can you share about detailed command?

Thank you

plugins;build;jar

4


22 Jul, 2020
confluenceUser
confluenceUser

Hi, plugins should be .jar files, and the zip file you mentioned is probably the source code. To build source code you can check out Joget Open Source

23 Jul, 2020
confluenceUser
confluenceUser

Hi Anders,

Thanks for your response. I did go to your link  before asking actually, hence my link to create-plugin.sh.

And, sorry but I don't find the point 9 very explicit (smile):

[Let build our plugin.] {how?} [Once the building process is done] ...

My question is about the {how?} part.

Because the create-plugin.sh script is to scaffold the source of the plugin, not to build the jar from the source, AFAIK. At least it should build a MANIFEST.XML file from folders content, right?

Would you please point me to the building script, or explain me how to build?

Joget is wonderful on the workflow side, but the theming part is lacking at lot, Eva's tutorial is a great step (smile)


24 Jul, 2020
confluenceUser
confluenceUser

The generated plugin is a Maven project, so to build you run a command like "mvn install". https://maven.apache.org/guides/getting-started/maven-in-five-minutes.html

06 May, 2022
confluenceUser
confluenceUser

hi pm, do you get the answer to build .jar file? because i still do not understand

RELATED QUESTIONS

Your answer


To answer a question you'll need an account.

Print