EclipseLink:静态编织,继承和OSGi

时间:2016-06-09 04:57:26

标签: java maven osgi eclipselink

我使用eclipselink 2.6.3。我有两个班级:

@Entity
class ClassA extends ClassB{...}

@MappedSuperclass
class ClassB{...}

我使用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>

当ClassA和ClassB在同一捆编织工作时。然而,当它们处于不同的捆绑中时,编织不起作用(尽管我将这个插件添加到两个捆绑包中)。如何解决这个问题?

0 个答案:

没有答案