开发者

Adding Vorbis SPI dependency to Maven project

I want to be able to play ogg encoded files using JavaSound. I assume that the easiest way is to add dependency to Vorbis SPI and play it like a regular wave file. However my project is managed using maven, but vorbis spi is not available开发者_运维问答 on public repositories.

What is the easiest way to add this dependency to my project? Is there maybe some kind of unofficially maintained maven repository where vorbis spi artifact does exist?


The easiest is to import the jar yourself your local repository.

  • http://maven.apache.org/general.html#importing-jars

If the developer use maven try to get the original POM when importing, or you will experiment dependencies issues.


But the best would be to ask developer to provide a repository or to add the artifact in Maven Central (or Nexus OSS), but in the mean time you can setup your own repository using Nexus/Artifactory, and add the artifact inside:

  • http://nexus.sonatype.org/
  • http://www.jfrog.org/

Having your own repository can be really helpful. Specially if you are developing in team and building reusable components.


Since I am struggling the same issue, I have performed a quick research and found following solutions:

1) https://mvnrepository.com/artifact/com.googlecode.soundlibs/vorbisspi

<dependency>
  <groupId>com.googlecode.soundlibs</groupId>
  <artifactId>vorbisspi</artifactId>
</dependency>

2) https://mvnrepository.com/artifact/com.github.trilarion/vorbis-support

<dependency>
    <groupId>com.github.trilarion</groupId>
    <artifactId>vorbis-support</artifactId>
</dependency>

I haven't tested neither of them.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