drewnoakes / metadata-extractor

Extracts Exif, IPTC, XMP, ICC and other metadata from image, video and audio files
Apache License 2.0
2.56k stars 480 forks source link

Failed to execute goal org.apache.maven.plugins:maven-gpg-plugin:1.6:sign (sign-artifacts) #495

Open subhabm opened 4 years ago

subhabm commented 4 years ago

I just cloned the project to mvn clean install At first I had to change maven-compiler-plugin source and target from 1.6 to 1.7 as 1.6 is no longer supported. Now I am getting the exception while trying to install.

Failed to execute goal org.apache.maven.plugins:maven-gpg-plugin:1.6:sign (sign-artifacts) on project metadata-extractor: Exit code: 2 ->

9037568 commented 3 years ago

Think I'm seeing the same. Building on Win 10 I get this exception:

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-gpg-plugin:1.6:sign (sign-artifacts) on project metadata-extractor: Unable to execute gpg command: Error while executing process. Cannot run program "gpg.exe": CreateProcess error=2, The system cannot find the file specified -> [Help 1]

I was able to fix the build by commenting out lines 180-193 in pom.xml.

Nadahar commented 3 years ago

The gpg plugin should probably be put in a Maven profile, so that it would only run if said profile was explicitly invoked.

Example:

mvn package -Psign
9037568 commented 3 years ago

Thanks, @Nadahar . I've attempted your suggestion.

Nadahar commented 3 years ago

I guess @drewnoakes will have to actually test if the signing is working as intended with this PR. It looks sound to me at a glance.