org.joget.plugin.directory does not exist when building a plugin

Confluence User - 19 Aug, 2024

Hi,

I am trying to build the plugin from the GitHub repo below:
https://github.com/jogetoss/openid-connect-authentication

I have cloned the repository locally.

After setting up all the source code and environment (with JDK 17 and Maven 3.9.8) as guided in here, I try to clean and build using mvn clean install  command but got the following errors:

error: package org.joget.plugin.directory does not exist

error: package org.joget.plugin.directory.dao does not exist

openid-connect-authentication\src\main\java\org\joget\plugin\marketplace\OpenIDDirectoryManager.java:[88,44] error: cannot find symbol

Anyone know where should I find and install the packages?
Thanks.

plugins;plugin;openid

7


19 Aug, 2024
confluenceUser
confluenceUser

Got no issue building it... 

the pom.xml is using 7.0-SNAPSHOT  

 openid-connect-authentication/pom.xml at main · jogetoss/openid-connect-authentication · GitHub

noticed your link for building source code is 8.0-SNAPSHOT. could that be the issue?

20 Aug, 2024
confluenceUser
confluenceUser

Hi, thank you for your response.
I have built 7.0 SNAPSHOT, and then clone the GitHub Repo https://github.com/jogetoss/openid-connect-authentication. After that, I go to the cloned openid repository and mvn clean install again, and have the same issue:

May I know if my steps above are same as yours? Which JDK version are you using?

20 Aug, 2024
confluenceUser
confluenceUser

i used Netbeans IDE 13. I've been using joget since dx7, at the time it was recommended jdk 8. so i haven't changed that. 

ref: Build Source Code on Windows - Knowledge Base for DX 7 - Joget | COMMUNITY

In the IDE i use clean & build but it should be the same as mvn clean install


in the jogetoss GitHub - jogetoss/openid-connect-authentication: The OpenID Connect Directory Manager plugin extends the Security Enhanced Directory Manager to allow users to single sign-on (SSO) to Joget using OpenID Connect.

have you performed the getting help section? 

i recall i had to do this in order to build it

20 Aug, 2024
confluenceUser
confluenceUser

Hi, yea I have used Java 8And I followed the instruction at the getting-help section also.

Actually does this mean that the plugin does not support Joget DX 8 because it is using 7.0-SNAPSHOT?
Do you mind to try if you can build it using mvn clean install  command?

20 Aug, 2024
confluenceUser
confluenceUser

yeah no issue


looking back at your error, your 3rd error :

openid-connect-authentication\src\main\java\org\joget\plugin\marketplace\OpenIDDirectoryManager.java:[88,44] error: cannot find symbol

was this resolved? says here there's a weird symbol in OpenIDDirectoryManager.java file line 88, column 44

OpenIDDirectoryManager.java:[88,44]


oh and FYI, its in 7.0-SNAPSHOT because it can run on DX7 as well. DX8 is backwards compatible so hence why it will work on dx 8 as well.




20 Aug, 2024
confluenceUser
confluenceUser

The full error message for the third error is like this:

[ERROR] could not parse error message:   symbol: class SecureDirectoryManager
[ERROR] openid-connect-authentication\src\main\java\org\joget\plugin\marketplace\OpenIDDirectoryManager.java:93: error: cannot find symbol
[ERROR]     public SecureDirectoryManagerImpl dirManager;

I think it's also due to the imported packages are missing?
But actually where those packages (org.joget.plugin.directory.dao, org.joget.plugin.directory) should be from?

21 Aug, 2024
confluenceUser
confluenceUser

maybe you can try the getting help section but instead of looking for wflow-enterprise-plugin as written in the jogetoss, you look for the missing one instead?

RELATED QUESTIONS

Your answer


To answer a question you'll need an account.

Print