Maven - Generate Jar and War

后端 未结 8 2078
轻奢々
轻奢々 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:40

    Add following to pom.xml of war project.

    true to configuration of war plugin

    com.yourorg.foobar
    hello-world
    war
    1.0
    hello
    
    
        
            
                org.apache.maven.plugins
                maven-war-plugin
                3.0.0
                
                    true
                
            
        
    
    

    Add following to pom.xml of the project where you want to import jar of war project

    classes to dependency import

    
        com.yourorg.foobar
        hello-world
        1.0
        classes
    
    

提交回复
热议问题