maven-datanucleus-plugin无法增强类

时间:2015-03-08 06:30:26

标签: maven google-app-engine datanucleus

我在datanucleus:enhance步骤结束时得到以下内容:

DataNucleus Enhancer completed with success for 0 classes. Timings : input=103 ms, enhance=0 ms, total=103 ms. Consult the log for full details
DataNucleus Enhancer completed and no classes were enhanced. Consult the log for full details

我验证了目标目录列在CLASSPATH中:WEB-INF/classes

单个类文件位于WEB-INF/classes/com/company/*/*.class

这是插件声明:

        <plugin>
            <groupId>org.datanucleus</groupId>
            <artifactId>maven-datanucleus-plugin</artifactId>
            <version>3.2.0-m1</version>
            <configuration>
                <api>JDO</api>
                <props>${basedir}/datanucleus.properties</props>
                <verbose>true</verbose>
                <enhancerName>ASM</enhancerName>
            </configuration>
            <executions>
                <execution>
                    <phase>process-classes</phase>
                    <goals>
                        <goal>enhance</goal>
                    </goals>
                </execution>
            </executions>
            <dependencies>
                <dependency>
                    <groupId>org.datanucleus</groupId>
                    <artifactId>datanucleus-api-jdo</artifactId>
                    <version>4.1.0-m1</version>
                </dependency>
            </dependencies>
        </plugin>

为什么即使CLASSPATH正确,datanucleus增强插件也无法识别类文件?

0 个答案:

没有答案