Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,459,387
Community Members
 
Community Events
176
Community Groups

Unable to resolve ScriptRunner dependency in IntelliJ IDEA

I am attempting to build a simple Rest Endpoint project in IDEA.

I have set Maven Home to the  Atlassian SDK (i.e. C:\Applications\Atlassian\atlassian-plugin-sdk-8.2.7\apache-maven-3.5.4)

When I attempt to sync Maven the following dependency is not found, even though it appears to resolve in the pom.xml. Other higher versions appear in red and display not found.

<dependency>
<groupId>com.onresolve.bamboo.groovy</groupId>
<artifactId>groovyrunner</artifactId>
<version>5.4.19</version>
</dependency>

Error in IDEA:

Could not find artifact com.onresolve.bamboo.groovy:groovyrunner:pom:5.4.19 in atlassian-public (https://maven.atlassian.com/repository/public)

 

C:\Users\trobison.KEYSIGHT\.jdks\temurin-11.0.14.1\bin\java.exe -Dmaven.multiModuleProjectDirectory=C:\Users\trobison.KEYSIGHT\IdeaProjects\ScriptRunner -Dmaven.home=C:\Applications\Atlassian\atlassian-plugin-sdk-8.2.7\apache-maven-3.5.4 -Dclassworlds.conf=C:\Applications\Atlassian\atlassian-plugin-sdk-8.2.7\apache-maven-3.5.4\bin\m2.conf -Dmaven.ext.class.path=C:\Users\trobison.KEYSIGHT\AppData\Local\JetBrains\Toolbox\apps\IDEA-U\ch-0\211.7142.45\plugins\maven\lib\maven-event-listener.jar -javaagent:C:\Users\trobison.KEYSIGHT\AppData\Local\JetBrains\Toolbox\apps\IDEA-U\ch-0\211.7142.45\lib\idea_rt.jar=62194:C:\Users\trobison.KEYSIGHT\AppData\Local\JetBrains\Toolbox\apps\IDEA-U\ch-0\211.7142.45\bin -Dfile.encoding=UTF-8 -classpath C:\Applications\Atlassian\atlassian-plugin-sdk-8.2.7\apache-maven-3.5.4\boot\plexus-classworlds-2.5.2.jar org.codehaus.classworlds.Launcher -Didea.version=2021.1.1 -DskipTests=true install
[INFO] Scanning for projects...
[INFO]
[INFO] ---------------------< com.keysight:ScriptRunner >----------------------
[INFO] Building JiraScriptRunner 0.0.1-SNAPSHOT
[INFO] --------------------------------[ jar ]---------------------------------
[WARNING] The POM for com.onresolve.bamboo.groovy:groovyrunner:jar:5.4.19 is missing, no dependency information available
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 3.948 s
[INFO] Finished at: 2022-03-10T11:07:38-07:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project ScriptRunner: Could not resolve dependencies for project com.keysight:ScriptRunner:jar:0.0.1-SNAPSHOT: Failure to find com.onresolve.bamboo.groovy:groovyrunner:jar:5.4.19 in https://maven.atlassian.com/repository/public was cached in the local repository, resolution will not be reattempted until the update interval of atlassian-public has elapsed or updates are forced -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException

Process finished with exit code 1

1 answer

1 accepted

1 vote
Answer accepted

What repositories have you defined in your pom?

I have:

<repository>
<id>adaptavist-external</id>
<url>https://nexus.adaptavist.com/content/repositories/external</url>
<snapshots>
<enabled>false</enabled>
</snapshots>
<releases>
<enabled>true</enabled>
<checksumPolicy>fail</checksumPolicy>
</releases>
</repository>
<repository>
<id>central</id>
<url>https://packages.atlassian.com/artifactory/central/</url>
<snapshots>
<enabled>false</enabled>
</snapshots>
<releases>
<enabled>true</enabled>
<checksumPolicy>fail</checksumPolicy>
</releases>
</repository>

Yes, I added the repositories into the pom.xml file and I was able to resolve the dependencies. Thanks for the assistance!

Suggest an answer

Log in or Sign up to answer
TAGS

Atlassian Community Events