Spring学习笔记(二十二):解决 Missing artifact org.apache.mina:mina-core:bundle:2.0.9

转自:https://yq.aliyun.com/articles/47271?do=login
Maven 项目中引用了 MINA 的依赖,包如下错误:

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

项目引入的 MINA 依赖如下:

<dependency>
    <groupId>org.apache.minagroupId> 
    <artifactId>mina-coreartifactId> 
    <version>2.0.9version> 
dependency> 
<dependency>
    <groupId>org.apache.minagroupId>
    <artifactId>mina-integration-beansartifactId>
    <version>2.0.9version>
dependency>
<dependency>
    <groupId>org.apache.minagroupId>
    <artifactId>mina-integration-springartifactId>
    <version>1.1.7version>
dependency>

解决办法:在 pom.xml 中添加 如下插件

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

你可能感兴趣的:(Spring学习笔记)