2016-08-22 11 views
-1

発行し、私はこの追加: AspectJの表の注釈が

 
[ERROR] The attribute indexes is undefined for the annotation type Table 
    E:\T2_SupplierPortal_Angular\core\model\src\main\java\com\model\PaymentGrp.java:32 
indexes={ 
^^^^ 
...

org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.codehaus.mojo:aspectj-maven-plugin:1.8:compile (default) on project model: AJC compiler errors: error at indexes={

私がこのプラグインを追加するとき、それは代わりのJPAの古いバージョンを使用しているようですJPA 2.1。

私の構成:

<plugin> 
      <groupId>org.codehaus.mojo</groupId> 
      <artifactId>aspectj-maven-plugin</artifactId> 
      <version>1.8</version> 
      <executions> 
       <execution> 
        <phase>process-sources</phase> 
        <goals> 
         <goal>compile</goal> 
        </goals> 
        <configuration> 
         <source>1.8</source> 
         <target>1.8</target> 
         <complianceLevel>1.8</complianceLevel> 
         <weaveDependencies> 
          <weaveDependency> 
           <artifactId>common-logger</artifactId> 
           <groupId>com.common</groupId> 
          </weaveDependency> 
         </weaveDependencies> 
        </configuration> 
       </execution> 
      </executions> 
      <dependencies> 
       <dependency> 
        <groupId>org.aspectj</groupId> 
        <artifactId>aspectjtools</artifactId> 
        <version>1.8.9</version> 
       </dependency> 
      </dependencies> 
     </plugin> 

私はこの問題を解決する方法がわかりません。ありがとう

答えて

0

ソースコードの構文エラーを取り除き、コンパイルをやり直してください。おそらくAspectJの問題でさえありません。ちょうどJava構文の問題です。