I have the following service class:
@Component(immediate = true)
@Service
public class Myclass implements MyInterface
{
@Override
public String doIt()
{
return "This is default bean";
}
}
In pom file I have:
<dependency>
<groupId>org.apache.felix</groupId>
<artifactId>org.apache.felix.scr.annotations</artifactId>
<version>1.9.6</version>
<scope>provided</scope>
</dependency>
...
<build>
<plugins>
<plugin>
<groupId>org.apache.felix</groupId>
<artifactId>maven-bundle-plugin</artifactId>
<version>2.4.0</version>
<extensions>true</extensions>
<configuration>
<instructions>
<_include>
-target/classes/META-INF/beans.bnd
</_include>
<Export-Package></Export-Package>
<Private-Package>com.company.temp.*</Private-Package>
</instructions>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.felix</groupId>
<artifactId>maven-scr-plugin</artifactId>
<version>1.21.0</version>
<executions>
<execution>
<id>generate-scr-scrdescriptor</id>
<goals>
<goal>scr</goal>
</goals>
</execution>
</executions>
</plugin>
...
<plugins>
</build>
The problem is xml file for DS is not generated. Besides, there is no Service-Component line in manifest file. Where is my mistake (PS java8)?