Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How to find a maven package reference for jquery-ui? (for Jira 8 upgrade)

qsdmadl
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
April 5, 2019

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/

1 answer

1 accepted

0 votes
Answer accepted
Daniel Eads
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
April 17, 2019

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

qsdmadl
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
April 18, 2019

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

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events