九、Maven项目管理

https://search.maven.org
https://developer.aliyun.com/mvn/view
Maven输出Jar包插件:maven-assembly-plugin
Maven输出War包插件:maven-war-plugin
IDEA创建基础Maven项目并配置WEB环境?

截屏2022-07-17 下午5.46.53.png

pom.xml文件配置:



    4.0.0

    org.example
    mavenapp
    1.0-SNAPSHOT
    
    jar

    
        8
        8
    
    
    
    
    
    
        
            spring
            https://maven.aliyun.com/repository/spring
            
                true
            
            
                true
            
        
        
            aliyun
            aliyun
            https://maven.aliyun.com/repository/public
        
    
    
        
            mysql
            mysql-connector-java
            8.0.29
        
        
            com.belerweb
            pinyin4j
            2.5.1
        
        
            org.springframework
            spring-webmvc
            5.3.22
        
    
    
        
        
            
                org.apache.maven.plugins
                maven-assembly-plugin
                2.5.5
                
                    
                        
                            com.imooc.maven.PinyinTestor
                        
                    
                    
                        
                        jar-with-dependencies
                    
                
            
        
    


    
        maven-web
        
            
                org.apache.maven.plugins
                maven-war-plugin
                3.2.2
            
        
    

你可能感兴趣的:(九、Maven项目管理)