栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 前沿技术 > 大数据 > 大数据系统

maven的配置文件pom.xml

maven的配置文件pom.xml

参考:https://blog.csdn.net/qq_33363618/article/details/79438044

基本配置


    
    4.0.0
    
    
        org.springframework.boot
        spring-boot-starter-parent
        1.5.9.RELEASE
        
    
    
    com.danny
    
    loglog
    
    0.0.1-SNAPSHOT
    
    loglog
    
    Demo project for Spring Boot
    
    jar
    
    
        1.8
    
    
    
        
            
            
                org.springframework.boot
                spring-boot-starter-web
                
                
                    
                        spring-boot-starter-logging
                        org.springframework.boot
                    
                
            
            
                org.springframework.boot
                spring-boot-devtools
                
                runtime
                
                true
                
                jdk15
            
        
    


构建配置
 
        
        loglog
        
        ${basedir}/target
        
        
            
            
                org.apache.maven.plugins
                maven-compiler-plugin
                3.1
                
                    1.8
                    1.8
                    UTF-8
                
            

            
            
                org.apache.maven.plugins
                maven-jar-plugin
                
                    target/classes/
                    
                        
                            com.danny.loglog.LoglogApplication
                            
                            
                            false
                            true
                            lib/
                        
                        
                            .
                        
                    
                    
                    
                        
                    
                
            

            
            
                org.apache.maven.plugins
                maven-war-plugin
                
                    demo-Rest
                    
                        
                            src/main/webapp/WEB-INF
                            true
                            WEB-INF
                            
                                web.xml
                            
                        
                    
                
            

            
            
                org.springframework.boot
                spring-boot-maven-plugin
            
        
    
分发配置

一般用于将项目发布到nexus私库上时需要配置
注意:nexus的账号密码一般在setting.xml中的标签servers配置,其中repository和id和server的id需要一一对应

    
        
            deploymentRepo
             repo-name
            http://*.*.*.*:8081/nexus/content/groups/public/
        
        
            
            
            
            
            
        
    
转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/758921.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

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

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