Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

OSGI R7 annotation

Avatar

Avatar
Validate 1
Level 2
DIPEN1
Level 2

Likes

2 likes

Total Posts

40 posts

Correct Reply

1 solution
Top badges earned
Validate 1
Boost 1
Affirm 1
View profile

Avatar
Validate 1
Level 2
DIPEN1
Level 2

Likes

2 likes

Total Posts

40 posts

Correct Reply

1 solution
Top badges earned
Validate 1
Boost 1
Affirm 1
View profile
DIPEN1
Level 2

25-03-2019

Hi,

I have created a project using AEM Archetype 17 and followed this article. I am able to use other osgi R7 annotations like @ServiceDescription or @ServiceVendor. But I am not able to use @Activate on configuration like this:

@Activate

private MyServiceConfiguration config;

I am getting error '@Activate not applicable to field' in intelliJ idea and while maven build I am getting error 'annotation type not applicable to this kind of declaration'.

Replies

Avatar

Avatar
Validate 1
Level 2
DIPEN1
Level 2

Likes

2 likes

Total Posts

40 posts

Correct Reply

1 solution
Top badges earned
Validate 1
Boost 1
Affirm 1
View profile

Avatar
Validate 1
Level 2
DIPEN1
Level 2

Likes

2 likes

Total Posts

40 posts

Correct Reply

1 solution
Top badges earned
Validate 1
Boost 1
Affirm 1
View profile
DIPEN1
Level 2

29-03-2019

Arun Patidar

Now I am able to build, deploy but facing another issue. Junit testcases are not running from intelliJ. I am using junit5 with AEM mock. Previously it used to work. Although while build testcases running fine but I am not able to run individually test case by right click.

Please let me know if you faced this issue.

Avatar

Avatar
Boost 1
Employee
venkat_krishnat
Employee

Like

1 like

Total Posts

4 posts

Correct Reply

0 solutions
Top badges earned
Boost 1
View profile

Avatar
Boost 1
Employee
venkat_krishnat
Employee

Like

1 like

Total Posts

4 posts

Correct Reply

0 solutions
Top badges earned
Boost 1
View profile
venkat_krishnat
Employee

16-04-2019

This is the right solution and it worked as mentioned by changing the order in core pom.

Avatar

Avatar
Validate 1
Level 2
DIPEN1
Level 2

Likes

2 likes

Total Posts

40 posts

Correct Reply

1 solution
Top badges earned
Validate 1
Boost 1
Affirm 1
View profile

Avatar
Validate 1
Level 2
DIPEN1
Level 2

Likes

2 likes

Total Posts

40 posts

Correct Reply

1 solution
Top badges earned
Validate 1
Boost 1
Affirm 1
View profile
DIPEN1
Level 2

19-05-2019

Any update on how to running Junit test cases in intelliJ ? With @Activate annotation on fields, Junit is not running in IntelliJ Idea.