maven deploy additional jar file

前端 未结 6 974
花落未央
花落未央 2020-12-30 00:05

I have an artifact which is being built and deployed in a particular way (not as a jar file). In the course of deployment, a war file is built.

How can I configure t

6条回答
  •  小鲜肉
    小鲜肉 (楼主)
    2020-12-30 00:18

    Maven deploy means deploy artifact to a Maven Repository, not an application server.

    Configure additional JAR artifact like this:

    
        org.apache.maven.plugins
        maven-jar-plugin
        
            
                make-a-jar
                compile
                
                    jar
                
            
        
    
    

    Attach this new artifact to your project:

    
        org.codehaus.mojo
        build-helper-maven-plugin
        1.7
        
            
                attach-artifacts
                package
                
                    attach-artifact
                
                
                    
                        
                            some file
                            jar                           
                        
                    
                
            
        
    
    

提交回复
热议问题