栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 软件开发 > 后端开发 > Java

thrift IDEA与maven的plugin配置

Java 更新时间: 发布时间: IT归档 最新发布 模块sitemap 名妆网 法律咨询 聚返吧 英语巴士网 伯小乐 网商动力

thrift IDEA与maven的plugin配置

文章目录
  • goal
  • 参考
  • pom配置

goal

在IDEA的maven插件部分能呈现如下

参考

安装部分:
Mac Thrift安装教程
Mac Thrift降级

安装完成之后我们需要配置环境变量:
https://www.cnblogs.com/quickcodes/p/5398709.html
https://www.cnblogs.com/smartloli/p/4220545.html
Thrift安装还需要安装bison,并且thrift和bison版本要对应上

安装完成之后结合idea与mvn配置教程:
https://blog.csdn.net/u010900754/article/details/80172671
注意:idea依赖的包要跟你系统安装的thrift版本一致,否则会报错

pom配置

mvn plugin配置

 
        
            org.apache.thrift
            libthrift
            0.1.10
        
        < ! --其他公司组件省略--->
    

    
        
            
                maven-compiler-plugin
                2.3.1
                
                    1.6
                    1.6
                    utf-8
                
                
                    
                        org.codehaus.plexus
                        plexus-compiler-javac
                        1.8.1
                    
                
            
            
                maven-source-plugin
                2.1
                
                    true
                
                
                    
                        compile
                        
                            jar
                        
                    
                
            
            
                maven-resources-plugin
                2.2
                
                    utf-8
                
            
            
                org.apache.thrift.tools
                maven-thrift-plugin
                0.1.10
                
                    
                    //这个路径下的文件必须时thrift的执行文件
                        /usr/local/Cellar/thrift@0.9/0.9.3.1/bin/thrift
                    
					
                    
                    
                    
                    
                    
                    // 指明java1生成器
                    java
                   
                
               
                    
                        thrift-sources
                        generate-sources
                        
                            compile
                        
                    
                    
                        thrift-test-sources
                        generate-test-sources
                        
                            testCompile
                        
                    
                
            
        
    

其他plugin配置


        
            
                org.mybatis.generator
                mybatis-generator-maven-plugin
                1.3.7
                
                    
                        mybatis-generator/generatorConfig.xml
                    
                    true
                    true
                
                
                    
                        mysql
                        mysql-connector-java
                        5.1.46
                    
                    
                        com.bytedance.cg
                        mybatis.generator.extend
                        0.0.1-SNAPSHOT
                    
                    
                        com.itfsw
                        mybatis-generator-plugin
                        1.2.3
                    
                
            
            
                
                org.codehaus.gmavenplus
                gmavenplus-plugin
                1.6
                
                    
                        
                            compile
                            compileTests
                        
                    
                
            
            
                org.apache.maven.plugins
                maven-surefire-plugin
                3.0.0-M1
                
                    ../surefire-reports
                    
                        jacoco.exec
                    
                
            

            
                org.apache.maven.plugins
                maven-compiler-plugin
                3.5.1 
                
                    1.8 
                    1.8 
                    
                        
                            org.projectlombok
                            lombok
                            ${lombok-version}
                        
                        
                            org.mapstruct
                            mapstruct-processor
                            ${mapstruct.version}
                        
                        
                    
                
            

            
                org.jacoco
                jacoco-maven-plugin
                ${jacoco.version}
                
                    
                        default-instrument
                        
                            instrument
                        
                    
                    
                        default-restore-instrumented-classes
                        
                            restore-instrumented-classes
                        
                    
                
            
        
    


    
        
            nexus-plugin-release
            
                http://.../
            
            
                true
            
            
                true
            
        
    
转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/353859.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号