问题
I am using metadata-extractor to extract geo location from images but class file of metadata-extractor unable to recognise in java class, while all the classes are showing in maven lib.
Maven dependency
<dependency>
<groupId>com.drewnoakes</groupId>
<artifactId>metadata-extractor</artifactId>
<version>2.11.0</version>
</dependency>
<dependency>
<groupId>javaxt</groupId>
<artifactId>javaxt-core</artifactId>
<version>1.8.1</version>
</dependency>
Java import classes
import com.drew.imaging.ImageMetadataReader;
import com.drew.imaging.ImageProcessingException;
import com.drew.lang.GeoLocation;
import com.drew.metadata.Metadata;
import com.drew.metadata.exif.ExifSubIFDDirectory;
import com.drew.metadata.exif.GpsDirectory;
来源:https://stackoverflow.com/questions/50114454/metadata-extractor-class-file-unable-to-import-in-java-class