我正在尝试使用 ANT 生成 EclipseLink JPA 元模型
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<project basedir="." default="antan" name="Annotation">
<property name="target" value="1.6" />
<property name="source" value="1.6" />
<property name="src.dir" value="D:/project/test/entity/" />
<property name="target.dir" value="D:/project/test/target/" />
<property name="src.lib" location="public_html/WEB-INF/lib" />
<path id="classpath">
<fileset dir="${src.lib}">
<include name="*.jar" />
</fileset>
</path>
<target name="antan">
<javac srcdir="${src.dir}"
destdir="${target.dir}"
failonerror="false"
fork="true">
<compilerarg value="-proc:only"/>
<classpath refid="classpath" />
</javac>
</target>
</project>
但是我收到以下错误,这可能是什么原因?
错误的服务配置文件,或构造处理器对象时抛出异常:javax.annotation.processing.Processor: Provider org.eclipse.persistence.internal.jpa.modelgen.CanonicalModelProcessor not found