Are you in the loop? Keep up with the latest by making sure you're subscribed to Community Announcements. Just click Watch and select Articles.

×
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

annotated as a component, but the type is not a concrete class. NOT ad ding to index file!!

Hello my friends,

I have problem where I run mvn package in my code:

[ERROR] Found a type [com.atlassian.plugin.spring.scanner.annotation.imports.Sta
shImport] annotated as a component, but the type is not a concrete class. NOT ad
ding to index file!!
[ERROR] Found a type [com.atlassian.plugin.spring.scanner.annotation.imports.Ref
appImport] annotated as a component, but the type is not a concrete class. NOT a
dding to index file!!
[ERROR] Found a type [com.atlassian.plugin.spring.scanner.annotation.imports.Jir
aImport] annotated as a component, but the type is not a concrete class. NOT add
ing to index file!!
[ERROR] Found a type [com.atlassian.plugin.spring.scanner.annotation.imports.Fec
ruImport] annotated as a component, but the type is not a concrete class. NOT ad
ding to index file!!
[ERROR] Found a type [com.atlassian.plugin.spring.scanner.annotation.imports.Con
fluenceImport] annotated as a component, but the type is not a concrete class. N
OT adding to index file!!
[ERROR] Found a type [com.atlassian.plugin.spring.scanner.annotation.imports.Bit
bucketImport] annotated as a component, but the type is not a concrete class. NO
T adding to index file!!
[ERROR] Found a type [com.atlassian.plugin.spring.scanner.annotation.imports.Bam
booImport] annotated as a component, but the type is not a concrete class. NOT a
dding to index file!!
[ERROR] Found a type [com.atlassian.plugin.spring.scanner.annotation.export.Modu
leType] annotated as a component, but the type is not a concrete class. NOT addi
ng to index file!!
[ERROR] Found a type [com.atlassian.plugin.spring.scanner.annotation.component.S
tashComponent] annotated as a component, but the type is not a concrete class. N
OT adding to index file!!
[ERROR] Found a type [com.atlassian.plugin.spring.scanner.annotation.component.R
efappComponent] annotated as a component, but the type is not a concrete class.
NOT adding to index file!!
[ERROR] Found a type [com.atlassian.plugin.spring.scanner.annotation.component.J
iraComponent] annotated as a component, but the type is not a concrete class. NO
T adding to index file!!
[ERROR] Found a type [com.atlassian.plugin.spring.scanner.annotation.component.F
ecruComponent] annotated as a component, but the type is not a concrete class. N
OT adding to index file!!
[ERROR] Found a type [com.atlassian.plugin.spring.scanner.annotation.component.C
onfluenceComponent] annotated as a component, but the type is not a concrete cla
ss. NOT adding to index file!!
[ERROR] Found a type [com.atlassian.plugin.spring.scanner.annotation.component.C
lasspathComponent] annotated as a component, but the type is not a concrete clas
s. NOT adding to index file!!
[ERROR] Found a type [com.atlassian.plugin.spring.scanner.annotation.component.B
itbucketComponent] annotated as a component, but the type is not a concrete clas
s. NOT adding to index file!!
[ERROR] Found a type [com.atlassian.plugin.spring.scanner.annotation.component.B
ambooComponent] annotated as a component, but the type is not a concrete class.
NOT adding to index file!!

 

anybody pass for this error ?

 

thanks

3 answers

1 vote
Gonchik Tsymzhitov
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Nov 18, 2017

Hi Leandro! 

 

Have you tried this workaround

<includeExclude>-com.atlassian.plugin.spring.scanner.annotation.*</includeExclude>

from this issue https://ecosystem.atlassian.net/browse/SCANNER-24

 

Anyway, could you provide your sdk version, pom.xml parameters for components? 

 

Cheers,

Gonchik Tsymzhitov

The above link is expired. I don't have any context for the mentioned solution. Can you please explain how you resolved this issue?

Thanks,
Eddie

Gonchik Tsymzhitov
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Dec 15, 2018

Hi! 

 

It has been not actual info, because if you migrate to spring scanner 2 - everything starts to be better. 

 

Cheers,

Gonchik Tsymzhitov

I have added the dependancies:
<dependency>
<groupId>javax.inject</groupId>
<artifactId>javax.inject</artifactId>
<version>1</version>
<scope>provided</scope>
</dependency>

<dependency>
<groupId>com.atlassian.plugins</groupId>
<artifactId>atlassian-spring-scanner-annotation</artifactId>
<version>1.2.13</version>
<scope>provided</scope>
</dependency>

but still getting the below error:

cannot find symbol
[ERROR] symbol: class ComponentImport


cannot find symbol
[ERROR] symbol: class Inject

0 votes
Petter Gonçalves
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
Jun 18, 2020

Hello,

Since this is a development question, I believe the correct place to ask for help is in the Atlassian Developer Community:

https://community.developer.atlassian.com/ 

The mentioned portal was specifically created for development questions, where you will find articles and suggestions from other third-party partners and Atlassian developers. Feel free to open a new topic about your question there! :)

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events