Question

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?

Was it helpful?

Solution

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

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:

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

OTHER TIPS

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.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top