【发布时间】:2011-10-08 07:37:56
【问题描述】:
我正在尝试在 Netbeans 7 中调试使用 EclipseLink 静态编织的类的单元测试。如果我关闭静态编织,我可以调试单元测试,但我无法获得要构建的测试的非调试运行(如预期的那样)。如果我打开静态编织,我将无法调试测试。
我的 pom.xml 中有这个:
<plugin>
<artifactId>maven-antrun-plugin</artifactId>
<executions>
<execution>
<phase>process-classes</phase>
<configuration>
<tasks>
<java classname="org.eclipse.persistence.tools.weaving.jpa.StaticWeave"
classpathref="maven.runtime.classpath" fork="true">
<arg line="-loglevel FINE -persistenceinfo src/main/resources target/classes target/classes"/>
</java>
</tasks>
</configuration>
<goals>
<goal>run</goal>
</goals>
</execution>
</executions>
</plugin>
我猜我需要在调试时启动静态编织?有什么想法吗?
【问题讨论】:
标签: netbeans maven eclipselink