Beginner's Guide to Setup Xuggler

前端 未结 2 2095
长发绾君心
长发绾君心 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:33

    Don't fight Maven, embrace it. These days all major build systems are maven compatible (Maven, Ivy, Gradle, Grape, Buildr ...). But you can use Maven from Eclipse:

    create a file called pom.xml with this content:

    
     com.foo      
     foo   
     1.0-SNAPSHOT
     
      
       xuggle repo
       http://xuggle.googlecode.com/svn/trunk/repo/share/java/
      
     
     
      
       xuggle
       xuggle-xuggler
       5.2
      
     
    
    

    Install the m2e extension and, from Eclipse, do "File > Import ... > Existing Maven Projects". In the dialog, select the Folder that contains the pom.xml.

    Make sure that the Folder's layout is like this:

    pom.xml
    src/main/java // sources go here
    src/test/java // test sources go here
    

    Then you should have a working Eclipse project with the required dependencies.


    Update after your update:

    You can see the dependencies when you look at this file: http://xuggle.googlecode.com/svn/trunk/repo/share/java/xuggle/xuggle-xuggler/5.2/xuggle-xuggler-5.2.pom

    • commons-cli (a utility library for command line processing)
    • logback (a logging framework)
    • junit (a testingframework)

    Maven will take care of loading these dependencies for you. So will Eclipse, if you use the m2e plugin as suggested above.


    If you absolutely don't want to do that, you will have to download the dependencies manually. Look at the pom file above, note the names and versions of the dependencies, look them up at http://mvnrepository.com/ and download them there, e.g. this is the page for slf4j-api: http://mvnrepository.com/artifact/org.slf4j/slf4j-api/1.6.4

提交回复
热议问题