You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@pdfbox.apache.org by Daniel Gredler <dj...@gmail.com> on 2023/08/12 13:02:53 UTC

Build error: Not same digest as expected

Hi all,

I'm getting an error trying to build PDFBox. One of the ZIP files
downloaded during the build (
https://moji.or.jp/wp-content/ipafont/IPAfont/ipag00303.zip) doesn't pass
the checksum validation. However, if I download the file in a browser, the
checksum is correct on that version of the file. Comparing the correct
(browser-downloaded) file vs. the incorrect (Maven-downloaded) file in dhex
seems to indicate that the files are completely different (not just a few
bytes different). This is on Linux, using Maven 3.9.2. Has anybody seen
this issue before?

Thanks,

Daniel

---

[INFO]
------------------------------------------------------------------------
[INFO] Reactor Summary for Apache PDFBox 3.0.0-SNAPSHOT:
[INFO]
[INFO] PDFBox parent ...................................... SUCCESS [
 1.189 s]
[INFO] Apache PDFBox io ................................... SUCCESS [
 3.903 s]
[INFO] Apache FontBox ..................................... SUCCESS [
 8.056 s]
[INFO] Apache XmpBox ...................................... SUCCESS [
 2.759 s]
[INFO] Apache PDFBox ...................................... FAILURE [
11.100 s]
[INFO] Apache Preflight ................................... SKIPPED
[INFO] Apache Preflight application ....................... SKIPPED
[INFO] Apache PDFBox Debugger ............................. SKIPPED
[INFO] Apache PDFBox tools ................................ SKIPPED
[INFO] Apache PDFBox application .......................... SKIPPED
[INFO] Apache PDFBox Debugger application ................. SKIPPED
[INFO] Apache PDFBox examples ............................. SKIPPED
[INFO] Apache PDFBox ...................................... SKIPPED
[INFO]
------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO]
------------------------------------------------------------------------
[INFO] Total time:  27.505 s
[INFO] Finished at: 2023-08-12T14:22:32+02:00
[INFO]
------------------------------------------------------------------------
[WARNING]
[WARNING] Plugin validation issues were detected in 8 plugin(s)
[WARNING]
[WARNING]  * org.apache.maven.plugins:maven-source-plugin:3.2.1
[WARNING]  * org.jacoco:jacoco-maven-plugin:0.8.10
[WARNING]  * org.apache.maven.plugins:maven-site-plugin:3.12.1
[WARNING]  * org.apache.felix:maven-bundle-plugin:5.1.9
[WARNING]  * org.apache.maven.plugins:maven-compiler-plugin:3.10.1
[WARNING]  * org.apache.maven.plugins:maven-remote-resources-plugin:1.7.0
[WARNING]  * org.apache.maven.plugins:maven-surefire-plugin:2.22.2
[WARNING]  * org.apache.maven.plugins:maven-resources-plugin:3.3.0
[WARNING]
[WARNING] For more or less details, use 'maven.plugin.validation' property
with one of the values (case insensitive): [BRIEF, DEFAULT, VERBOSE]
[WARNING]
[ERROR] Failed to execute goal
com.googlecode.maven-download-plugin:download-maven-plugin:1.7.1:wget
(PDFBOX-4106) on project pdfbox: General error: : Not same digest as
expected: expected
<59535137c649a2f8bdbb463cd716426811a6003a65883ca6e45bb0af1d526b3889af0fba3a353e90bc8d373cd32b90a27ff9ff6916ecbccb42e922c09e9b046a>
was
<218bad54116b6f8398261d106a97e719ba9e1bf7aa27fb9491f82c6aa274a76f23cec9f265bc001f352c930d18211f0d95f8e54ca7ac1d2aae19d174e38df46e>
-> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute
goal com.googlecode.maven-download-plugin:download-maven-plugin:1.7.1:wget
(PDFBOX-4106) on project pdfbox: General error:
    at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute2
(MojoExecutor.java:347)
    at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute
(MojoExecutor.java:330)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute
(MojoExecutor.java:213)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute
(MojoExecutor.java:175)
    at org.apache.maven.lifecycle.internal.MojoExecutor.access$000
(MojoExecutor.java:76)
    at org.apache.maven.lifecycle.internal.MojoExecutor$1.run
(MojoExecutor.java:163)
    at org.apache.maven.plugin.DefaultMojosExecutionStrategy.execute
