将 Vorbis SPI 依赖项添加到 Maven 项目

发布于 2024-10-01 12:10:08 字数 205 浏览 5 评论 0原文

我希望能够使用 JavaSound 播放 ogg 编码的文件。我认为最简单的方法是添加对 Vorbis SPI 的依赖并像常​​规波形文件一样播放它。然而,我的项目是使用 maven 管理的,但 vorbis spi 在公共存储库上不可用。

将此依赖项添加到我的项目中的最简单方法是什么?是否可能存在某种非官方维护的 Maven 存储库,其中 vorbis spi 工件确实存在?

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?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

熟人话多 2024-10-08 12:10:08

最简单的方法是自己将 jar 导入本地存储库。

如果开发者使用maven,导入时尽量获取原始的POM,否则会出现依赖问题。


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:

拥有自己的存储库确实很有帮助。特别是如果您正在团队中开发并构建可重用的组件。

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.

丶情人眼里出诗心の 2024-10-08 12:10:08

由于我正在努力解决同样的问题,因此我进行了快速研究并找到了以下解决方案:

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>

我还没有测试过它们。

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文