Conflicting versions of datanucleus enhancer in a maven google app engine project

后端 未结 6 572
南方客
南方客 2020-12-09 09:54

I\'m having a problem setting up datanucleus enhancer to use with a google app engine project. If I use the datanucleus eclipse plugin everything goes well, but in my maven

6条回答
  •  猫巷女王i
    2020-12-09 10:20

    I ran into the same issue while testing a maven gae plugin archetype.

    I fixed it by adding exclusions in my gae runtime transitive dependencies

    
            
                net.kindleit
                gae-runtime
                ${gae.version}
                pom
                
                    
                        com.google.appengine.orm
                        datanucleus-core
                    
    
                
            
    

    and then adding the nucleus core as a runtime dependency

    
                org.datanucleus
                datanucleus-core
                ${datanucleus-core.version}
                runtime
                
                    
                        javax.transaction
                        transaction-api
                    
                
            
    

    as keeping the gae plugin section simple:

    
                    org.datanucleus
                    maven-datanucleus-plugin
                    ${maven-datanucleus-plugin.version}
                    
                        
                        **/model/*.class
                        true
                        ASM
                        JDO
                    
                    
                        
                            compile
                            
                                enhance
                            
                        
                    
                
    

提交回复
热议问题