[ 
https://issues.apache.org/jira/browse/COMPRESS-694?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17924448#comment-17924448
 ] 

Hiren Babariya commented on COMPRESS-694:
-----------------------------------------

Hello [~ggregory] ,

I have attached the full dependency tree:

 *1 . File Name: {{compressError.txt}}* → This file represents the dependency 
tree after upgrading the Spring Boot version from {*}3.1.7 to 3.3.4{*}.

*2 . File Name: {{compressExclude.txt}}* → In this file, I upgraded Spring Boot 
 *3.1.7* to *3.3.4* and all other required dependency version also and excluded 
the {{commons-compress}} dependency from all projects. After analyzing the 
dependency tree, I did not find any version of {{{}commons-compress{}}}. 
However, when checking the cache, I found the following versions, which I have 
listed below.

 
{code:java}
---> find ~/.gradle/caches -name "commons-compress-*.jar"                      
/Users/mycompany/.gradle/caches/modules-2/files-2.1/org.apache.commons/commons-compress/1.25.0/9d35aec423da6c8a7f93d7e9e1c6b1d9fe14bb5e/commons-compress-1.25.0.jar
/Users/mycompany/.gradle/caches/jars-9/a32afed96196a9da1cbb5e849781d359/commons-compress-1.25.0.jar
 {code}
 

 

>  java.lang.NoSuchMethodError: ZipArchiveOutputStream.putArchiveEntry
> --------------------------------------------------------------------
>
>                 Key: COMPRESS-694
>                 URL: https://issues.apache.org/jira/browse/COMPRESS-694
>             Project: Commons Compress
>          Issue Type: Bug
>          Components: Build
>    Affects Versions: 1.21, 1.22, 1.25.0, 1.26.0, 1.26.1, 1.26.2, 1.27.1
>         Environment: On local and server also
>            Reporter: Hiren Babariya
>            Priority: Major
>         Attachments: Screenshot 2025-02-04 at 4.30.21 PM.png, compress Error 
> bootjar.txt, compressError.txt
>
>
> while spring boot upgrade 3.1.7 to 3.3.51 , I am facing below issue while 
> building jar
> Errors :
> > Task :bootJar FAILED == FAILURE: Build failed with an exception. * What 
> > went wrong: Execution failed for task ':bootJar'. > 'void 
> > org.apache.commons.compress.archivers.zip.ZipArchiveOutputStream.putArchiveEntry(org.apache.commons.compress.archivers.zip.ZipArchiveEntry)'
> Caused by: java.lang.NoSuchMethodError: 'void 
> org.apache.commons.compress.archivers.zip.ZipArchiveOutputStream.putArchiveEntry(org.apache.commons.compress.archivers.zip.ZipArchiveEntry)'
>  
> Dependancy use - 
> implementation 'org.apache.commons:commons-compress:1.26.0' or 
> implementation 'org.apache.commons:commons-compress:1.26.2' or
> implementation 'org.apache.commons:commons-compress:1.27.1'
> 1.21 , 1.22 . 1.25.0 also same issue facing



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to