解决 Missing artifact org.apache.mina:mina-core:bundle:2.0.9

Maven 项目中引用了 MINA 的依赖,包如下错误:

Missing artifact org.apache.mina:mina-core:bundle:2.0.9 

依赖

项目引入的 MINA 依赖如下:

<dependency> <groupId>org.apache.minagroupId> <artifactId>mina-coreartifactId> <version>${version.mina}version> dependency> <dependency> <groupId>org.apache.minagroupId> <artifactId>mina-integration-jmxartifactId> <version>${version.mina}version> dependency> <dependency> <groupId>org.apache.minagroupId> <artifactId>mina-integration-beansartifactId> <version>${version.mina}version> dependency> <dependency> <groupId>org.apache.minagroupId> <artifactId>mina-integration-ognlartifactId> <version>${version.mina}version> dependency> 

解决

在 pom.xml 中添加 如下插件:

<build> <plugins>
 ...
 <plugin> <groupId>org.apache.felixgroupId> <artifactId>maven-bundle-pluginartifactId> <extensions>trueextensions> plugin> plugins> build> 

参考

  • 源码见:https://github.com/waylau/apache-mina-2-user-guide-demos
  • Apache MINA 2 用户指南
  • http://felix.apache.org/documentation/subprojects/apache-felix-maven-bundle-plugin-bnd.html

你可能感兴趣的:(解决 Missing artifact org.apache.mina:mina-core:bundle:2.0.9)