(DefaultMojosExecutionStrategy.java:39)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute
(MojoExecutor.java:160)
    at
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject
(LifecycleModuleBuilder.java:105)
    at
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject
(LifecycleModuleBuilder.java:73)
    at
org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build
(SingleThreadedBuilder.java:53)
    at org.apache.maven.lifecycle.internal.LifecycleStarter.execute
(LifecycleStarter.java:118)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:261)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:173)
    at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:101)
    at org.apache.maven.cli.MavenCli.execute (MavenCli.java:910)
    at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:283)
    at org.apache.maven.cli.MavenCli.main (MavenCli.java:206)
    at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
    at jdk.internal.reflect.NativeMethodAccessorImpl.invoke
(NativeMethodAccessorImpl.java:62)
    at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke (Method.java:566)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced
(Launcher.java:283)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launch
(Launcher.java:226)
    at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode
(Launcher.java:407)
    at org.codehaus.plexus.classworlds.launcher.Launcher.main
(Launcher.java:348)
Caused by: org.apache.maven.plugin.MojoExecutionException: General error:
    at com.googlecode.download.maven.plugin.internal.WGetMojo.execute
(WGetMojo.java:431)
    at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo
(DefaultBuildPluginManager.java:126)
    at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute2
(MojoExecutor.java:342)
    at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute
(MojoExecutor.java:330)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute
(MojoExecutor.java:213)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute
(MojoExecutor.java:175)
    at org.apache.maven.lifecycle.internal.MojoExecutor.access$000
(MojoExecutor.java:76)
    at org.apache.maven.lifecycle.internal.MojoExecutor$1.run
(MojoExecutor.java:163)
    at org.apache.maven.plugin.DefaultMojosExecutionStrategy.execute
(DefaultMojosExecutionStrategy.java:39)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute
(MojoExecutor.java:160)
    at
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject
(LifecycleModuleBuilder.java:105)
    at
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject
(LifecycleModuleBuilder.java:73)
    at
org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build
(SingleThreadedBuilder.java:53)
    at org.apache.maven.lifecycle.internal.LifecycleStarter.execute
(LifecycleStarter.java:118)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:261)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:173)
    at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:101)
    at org.apache.maven.cli.MavenCli.execute (MavenCli.java:910)
    at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:283)
    at org.apache.maven.cli.MavenCli.main (MavenCli.java:206)
    at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
    at jdk.internal.reflect.NativeMethodAccessorImpl.invoke
(NativeMethodAccessorImpl.java:62)
    at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke (Method.java:566)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced
(Launcher.java:283)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launch
(Launcher.java:226)
    at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode
(Launcher.java:407)
    at org.codehaus.plexus.classworlds.launcher.Launcher.main
(Launcher.java:348)
Caused by: org.apache.maven.plugin.MojoFailureException: Not same digest as
expected: expected
<59535137c649a2f8bdbb463cd716426811a6003a65883ca6e45bb0af1d526b3889af0fba3a353e90bc8d373cd32b90a27ff9ff6916ecbccb42e922c09e9b046a>
was
<218bad54116b6f8398261d106a97e719ba9e1bf7aa27fb9491f82c6aa274a76f23cec9f265bc001f352c930d18211f0d95f8e54ca7ac1d2aae19d174e38df46e>
    at
com.googlecode.download.maven.plugin.internal.ChecksumUtils.verifyChecksum
(ChecksumUtils.java:36)
    at
com.googlecode.download.maven.plugin.internal.checksum.Checksums.validate
(Checksums.java:70)
    at com.googlecode.download.maven.plugin.internal.WGetMojo.execute
(WGetMojo.java:389)
    at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo
(DefaultBuildPluginManager.java:126)
    at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute2
(MojoExecutor.java:342)
    at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute
(MojoExecutor.java:330)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute
(MojoExecutor.java:213)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute
(MojoExecutor.java:175)
    at org.apache.maven.lifecycle.internal.MojoExecutor.access$000
(MojoExecutor.java:76)
    at org.apache.maven.lifecycle.internal.MojoExecutor$1.run
(MojoExecutor.java:163)
    at org.apache.maven.plugin.DefaultMojosExecutionStrategy.execute
(DefaultMojosExecutionStrategy.java:39)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute
(MojoExecutor.java:160)
    at
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject
(LifecycleModuleBuilder.java:105)
    at
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject
(LifecycleModuleBuilder.java:73)
    at
