Maven packaging images in the root of the jar file

后端 未结 3 1886
被撕碎了的回忆
被撕碎了的回忆 2020-12-10 09:24

Folks,

I am developing a Java application using Eclipse. Maven is used to create the final jar file.

In the application, I use some image icons for the butto

3条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-12-10 10:04

    I had my favicon in the root of maven project and it was not getting included in the generated war. With lot of googling I got the solution from maven help page.

    
    org.apache.maven.plugins
    maven-war-plugin
    3.0.0
    
      
        
            ${project.basedir}
          
          
            favicon.ico
          
        
      
    
    
    

提交回复
热议问题