-
Notifications
You must be signed in to change notification settings - Fork 49
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update osgi annotations in rest endpoint #310
Update osgi annotations in rest endpoint #310
Conversation
05e8a7a
to
85c8504
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code from this PR is not compiling. Travis log says:
[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] Picked up _JAVA_OPTIONS: -Xmx2048m -Xms512m
/home/travis/build/Cognifide/aet/rest-endpoint/src/main/java/com/cognifide/aet/rest/helpers/ReportConfigurationManager.java:[18,51] error: package com.cognifide.aet.rest.helpers.configuration does not exist
[ERROR] /home/travis/build/Cognifide/aet/rest-endpoint/src/main/java/com/cognifide/aet/rest/helpers/ReportConfigurationManager.java:[27,2] error: cannot find symbol
symbol: class ReportConfigurationManagerConf
location: class ReportConfigurationManager
[ERROR] /home/travis/build/Cognifide/aet/rest-endpoint/src/main/java/com/cognifide/aet/rest/helpers/ReportConfigurationManager.java:[30,23] error: cannot find symbol
symbol: class ReportConfigurationManagerConf
location: class ReportConfigurationManager
[ERROR] /home/travis/build/Cognifide/aet/rest-endpoint/src/main/java/com/cognifide/aet/rest/helpers/ReportConfigurationManager.java:[24,17] error: cannot find symbol
symbol: class ReportConfigurationManagerConf
My bad, I forgot add files to git repository ;) |
import org.slf4j.Logger; | ||
import org.slf4j.LoggerFactory; | ||
|
||
@Service | ||
@Component(label = "MetadataServlet", description = "Returns Suite Metadata", immediate = true) | ||
@Component(service = BasicDataServlet.class, immediate = true) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you check if service = HttpServlet.class
would be enough here and in other BasicDataServlet
extensions please? We only want this class to be registered as a servlet. It won't be referenced anywhere.
test-executor/pom.xml
Outdated
@@ -123,6 +123,7 @@ | |||
|
|||
<build> | |||
<plugins> | |||
<!-- ToDo: remove me when all felix dependencies are removed --> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please clear also dependencies:
<dependency>
<groupId>org.apache.sling</groupId>
<artifactId>org.apache.sling.commons.osgi</artifactId>
</dependency>
and
<dependency>
<groupId>org.apache.felix</groupId>
<artifactId>org.apache.felix.scr.annotations</artifactId>
</dependency>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I edited wrong file, now should be correct
baffb38
to
5374660
Compare
5374660
to
34d8e54
Compare
…tations-rest-endpoint
I updated osgi annotations in rest endpoint
Motivation and Context
Before, annotations was marked as deprecated
Screenshots (if appropriate):
Types of changes
Checklist:
I hereby agree to the terms of the AET Contributor License Agreement.