org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build
(SingleThreadedBuilder.java:53)
    at org.apache.maven.lifecycle.internal.LifecycleStarter.execute
(LifecycleStarter.java:118)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:261)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:173)
    at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:101)
    at org.apache.maven.cli.MavenCli.execute (MavenCli.java:910)
    at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:283)
    at org.apache.maven.cli.MavenCli.main (MavenCli.java:206)
    at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
    at jdk.internal.reflect.NativeMethodAccessorImpl.invoke
(NativeMethodAccessorImpl.java:62)
    at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke (Method.java:566)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced
(Launcher.java:283)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launch
(Launcher.java:226)
    at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode
(Launcher.java:407)
    at org.codehaus.plexus.classworlds.launcher.Launcher.main
(Launcher.java:348)
[ERROR]
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions,
please read the following articles:
[ERROR] [Help 1]
http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the
command
[ERROR]   mvn <args> -rf :pdfbox

Re: Build error: Not same digest as expected

Posted by Daniel Gredler <dj...@gmail.com>.
Wow, clearing that cache directory fixed it. Thanks!

Daniel



On Sat, Aug 12, 2023 at 3:09 PM Tilman Hausherr <TH...@t-online.de>
wrote:

> I got such errors with 1.7.0 of the download-maven-plugin and I thought
> they had fixed this. I suspect it happens with incomplete downloads. Try
> deleting / replace the file in target/fonts, and also in your maven
> repository. It's in .m2\repository\.cache\download-maven-plugin.
>
> Tilman
>
> On 12.08.2023 15:02, Daniel Gredler wrote:
> > Hi all,
> >
> > I'm getting an error trying to build PDFBox. One of the ZIP files
> > downloaded during the build (
> > https://moji.or.jp/wp-content/ipafont/IPAfont/ipag00303.zip) doesn't
> pass
> > the checksum validation. However, if I download the file in a browser,
> the
> > checksum is correct on that version of the file. Comparing the correct
> > (browser-downloaded) file vs. the incorrect (Maven-downloaded) file in
> dhex
> > seems to indicate that the files are completely different (not just a few
> > bytes different). This is on Linux, using Maven 3.9.2. Has anybody seen
> > this issue before?
> >
> > Thanks,
> >
> > Daniel
> >
> > ---
> >
> > [INFO]
> > ------------------------------------------------------------------------
> > [INFO] Reactor Summary for Apache PDFBox 3.0.0-SNAPSHOT:
> > [INFO]
> > [INFO] PDFBox parent ...................................... SUCCESS [
> >   1.189 s]
> > [INFO] Apache PDFBox io ................................... SUCCESS [
> >   3.903 s]
> > [INFO] Apache FontBox ..................................... SUCCESS [
> >   8.056 s]
> > [INFO] Apache XmpBox ...................................... SUCCESS [
> >   2.759 s]
> > [INFO] Apache PDFBox ...................................... FAILURE [
> > 11.100 s]
> > [INFO] Apache Preflight ................................... SKIPPED
> > [INFO] Apache Preflight application ....................... SKIPPED
> > [INFO] Apache PDFBox Debugger ............................. SKIPPED
> > [INFO] Apache PDFBox tools ................................ SKIPPED
> > [INFO] Apache PDFBox application .......................... SKIPPED
> > [INFO] Apache PDFBox Debugger application ................. SKIPPED
> > [INFO] Apache PDFBox examples ............................. SKIPPED
> > [INFO] Apache PDFBox ...................................... SKIPPED
> > [INFO]
> > ------------------------------------------------------------------------
> > [INFO] BUILD FAILURE
> > [INFO]
> > ------------------------------------------------------------------------
> > [INFO] Total time:  27.505 s
> > [INFO] Finished at: 2023-08-12T14:22:32+02:00
> > [INFO]
> > ------------------------------------------------------------------------
> > [WARNING]
> > [WARNING] Plugin validation issues were detected in 8 plugin(s)
> > [WARNING]
> > [WARNING]  * org.apache.maven.plugins:maven-source-plugin:3.2.1
> > [WARNING]  * org.jacoco:jacoco-maven-plugin:0.8.10
> > [WARNING]  * org.apache.maven.plugins:maven-site-plugin:3.12.1
> > [WARNING]  * org.apache.felix:maven-bundle-plugin:5.1.9
> > [WARNING]  * org.apache.maven.plugins:maven-compiler-plugin:3.10.1
> > [WARNING]  * org.apache.maven.plugins:maven-remote-resources-plugin:1.7.0
> > [WARNING]  * org.apache.maven.plugins:maven-surefire-plugin:2.22.2
> > [WARNING]  * org.apache.maven.plugins:maven-resources-plugin:3.3.0
> > [WARNING]
> > [WARNING] For more or less details, use 'maven.plugin.validation'
> property
> > with one of the values (case insensitive): [BRIEF, DEFAULT, VERBOSE]
> > [WARNING]
> > [ERROR] Failed to execute goal
> > com.googlecode.maven-download-plugin:download-maven-plugin:1.7.1:wget
> > (PDFBOX-4106) on project pdfbox: General error: : Not same digest as
> > expected: expected
> >
> <59535137c649a2f8bdbb463cd716426811a6003a65883ca6e45bb0af1d526b3889af0fba3a353e90bc8d373cd32b90a27ff9ff6916ecbccb42e922c09e9b046a>
> > was
> >
> <218bad54116b6f8398261d106a97e719ba9e1bf7aa27fb9491f82c6aa274a76f23cec9f265bc001f352c930d18211f0d95f8e54ca7ac1d2aae19d174e38df46e>
> > -> [Help 1]
> > org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute
> > goal
> com.googlecode.maven-download-plugin:download-maven-plugin:1.7.1:wget
> > (PDFBOX-4106) on project pdfbox: General error:
> >      at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute2
> > (MojoExecutor.java:347)
> >      at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute
> > (MojoExecutor.java:330)
> >      at org.apache.maven.lifecycle.internal.MojoExecutor.execute
> > (MojoExecutor.java:213)
> >      at org.apache.maven.lifecycle.internal.MojoExecutor.execute
> > (MojoExecutor.java:175)
> >      at org.apache.maven.lifecycle.internal.MojoExecutor.access$000
> > (MojoExecutor.java:76)
> >      at org.apache.maven.lifecycle.internal.MojoExecutor$1.run
> > (MojoExecutor.java:163)
> >      at org.apache.maven.plugin.DefaultMojosExecutionStrategy.execute
> > (DefaultMojosExecutionStrategy.java:39)
> >      at org.apache.maven.lifecycle.internal.MojoExecutor.execute
> > (MojoExecutor.java:160)
> >      at
> > org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject
> > (LifecycleModuleBuilder.java:105)
> >      at
> > org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject
> > (LifecycleModuleBuilder.java:73)
> >      at
> >
> org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build
> > (SingleThreadedBuilder.java:53)
> >      at org.apache.maven.lifecycle.internal.LifecycleStarter.execute
> > (LifecycleStarter.java:118)
> >      at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:261)
> >      at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:173)
> >      at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:101)
> >      at org.apache.maven.cli.MavenCli.execute (MavenCli.java:910)
> >      at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:283)
> >      at org.apache.maven.cli.MavenCli.main (MavenCli.java:206)
> >      at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native
> Method)
> >      at jdk.internal.reflect.NativeMethodAccessorImpl.invoke
> > (NativeMethodAccessorImpl.java:62)
> >      at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke
> > (DelegatingMethodAccessorImpl.java:43)
> >      at java.lang.reflect.Method.invoke (Method.java:566)
> >      at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced
> > (Launcher.java:283)
> >      at org.codehaus.plexus.classworlds.launcher.Launcher.launch
> > (Launcher.java:226)
> >      at
> org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode
> > (Launcher.java:407)
> >      at org.codehaus.plexus.classworlds.launcher.Launcher.main
> > (Launcher.java:348)
> > Caused by: org.apache.maven.plugin.MojoExecutionException: General error:
> >      at com.googlecode.download.maven.plugin.internal.WGetMojo.execute
> > (WGetMojo.java:431)
> >      at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo
> > (DefaultBuildPluginManager.java:126)
> >      at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute2
> > (MojoExecutor.java:342)
> >      at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute
> > (MojoExecutor.java:330)
> >      at org.apache.maven.lifecycle.internal.MojoExecutor.execute
> > (MojoExecutor.java:213)
> >      at org.apache.maven.lifecycle.internal.MojoExecutor.execute
> > (MojoExecutor.java:175)
> >      at org.apache.maven.lifecycle.internal.MojoExecutor.access$000
> > (MojoExecutor.java:76)
> >      at org.apache.maven.lifecycle.internal.MojoExecutor$1.run
> > (MojoExecutor.java:163)
> >      at org.apache.maven.plugin.DefaultMojosExecutionStrategy.execute
> > (DefaultMojosExecutionStrategy.java:39)
> >      at org.apache.maven.lifecycle.internal.MojoExecutor.execute
> > (MojoExecutor.java:160)
> >      at
> > org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject
> > (LifecycleModuleBuilder.java:105)
> >      at
> > org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject
> > (LifecycleModuleBuilder.java:73)
> >      at
> >
> org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build
> > (SingleThreadedBuilder.java:53)
> >      at org.apache.maven.lifecycle.internal.LifecycleStarter.execute
> > (LifecycleStarter.java:118)
> >      at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:261)
> >      at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:173)
> >      at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:101)
> >      at org.apache.maven.cli.MavenCli.execute (MavenCli.java:910)
> >      at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:283)
> >      at org.apache.maven.cli.MavenCli.main (MavenCli.java:206)
> >      at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native
> Method)
> >      at jdk.internal.reflect.NativeMethodAccessorImpl.invoke
> > (NativeMethodAccessorImpl.java:62)
> >      at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke
> > (DelegatingMethodAccessorImpl.java:43)
> >      at java.lang.reflect.Method.invoke (Method.java:566)
> >      at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced
> > (Launcher.java:283)
> >      at org.codehaus.plexus.classworlds.launcher.Launcher.launch
> > (Launcher.java:226)
> >      at
> org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode
> > (Launcher.java:407)
> >      at org.codehaus.plexus.classworlds.launcher.Launcher.main
> > (Launcher.java:348)
> > Caused by: org.apache.maven.plugin.MojoFailureException: Not same digest
> as
> > expected: expected
> >
> <59535137c649a2f8bdbb463cd716426811a6003a65883ca6e45bb0af1d526b3889af0fba3a353e90bc8d373cd32b90a27ff9ff6916ecbccb42e922c09e9b046a>
> > was
> >
> <218bad54116b6f8398261d106a97e719ba9e1bf7aa27fb9491f82c6aa274a76f23cec9f265bc001f352c930d18211f0d95f8e54ca7ac1d2aae19d174e38df46e>
> >      at
> >
> com.googlecode.download.maven.plugin.internal.ChecksumUtils.verifyChecksum
> > (ChecksumUtils.java:36)
> >      at
> > com.googlecode.download.maven.plugin.internal.checksum.Checksums.validate
> > (Checksums.java:70)
> >      at com.googlecode.download.maven.plugin.internal.WGetMojo.execute
> > (WGetMojo.java:389)
> >      at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo
> > (DefaultBuildPluginManager.java:126)
> >      at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute2
> > (MojoExecutor.java:342)
> >      at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute
> > (MojoExecutor.java:330)
> >      at org.apache.maven.lifecycle.internal.MojoExecutor.execute
> > (MojoExecutor.java:213)
> >      at org.apache.maven.lifecycle.internal.MojoExecutor.execute
> > (MojoExecutor.java:175)
> >      at org.apache.maven.lifecycle.internal.MojoExecutor.access$000
> > (MojoExecutor.java:76)
> >      at org.apache.maven.lifecycle.internal.MojoExecutor$1.run
> > (MojoExecutor.java:163)
> >      at org.apache.maven.plugin.DefaultMojosExecutionStrategy.execute
> > (DefaultMojosExecutionStrategy.java:39)
> >      at org.apache.maven.lifecycle.internal.MojoExecutor.execute
> > (MojoExecutor.java:160)
> >      at
> > org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject
> > (LifecycleModuleBuilder.java:105)
> >      at
> > org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject
> > (LifecycleModuleBuilder.java:73)
> >      at
> >
> org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build
> > (SingleThreadedBuilder.java:53)
> >      at org.apache.maven.lifecycle.internal.LifecycleStarter.execute
> > (LifecycleStarter.java:118)
> >      at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:261)
> >      at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:173)
> >      at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:101)
> >      at org.apache.maven.cli.MavenCli.execute (MavenCli.java:910)
> >      at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:283)
> >      at org.apache.maven.cli.MavenCli.main (MavenCli.java:206)
> >      at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native
> Method)
> >      at jdk.internal.reflect.NativeMethodAccessorImpl.invoke
> > (NativeMethodAccessorImpl.java:62)
> >      at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke
> > (DelegatingMethodAccessorImpl.java:43)
> >      at java.lang.reflect.Method.invoke (Method.java:566)
> >      at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced
> > (Launcher.java:283)
> >      at org.codehaus.plexus.classworlds.launcher.Launcher.launch
> > (Launcher.java:226)
> >      at
> org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode
> > (Launcher.java:407)
> >      at org.codehaus.plexus.classworlds.launcher.Launcher.main
> > (Launcher.java:348)
> > [ERROR]
> > [ERROR] Re-run Maven using the -X switch to enable full debug logging.
> > [ERROR]
> > [ERROR] For more information about the errors and possible solutions,
> > please read the following articles:
> > [ERROR] [Help 1]
> > http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
> > [ERROR]
> > [ERROR] After correcting the problems, you can resume the build with the
> > command
> > [ERROR]   mvn <args> -rf :pdfbox
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@pdfbox.apache.org
> For additional commands, e-mail: users-help@pdfbox.apache.org
>
>

