I never found a satisfactory answer to this question on the web and this
seems to be the primary result Google returns when searching.  Here is how I
solved this problem.  Note that my maven phases are linked to the test phase
since I set this up for the hector-jpa Cassandra storage tests.




      
      
        maven-compiler-plugin
        2.3
        
       
         
          
            generate-query-metadata
            generate-test-sources
            
              testCompile
            
            
              1.6
              1.6
              true
              true
              true
              -Aopenjpa.metamodel=true
              
                com/datastax/hectorjpa/bean/**/*.java
              
            
          


          
          
            compile-all-tests
            test-compile
            
              testCompile
            
            
              1.6
              1.6
              true
              true
              true
            
          

        

      


      
      
        org.codehaus.mojo
        openjpa-maven-plugin
        1.2
        
          
            testEnhancer
            process-test-classes
            
              test-enhance
            
          
        
        
          com/datastax/hectorjpa/bean/**/*.class
        
      



--
View this message in context: 
http://openjpa.208410.n2.nabble.com/Generation-of-Canonical-MetaModel-Classes-with-Maven-tp5424291p6225272.html
Sent from the OpenJPA Users mailing list archive at Nabble.com.

Reply via email to