"mvn clean install" needs exifTool executable in the project folder

Issue #19 resolved
Yannis created an issue

Hi,

many thanks for mavenising your project!

I get an exception when doing "mvn clean install":

Caused by: java.lang.AssertionError: [The exifTool executable is missing. Make sure to place it in the exiftool folder a
t the root of this project] file:<D:\backedUp\Coding\git-clones\j-exiftool\exiftool\exiftool.exe> should exist

I can overcome this and build with the -DskipTests=true flag.

I have set-up the system variable EXIFTOOL_TOOL and my Junits (that rely on your code) execute just fine. You could possibly update your Junits to use the system variable as well?

Many thanks!

PS: For completeness, I attach the output of: mvn clean install -e -X > mvn.log and the exception trace that is output to the console.

Comments (1)

  1. Phillip repo owner

    Fixed the unit test as follows: 1. it first checks in the same way as JExifTool does (via system property or environment variable and a fallback)
    2. if it doesn't exist, either use exiftool/exiftool or exiftool/exiftool.exe depending on OS 3. if none is found -> assertion failure

    Changes are available in the master branch.

  2. Log in to comment