Beginner's Guide to Setup Xuggler

前端 未结 2 2093
长发绾君心
长发绾君心 2020-12-03 19:53

To work with Xuggler you need xuggle-xuggler-5.4.jar. According to the people who made this, most users only need the above-mentioned JAR file. However, this is

2条回答
  •  感动是毒
    2020-12-03 20:30

    The following files list the other jars which xuggle depends upon:

    • ivy.xml
    • pom.xml

    You can read these and then manually retrieve them from the appropriate repository, but I would submit it's simpler to start using a dependency manager.

    You asked how to download these dependencies, well ivy has a convenient command-line mode of operation. (See example below)

    Eclipse integration is very tough.... Once you've downloaded the jar you could try and generate the ".classpath" file or just manually add each jar via the Eclipse GUI. The reason I don't recommend this approach is because there are Eclipse plugins for both Maven and Ivy that would do this for you automatically.

    Example

    Run ivy from command-line as follows:

    java -jar ivy.jar -settings ivysettings.xml -dependency xuggle xuggle-xuggler 5.4 -retrieve "lib/[artifact]-[revision].[ext]"
    

    It will retrieve xuggle and all its dependencies into a "lib" directory as follows:

    ├── ivysettings.xml
    └── lib
        ├── commons-cli-1.1.jar
        ├── logback-classic-1.0.0.jar
        ├── logback-core-1.0.0.jar
        ├── slf4j-api-1.6.4.jar
        └── xuggle-xuggler-5.4.jar
    

    ivysettings.xml

    This file tells ivy to retrieve jars from either Maven Central, or the Maven repository provided by the Xuggle project.

    
        
        
            
                
                
            
        
    
    

提交回复
热议问题