Quantcast
Channel: Active questions tagged atlassian-plugin-sdk - Stack Overflow
Viewing all articles
Browse latest Browse all 282

command mvn jira:debug fails when trying to install the scriptrunner plugin for Version Control

$
0
0

I am following this tutorial which is giving instructions on how to use Version Control with ScriptRunner:

https://docs.adaptavist.com/sr4js/latest/best-practices/write-code/set-up-a-dev-environment

Here are the steps that I think I have successfully completed:

  1. I imported the following project into IntellijIDE https://bitbucket.org/Adaptavist/scriptrunner-samples.git

  2. I configured the Java Development Kit 8 as the SDK for the project.   

  • Configured a Global SDK.
  • Configured the Project SDK.
  • Configured  the Module SDK.

The step where I get stuck is the third one and is the following: I am supposed to open a terminal and run the command: mvn jira:debug, which I do and I get the following errors:

Error Log thrown in terminal:

enter image description here

[INFO] Scanning for projects...[INFO][INFO] ------< com.onresolve.scriptrunner.assets:sr-sample-plugin-jira >-------[INFO] Building Jira Sample Plugin for ScriptRunner 1.1-SNAPSHOT[INFO] --------------------------[ atlassian-plugin ]--------------------------[INFO][INFO] >>> jira-maven-plugin:8.1.1:debug (default-cli) > package @ sr-sample-plugin-jira >>>[WARNING] The POM for com.atlassian.extras:atlassian-extras-encoder:jar:3.4.1 is missing, no dependency information available[WARNING] The POM for com.onresolve.jira.groovy:groovyrunner:jar:6.9.0-RC2 is invalid, transitive dependencies (if any) will not be available, enable debug logging for more details[WARNING] The POM for jta:jta:jar:1.0.1 is missing, no dependency information available[WARNING] The POM for jndi:jndi:jar:1.2.1 is missing, no dependency information available[INFO] ------------------------------------------------------------------------[INFO] BUILD FAILURE[INFO] ------------------------------------------------------------------------[INFO] Total time: 4.502 s[INFO] Finished at: 2022-01-04T15:59:15+01:00[INFO] ------------------------------------------------------------------------[ERROR] Failed to execute goal on project sr-sample-plugin-jira: Could not resolve dependencies for project com.onresolve.scriptrunner.assets:sr-sample-plugin-jira:atlassian-plugin:1.1-SNAPSHOT: The following artifacts could not be resolved: com.atlassian.extras:atlassian-extras-encoder:jar:3.4.1, com.onresolve.scriptrunner.assets:test-plugin-common:jar:1.0.2: Failure to find com.atlassian.extras:atlassian-extras-encoder:jar:3.4.1 in https://m2proxy.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

POM.XML:Here is what my pom.xml looks like: 

<?xml version="1.0" encoding="UTF-8"?><project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"><modelVersion>4.0.0</modelVersion><packaging>atlassian-plugin</packaging><parent><groupId>com.adaptavist.pom</groupId><artifactId>scriptrunner-jira-standard</artifactId><version>31</version><relativePath/></parent><groupId>com.onresolve.scriptrunner.assets</groupId><artifactId>sr-sample-plugin-jira</artifactId><version>1.1-SNAPSHOT</version><organization><name>Example Company</name><url>http://www.example.com/</url></organization><name>Jira Sample Plugin for ScriptRunner</name><description>ScriptRunner for Jira script plugin</description><properties><!-- Set your JIRA version here --><jira.version>8.0.0</jira.version><!-- Set logging levels for development here --><logging.levels>com.example;DEBUG,com.onresolve;DEBUG</logging.levels></properties><dependencies><!-- The parent pom adds some standard dependencies, but you can add additional ones here --><dependency><groupId>com.atlassian.maven.plugins</groupId><artifactId>jira-maven-plugin</artifactId><version>8.3.0-880404852</version></dependency><!-- https://mvnrepository.com/artifact/com.onresolve.jira.groovy/groovyrunner --><dependency><groupId>com.onresolve.jira.groovy</groupId><artifactId>groovyrunner</artifactId><version>6.9.0-RC2</version><scope>provided</scope></dependency><!-- https://mvnrepository.com/artifact/javax.transaction/jta --><dependency><groupId>javax.transaction</groupId><artifactId>jta</artifactId><version>1.1</version></dependency><!-- https://mvnrepository.com/artifact/simple-jndi/simple-jndi --><dependency><groupId>simple-jndi</groupId><artifactId>simple-jndi</artifactId><version>0.11.4.1</version><scope>test</scope></dependency><dependency><groupId>com.adaptavist.pom</groupId><artifactId>scriptrunner-jira-standard</artifactId><version>12</version><type>pom</type></dependency><!-- https://mvnrepository.com/artifact/com.onresolve.scriptrunner.assets/test-plugin-common --><dependency><groupId>com.onresolve.scriptrunner.assets</groupId><artifactId>test-plugin-common</artifactId><version>1.0.2</version></dependency></dependencies><build><plugins><plugin><groupId>com.atlassian.maven.plugins</groupId><artifactId>jira-maven-plugin</artifactId><configuration><jvmArgs>-Xms512m -Xmx1g -XX:MaxPermSize=1g -XX:-UseGCOverheadLimit -server</jvmArgs><applications><!-- Uncomment these if you wish to include them --><!-- Include Jira Software features --><!--<application><applicationKey>jira-software</applicationKey><version>${jira.software.version}</version></application>                        --><!-- Include Jira Service Desk features --><!--<application><applicationKey>jira-servicedesk</applicationKey><version>${jira.servicedesk.version}</version></application>                        --></applications></configuration></plugin></plugins></build><repositories><!-- This is required to find the parent pom and ScriptRunner dependencies --><repository><id>atlassian-public</id><url>https://m2proxy.atlassian.com/repository/public/</url><releases><enabled>true</enabled></releases><snapshots><enabled>true</enabled></snapshots></repository><repository><id>adaptivity-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></repositories></project>

Viewing all articles
Browse latest Browse all 282

Latest Images

Trending Articles



Latest Images