error: package com.atlassian.jira.component does not exist

Andrew L July 27, 2015

1

1

1

I am getting "error: package com.atlassian.jira.component does not exist" during my Maven build.

I already put the following in my pom.xml file:

       <dependency>

        <groupId>com.atlassian.jira</groupId>

        <artifactId>jira-components</artifactId>

        <version>6.3.1</version>

        <type>pom</type>

       </dependency>

 The above snippet comes from:  https://maven-repository.com/artifact/com.atlassian.jira/jira-components/6.3.1737374

How can i resolve this error?

BTW, i'm using version 6.3.1 of Jira.

Thanks

--Andrew

 

 

6 answers

0 votes
Andrew L August 1, 2015

I'm using version 6.3.1: https://docs.atlassian.com/jira/6.3.1/com/atlassian/jira/event/issue/IssueEvent.html#getUser%28%29 I already checked the doc of 6.3.1, so that's why i'm not sure why i'm seeing the error. Any pointers would be appreciated. Thanks!

0 votes
Jobin Kuruvilla [Adaptavist]
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 1, 2015
0 votes
Andrew L July 31, 2015

Jobin, Thank you for your help. After making the changes you suggested, i'm seeing: $ /opt/atlassian-plugin-sdk/bin/atlas-mvn compile ......... .... error: cannot find symbol ......... The error is complaining that getUser() cannot be found at this line: User loggedInUser = event.getUser(); where event is of type IssueEvent. Here are some info: ATLAS Version: 5.0.13 ATLAS Home: /opt/atlassian-plugin-sdk ATLAS Scripts: /opt/atlassian-plugin-sdk/bin ATLAS Maven Home: /opt/atlassian-plugin-sdk/apache-maven-3.2.1 -------- Executing: /opt/atlassian-plugin-sdk/apache-maven-3.2.1/bin/mvn --version -gs /opt/atlassian-plugin-sdk/apache-maven-3.2.1/conf/settings.xml Apache Maven 3.2.1 (ea8b2b07643dbb1b84b6d16e1f08391b666bc1e9; 2014-02-14T09:37:52-08:00) Maven home: /opt/atlassian-plugin-sdk/apache-maven-3.2.1 Java version: 1.7.0_79, vendor: Oracle Corporation What am I doing wrong? Are there other entries i need to add to my pom.xml, or any other config file? Thanks

0 votes
Jobin Kuruvilla [Adaptavist]
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 29, 2015

1. IssueEvent has a getUser method, not getRemoteUser. 2. ComponentAccessor comes with the the jira-api dependency. <dependency> <groupId>com.atlassian.jira</groupId> <artifactId>jira-api</artifactId> <version>${jira.version}</version> <scope>provided</scope> </dependency>

0 votes
Andrew L July 28, 2015

Hi, I'm trying to disable email notifications sent out by Jira when doing bulk updates via Jira REST API in Python. The Python code logs into Jira with a generic userid. I found a possible solution at: https://bobswift.atlassian.net/wiki/display/JCLI/How+to+limit+notifications+for+automation+actions However, i got a runtime error in atlassian-jira.log file : java.lang.NoSuchMethodError: com.atlassian.jira.event.issue.IssueEvent.getRemoteUser() I didn't know how to resolve the getRemoteUser() error, so i found another way to determine the logged-in userid at: http://www.massapi.com/source/googlecode/11/49/1149573346/jiradevtutor-read-only/JiraDevTutor/src/main/java/hu/lacimol/tutorial/webwork/HelloAction.java.html#31 The sample code in the HelloAction.java is using com.atlassian.jira.component.ComponentAccessor, so that's what i'm using. If there's a better way to accomplish what i'm trying to do ( NOT sending out emails when updating Jira issues via Jira REST API in Python), please let me know. Thanks

0 votes
Jobin Kuruvilla [Adaptavist]
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 28, 2015

What do you need this dependency for?

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events