Although this question is not directly related to gemini, it is related with osgi and eclipselink that why I decided to ask it here.
I use eclipselink 2.6.3. And I have two classes:
@Entity
class ClassA extends ClassB{...}
@MappedSuperclass
class ClassB{...}
And I do static weaving using maven-plugin:
<plugin>
<groupId>de.empulse.eclipselink</groupId>
<artifactId>staticweave-maven-plugin</artifactId>
<version>1.0.0</version>
<executions>
<execution>
<phase>process-classes</phase>
<goals>
<goal>weave</goal>
</goals>
<configuration>
<persistenceXMLLocation>META-INF/persistence.xml</persistenceXMLLocation>
<logLevel>ALL</logLevel>
</configuration>
</execution>
</executions>
<dependencies>
<dependency>
<groupId>org.eclipse.persistence</groupId>
<artifactId>org.eclipse.persistence.jpa</artifactId>
<version>${eclipselink.version}</version>
</dependency>
</dependencies>
</plugin>
When ClassA and ClassB are in the same bundle weaving works. However, when they are in different bundles weaving doesn't work (although I added this plugin to both bundles). How to fix this problem?