我在我在Eclipse中开发的Android应用中使用FFmpegMediaMetadataRetriever(以下简称FMMR)。我试图将其转换为Maven项目,这是造成问题的最后依赖。
Maven正确下载FMMR,但它没有链接到" Maven Dependencies"在Eclipse中,并将其导入到类中会给出错误"导入wseemann无法解析"。其他依赖项可以正常工作。
FMMR作为APK发布;其他人都是JAR。
完整的POM是:
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.github.pconley</groupId>
<version>0.0.1-SNAPSHOT</version>
<packaging>apk</packaging>
<artifactId>TestApp</artifactId>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
</properties>
<dependencies>
<dependency>
<groupId>com.google.android</groupId>
<artifactId>android</artifactId>
<version>4.1.1.4</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>com.github.wseemann</groupId>
<artifactId>FFmpegMediaMetadataRetriever</artifactId>
<version>1.0.0</version>
<scope>runtime</scope>
<type>apk</type>
</dependency>
</dependencies>
<build>
<finalName>${project.artifactId}</finalName>
<sourceDirectory>src</sourceDirectory>
<pluginManagement>
<plugins>
<plugin>
<groupId>com.jayway.maven.plugins.android.generation2</groupId>
<artifactId>android-maven-plugin</artifactId>
<version>3.9.0-rc.3</version>
<extensions>true</extensions>
</plugin>
</plugins>
</pluginManagement>
<plugins>
<plugin>
<groupId>com.jayway.maven.plugins.android.generation2</groupId>
<artifactId>android-maven-plugin</artifactId>
<configuration>
<sdk>
<platform>21</platform>
</sdk>
<testCoverageFile>/data/data/com.github.pconley.TestApp/cache/test-coverage.ec</testCoverageFile>
</configuration>
</plugin>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.1</version>
<configuration>
<source>1.7</source>
<target>1.7</target>
</configuration>
</plugin>
</plugins>
</build>
</project>
一些注意事项:
我做错了什么,或者FMMR APK以某种方式错误地构建了?