Maven - Generate Jar and War

后端 未结 8 2092
轻奢々
轻奢々 2020-12-29 04:24

I have a CXF WS project that I would use it in another project, I would consume this WS in a Web Project but I don\'t know how to generate Jar file.

Please have you

8条回答
  •  夕颜
    夕颜 (楼主)
    2020-12-29 04:44

    This should work:

    
    
        org.apache.maven.plugins
        maven-jar-plugin
        
            
                jar-services-provided
                compile
                
                    jar
                
            
        
    
    
    
    
        org.apache.maven.plugins
        maven-install-plugin
        
            
                install
                
                    install-file
                
                
                    jar
                    ${project.artifactId}
                    ${project.groupId}
                    ${project.version}
                    
                        ${project.build.directory}/${project.artifactId}-${project.version}.jar
                    
                
            
        
    
    

    Taken from this blog.

提交回复
热议问题