Eclipse issue with Maven build and JDK when generating Qclasses in Querydsl

后端 未结 9 739
感动是毒
感动是毒 2020-12-05 04:51

When I add this code below in my pom.xml to support Querydsl


  

        
9条回答
  •  一向
    一向 (楼主)
    2020-12-05 05:35

    You could try with this in the pom:

    
      com.mysema.maven
      apt-maven-plugin
      1.0.6
      
         
          
            process
          
          
            target/generated-sources/java
            com.mysema.query.apt.jpa.JPAAnnotationProcessor
          
        
      
      
        
          com.sun
          tools
          1.7
          system
          ${java.home}/../lib/tools.jar
         
      
    
    

    And see if it changes anything. It should force tools.jar in the build path.


    Edit. since that didn't help, try specifying

    -vm 
    D:/work/Java/jdk1.6.0_13/bin/javaw.exe
    

    in eclipse.ini (separate lines are important), as explained in this thread.

提交回复
热议问题