Javacv: How to only import android platform?

Created on 3 Mar 2017  路  4Comments  路  Source: bytedeco/javacv

I use it

dependencies {
    compile fileTree(include: ['*.jar'], dir: 'libs')
    compile 'org.bytedeco:javacv-platform:1.3.1'
    compile 'org.bytedeco.javacpp-presets:ffmpeg:3.2.1-1.3'
    compile 'org.bytedeco.javacpp-presets:opencv:3.1.0-1.3'
}

but it's import all platform.

like is
11

How to only import android platform? please:)

question

Most helpful comment

@cjsky666 you can use maven-war-plugin and exclude other platform ,like this

<configuration>
    <packagingExcludes>
        WEB-INF/lib/*android-arm.jar,
        WEB-INF/lib/*android-arm64.jar,
        WEB-INF/lib/*android-x86.jar,
        WEB-INF/lib/*android-x86_64.jar,
        WEB-INF/lib/*ios-arm.jar,
        WEB-INF/lib/*ios-arm64.jar,
        WEB-INF/lib/*ios-x86_64.jar,
        WEB-INF/lib/*windows-x86.jar,
        WEB-INF/lib/*windows-x86_64.jar,
        WEB-INF/lib/*macosx-x86_64.jar,
        WEB-INF/lib/*linux-x86.jar
    </packagingExcludes>
</configuration>

All 4 comments

You can either exclude them, or include only the artifacts you need, the ones not suffixed with "-platform".

I get the problem too锛宧ow to exclusion other platform support on maven pom.xml . because it鈥榮 so fat when I compile my project

@cjsky666 you can use maven-war-plugin and exclude other platform ,like this

<configuration>
    <packagingExcludes>
        WEB-INF/lib/*android-arm.jar,
        WEB-INF/lib/*android-arm64.jar,
        WEB-INF/lib/*android-x86.jar,
        WEB-INF/lib/*android-x86_64.jar,
        WEB-INF/lib/*ios-arm.jar,
        WEB-INF/lib/*ios-arm64.jar,
        WEB-INF/lib/*ios-x86_64.jar,
        WEB-INF/lib/*windows-x86.jar,
        WEB-INF/lib/*windows-x86_64.jar,
        WEB-INF/lib/*macosx-x86_64.jar,
        WEB-INF/lib/*linux-x86.jar
    </packagingExcludes>
</configuration>
Was this page helpful?
0 / 5 - 0 ratings

Related issues

ahmedaomda picture ahmedaomda  路  4Comments

y4nnick picture y4nnick  路  3Comments

UpAndDownAgain picture UpAndDownAgain  路  3Comments

jakubondrus picture jakubondrus  路  4Comments

The-Crocop picture The-Crocop  路  5Comments