Maven Archiver putting in weird line breaks in classpath for manifest

前端 未结 2 1428
眼角桃花
眼角桃花 2021-01-17 18:13

Per the java spec the classpath line in the manifest.mf for a jar can only be a certain number of bytes. After that a line break is inserted and the new line begins with an

2条回答
  •  情歌与酒
    2021-01-17 18:16

    I was struggling ~8 hours. Plexus archiver always repacks/restructures your MANIFEST file if even you specify custom one. Line breaks are always added (72 chars limitation) There is no way to change this behaviour plexus archiver code I found the following workaround. I started using truezip-maven-plugin to update generated ear:

            
                org.codehaus.mojo
                truezip-maven-plugin
                
                    
                        replace-broken-manifest
                        
                            copy
                        
                        package
                        
                          
                            
                              src/main/resources/META-INF/MANIFEST.MF
                              ${project.build.directory}/${project.build.finalName}.${project.packaging}/META-INF
                            
                          
                        
                    
                
            
    

提交回复
热议问题