Though i have imported com.atlassian.jira.ComponentManager still during building it is giving compilation error cannot find symbol ComponentManager .

Binayak Nanda January 6, 2014

Though i have imported com.atlassian.jira.ComponentManager still during building it is giving compilation error cannot find symbol ComponentManager .

2 answers

3 votes
RambanamP
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.
January 6, 2014

make sure following dependecies are added in your pom.xml

<dependency>
     <groupId>com.atlassian.jira</groupId>
     <artifactId>jira-api</artifactId>
     <version>${jira.version}</version>
     <scope>provided</scope>
</dependency>
       
<dependency>
    <groupId>com.atlassian.jira</groupId>
    <artifactId>jira-core</artifactId>
    <version>${jira.version}</version>
    <scope>provided</scope>
</dependency>

0 votes
Henning Tietgens
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.
January 6, 2014

As Rambanam wrote, the ComponentManager isn't part of the jira-api, you have to add jira-core to use it. If possible, use ComponentAccessor instead which is part of jira-api.

Ramesh Udari1 April 20, 2014

Which jira version are you using ?

Suggest an answer

Log in or Sign up to answer