Hello,
In upgrading to Jira 8.0.1, I have some Jira plugins which use AJS.$(...).autocomplete. Apparently the jquery-ui has been removed from the default AUI which ships with Jira 8, and so I have JS errors at runtime.
The upgrade guide here [1] shows an example for adding the jquery-ui dependency:
<dependency>jira.webresources:jquery-ui</dependency>
Since that causes syntax errors in the plugin's pom.xml in my IDE, I've tried adding it like this, guessing the recent version number of jquery-ui:
<dependency>
<groupId>jira.webresources</groupId>
<artifactId>jquery-ui</artifactId>
<version>1.12.1</version>
</dependency>
However, atlas-mvn package fails to find the package in any of the following URLs (all of them return 404):
Downloading: https://maven.atlassian.com/repository/public/jira/webresources/jquery-ui/1.12.1/jquery-ui-1.12.1.pom
Downloading: file://C:\Applications\Atlassian\atlassian-plugin-sdk-6.3.12/repository/jira/webresources/jquery-ui/1.12.1/jquery-ui-1.12.1.pom
Downloading: http://repo.maven.apache.org/maven2/jira/webresources/jquery-ui/1.12.1/jquery-ui-1.12.1.pom
[WARNING] The POM for jira.webresources:jquery-ui:jar:1.12.1 is missing, no dependency information available
Downloading: https://maven.atlassian.com/repository/public/jira/webresources/jquery-ui/1.12.1/jquery-ui-1.12.1.jar
Downloading: file://C:\Applications\Atlassian\atlassian-plugin-sdk-6.3.12/repository/jira/webresources/jquery-ui/1.12.1/jquery-ui-1.12.1.jar
Downloading: http://repo.maven.apache.org/maven2/jira/webresources/jquery-ui/1.12.1/jquery-ui-1.12.1.jar
...
[ERROR] Failed to execute goal on project my-plugin-name: Could not resolve dependencies for project at.my-plugin-groupId:my-plugin-name:atlassian-plugin:8.0.2.0: Could not find artifact jira.webresources:jquery-ui:jar:1.12.1 in atlassian-public (https://maven.atlassian.com/repository/public) -> [Help 1]
I tried manually checking these URLs' parent directory listing to find available packages/versions, but no luck.
I tried the official maven repository URL of Atlassian [2], but what is the login I should use there?
In summary: How do I go about finding a maven package reference for jquery-ui?
Thanks,
David
[1] https://confluence.atlassian.com/adminjira/atlassian-user-interface-upgrade-959304447.html
[2] https://developer.atlassian.com/server/framework/atlassian-sdk/atlassian-maven-repositories-2818705/
Hey David,
Welcome to the Atlassian Community! I see your ticket has gone unanswered for a while and just wanted to touch base for a pointer. Most folks on this Community are users or admins rather than developers, so it's usually a little more rare to see someone able to answer development-related questions like this.
We have a dedicated Developer Community that might be good to check out for questions related to Maven and more Java-oriented needs. Since the topics are more focused, it's easier for other developers to watch the questions coming in and provide guidance.
You should be able to browse the packages repository with Artifactory at https://packages.atlassian.com/webapp/#/home as well if that helps at all.
Cheers,
Daniel
Thanks Daniel,
I've implemented a workaround by adding the jquery-ui library to the plugin resources, downloaded from their official Download Builder.
Best,
David
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.