Re: Build error: Not same digest as expected

Posted by Tilman Hausherr <TH...@t-online.de>.
I got such errors with 1.7.0 of the download-maven-plugin and I thought 
they had fixed this. I suspect it happens with incomplete downloads. Try 
deleting / replace the file in target/fonts, and also in your maven 
repository. It's in .m2\repository\.cache\download-maven-plugin.

Tilman

On 12.08.2023 15:02, Daniel Gredler wrote:
> Hi all,
>
> I'm getting an error trying to build PDFBox. One of the ZIP files
> downloaded during the build (
> https://moji.or.jp/wp-content/ipafont/IPAfont/ipag00303.zip) doesn't pass
> the checksum validation. However, if I download the file in a browser, the
> checksum is correct on that version of the file. Comparing the correct
> (browser-downloaded) file vs. the incorrect (Maven-downloaded) file in dhex
> seems to indicate that the files are completely different (not just a few
> bytes different). This is on Linux, using Maven 3.9.2. Has anybody seen
> this issue before?
>
> Thanks,
>
> Daniel
>
> ---
>
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Reactor Summary for Apache PDFBox 3.0.0-SNAPSHOT:
> [INFO]
> [INFO] PDFBox parent ...................................... SUCCESS [
>   1.189 s]
> [INFO] Apache PDFBox io ................................... SUCCESS [
>   3.903 s]
> [INFO] Apache FontBox ..................................... SUCCESS [
>   8.056 s]
> [INFO] Apache XmpBox ...................................... SUCCESS [
>   2.759 s]
> [INFO] Apache PDFBox ...................................... FAILURE [
> 11.100 s]
> [INFO] Apache Preflight ................................... SKIPPED
> [INFO] Apache Preflight application ....................... SKIPPED
> [INFO] Apache PDFBox Debugger ............................. SKIPPED
> [INFO] Apache PDFBox tools ................................ SKIPPED
> [INFO] Apache PDFBox application .......................... SKIPPED
> [INFO] Apache PDFBox Debugger application ................. SKIPPED
> [INFO] Apache PDFBox examples ............................. SKIPPED
> [INFO] Apache PDFBox ...................................... SKIPPED
> [INFO]
> ------------------------------------------------------------------------
> [INFO] BUILD FAILURE
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time:  27.505 s
> [INFO] Finished at: 2023-08-12T14:22:32+02:00
> [INFO]
> ------------------------------------------------------------------------
> [WARNING]
> [WARNING] Plugin validation issues were detected in 8 plugin(s)
> [WARNING]
> [WARNING]  * org.apache.maven.plugins:maven-source-plugin:3.2.1
> [WARNING]  * org.jacoco:jacoco-maven-plugin:0.8.10
> [WARNING]  * org.apache.maven.plugins:maven-site-plugin:3.12.1
> [WARNING]  * org.apache.felix:maven-bundle-plugin:5.1.9
> [WARNING]  * org.apache.maven.plugins:maven-compiler-plugin:3.10.1
> [WARNING]  * org.apache.maven.plugins:maven-remote-resources-plugin:1.7.0
> [WARNING]  * org.apache.maven.plugins:maven-surefire-plugin:2.22.2
> [WARNING]  * org.apache.maven.plugins:maven-resources-plugin:3.3.0
> [WARNING]
> [WARNING] For more or less details, use 'maven.plugin.validation' property
> with one of the values (case insensitive): [BRIEF, DEFAULT, VERBOSE]
> [WARNING]
> [ERROR] Failed to execute goal
> com.googlecode.maven-download-plugin:download-maven-plugin:1.7.1:wget
> (PDFBOX-4106) on project pdfbox: General error: : Not same digest as
> expected: expected
> <59535137c649a2f8bdbb463cd716426811a6003a65883ca6e45bb0af1d526b3889af0fba3a353e90bc8d373cd32b90a27ff9ff6916ecbccb42e922c09e9b046a>
> was
> <218bad54116b6f8398261d106a97e719ba9e1bf7aa27fb9491f82c6aa274a76f23cec9f265bc001f352c930d18211f0d95f8e54ca7ac1d2aae19d174e38df46e>
> -> [Help 1]
> org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute
> goal com.googlecode.maven-download-plugin:download-maven-plugin:1.7.1:wget
> (PDFBOX-4106) on project pdfbox: General error:
>      at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute2
> (MojoExecutor.java:347)
>      at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute
> (MojoExecutor.java:330)
>      at org.apache.maven.lifecycle.internal.MojoExecutor.execute
> (MojoExecutor.java:213)
>      at org.apache.maven.lifecycle.internal.MojoExecutor.execute
> (MojoExecutor.java:175)
>      at org.apache.maven.lifecycle.internal.MojoExecutor.access$000
> (MojoExecutor.java:76)
>      at org.apache.maven.lifecycle.internal.MojoExecutor$1.run
> (MojoExecutor.java:163)
>      at org.apache.maven.plugin.DefaultMojosExecutionStrategy.execute
> (DefaultMojosExecutionStrategy.java:39)
>      at org.apache.maven.lifecycle.internal.MojoExecutor.execute
> (MojoExecutor.java:160)
>      at
> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject
> (LifecycleModuleBuilder.java:105)
>      at
> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject
> (LifecycleModuleBuilder.java:73)
>      at
> org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build
> (SingleThreadedBuilder.java:53)
>      at org.apache.maven.lifecycle.internal.LifecycleStarter.execute
> (LifecycleStarter.java:118)
>      at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:261)
>      at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:173)
>      at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:101)
>      at org.apache.maven.cli.MavenCli.execute (MavenCli.java:910)
>      at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:283)
>      at org.apache.maven.cli.MavenCli.main (MavenCli.java:206)
>      at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
>      at jdk.internal.reflect.NativeMethodAccessorImpl.invoke
> (NativeMethodAccessorImpl.java:62)
>      at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke
> (DelegatingMethodAccessorImpl.java:43)
>      at java.lang.reflect.Method.invoke (Method.java:566)
>      at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced
> (Launcher.java:283)
>      at org.codehaus.plexus.classworlds.launcher.Launcher.launch
> (Launcher.java:226)
>      at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode
> (Launcher.java:407)
>      at org.codehaus.plexus.classworlds.launcher.Launcher.main
> (Launcher.java:348)
> Caused by: org.apache.maven.plugin.MojoExecutionException: General error:
>      at com.googlecode.download.maven.plugin.internal.WGetMojo.execute
> (WGetMojo.java:431)
>      at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo
> (DefaultBuildPluginManager.java:126)
>      at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute2
> (MojoExecutor.java:342)
>      at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute
> (MojoExecutor.java:330)
>      at org.apache.maven.lifecycle.internal.MojoExecutor.execute
> (MojoExecutor.java:213)
>      at org.apache.maven.lifecycle.internal.MojoExecutor.execute
> (MojoExecutor.java:175)
>      at org.apache.maven.lifecycle.internal.MojoExecutor.access$000
> (MojoExecutor.java:76)
>      at org.apache.maven.lifecycle.internal.MojoExecutor$1.run
> (MojoExecutor.java:163)
>      at org.apache.maven.plugin.DefaultMojosExecutionStrategy.execute
> (DefaultMojosExecutionStrategy.java:39)
>      at org.apache.maven.lifecycle.internal.MojoExecutor.execute
> (MojoExecutor.java:160)
>      at
> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject
> (LifecycleModuleBuilder.java:105)
>      at
> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject
> (LifecycleModuleBuilder.java:73)
>      at
> org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build
> (SingleThreadedBuilder.java:53)
>      at org.apache.maven.lifecycle.internal.LifecycleStarter.execute
> (LifecycleStarter.java:118)
>      at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:261)
>      at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:173)
>      at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:101)
>      at org.apache.maven.cli.MavenCli.execute (MavenCli.java:910)
>      at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:283)
>      at org.apache.maven.cli.MavenCli.main (MavenCli.java:206)
>      at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
>      at jdk.internal.reflect.NativeMethodAccessorImpl.invoke
> (NativeMethodAccessorImpl.java:62)
>      at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke
> (DelegatingMethodAccessorImpl.java:43)
>      at java.lang.reflect.Method.invoke (Method.java:566)
>      at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced
> (Launcher.java:283)
>      at org.codehaus.plexus.classworlds.launcher.Launcher.launch
> (Launcher.java:226)
>      at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode
> (Launcher.java:407)
>      at org.codehaus.plexus.classworlds.launcher.Launcher.main
> (Launcher.java:348)
> Caused by: org.apache.maven.plugin.MojoFailureException: Not same digest as
> expected: expected
> <59535137c649a2f8bdbb463cd716426811a6003a65883ca6e45bb0af1d526b3889af0fba3a353e90bc8d373cd32b90a27ff9ff6916ecbccb42e922c09e9b046a>
> was
> <218bad54116b6f8398261d106a97e719ba9e1bf7aa27fb9491f82c6aa274a76f23cec9f265bc001f352c930d18211f0d95f8e54ca7ac1d2aae19d174e38df46e>
>      at
> com.googlecode.download.maven.plugin.internal.ChecksumUtils.verifyChecksum
> (ChecksumUtils.java:36)
>      at
> com.googlecode.download.maven.plugin.internal.checksum.Checksums.validate
> (Checksums.java:70)
>      at com.googlecode.download.maven.plugin.internal.WGetMojo.execute
> (WGetMojo.java:389)
>      at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo
> (DefaultBuildPluginManager.java:126)
>      at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute2
> (MojoExecutor.java:342)
>      at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute
> (MojoExecutor.java:330)
>      at org.apache.maven.lifecycle.internal.MojoExecutor.execute
> (MojoExecutor.java:213)
>      at org.apache.maven.lifecycle.internal.MojoExecutor.execute
> (MojoExecutor.java:175)
>      at org.apache.maven.lifecycle.internal.MojoExecutor.access$000
> (MojoExecutor.java:76)
>      at org.apache.maven.lifecycle.internal.MojoExecutor$1.run
> (MojoExecutor.java:163)
>      at org.apache.maven.plugin.DefaultMojosExecutionStrategy.execute
> (DefaultMojosExecutionStrategy.java:39)
>      at org.apache.maven.lifecycle.internal.MojoExecutor.execute
> (MojoExecutor.java:160)
>      at
> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject
> (LifecycleModuleBuilder.java:105)
>      at
> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject
> (LifecycleModuleBuilder.java:73)
>      at
> org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build
> (SingleThreadedBuilder.java:53)
>      at org.apache.maven.lifecycle.internal.LifecycleStarter.execute
> (LifecycleStarter.java:118)
>      at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:261)
>      at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:173)
>      at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:101)
>      at org.apache.maven.cli.MavenCli.execute (MavenCli.java:910)
>      at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:283)
>      at org.apache.maven.cli.MavenCli.main (MavenCli.java:206)
>      at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
>      at jdk.internal.reflect.NativeMethodAccessorImpl.invoke
> (NativeMethodAccessorImpl.java:62)
>      at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke
> (DelegatingMethodAccessorImpl.java:43)
>      at java.lang.reflect.Method.invoke (Method.java:566)
>      at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced
> (Launcher.java:283)
>      at org.codehaus.plexus.classworlds.launcher.Launcher.launch
> (Launcher.java:226)
>      at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode
> (Launcher.java:407)
>      at org.codehaus.plexus.classworlds.launcher.Launcher.main
> (Launcher.java:348)
> [ERROR]
> [ERROR] Re-run Maven using the -X switch to enable full debug logging.
> [ERROR]
> [ERROR] For more information about the errors and possible solutions,
> please read the following articles:
> [ERROR] [Help 1]
> http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
> [ERROR]
> [ERROR] After correcting the problems, you can resume the build with the
> command
> [ERROR]   mvn <args> -rf :pdfbox
>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: users-help@pdfbox.apache.org