首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 其他教程 > 开源软件 >

解决Maven管理的项目下"Missing artifact xxx bundle"有关问题

2013-12-26 
解决Maven管理的项目下Missing artifact xxx bundle问题dependencygroupIdorg.apache.mina/groupId

解决Maven管理的项目下"Missing artifact xxx bundle"问题
<dependency> <groupId>org.apache.mina</groupId> <artifactId>mina-core</artifactId> <version>2.0.4</version> <type>bundle</type> <scope>compile</scope></dependency>加入上面依赖出现错误如下:???
11-9-26 上午10时21分30秒: Maven Builder: AUTO_BUILD requireFullBuild
11-9-26 上午10时21分30秒: Build errors for test-http-mina; org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal on project test-http-mina: Could not resolve dependencies for project com.tecno:test-http-mina:jar:0.0.1-SNAPSHOT: Failure to find org.apache.mina:mina-core:bundle:2.0.4 in http://uk.maven.org/maven2/ was cached in the local repository, resolution will not be reattempted until the update interval of uk.maven.org has elapsed or updates are forced
11-9-26 上午10时22分11秒: Refreshing [/test-http-mina/pom.xml]
11-9-26 上午10时22分11秒: Missing artifact org.apache.mina:mina-core:bundle:2.0.4:compile
11-9-26 上午10时22分11秒: Maven Builder: AUTO_BUILD??原因mina打包为了bundle格式,为此,需要添加插件在maven的pom.xml中plugins段中加入plugin即可<plugin> <groupId>org.apache.felix</groupId> <artifactId>maven-bundle-plugin</artifactId> <extensions>true</extensions></plugin>?其中<extensions>true</extensions>是必须的。

---------------------------------------------------------------------------------------------------------------------今天发现,用这个方法的log4j有问题,不妨可以试试[html] view plaincopyprint?

  1. <dependency>??????????<groupId>log4j</groupId>??
  2. ????????<artifactId>log4j</artifactId>??????????<version>1.2.16</version>??
  3. ????????<type>jar</type>??????????<scope>compile</scope>??
  4. ????????<exclusions>??????????????<exclusion>??
  5. ????????????????<groupId>com.sun.jmx</groupId>??????????????????<artifactId>jmxri</artifactId>??
  6. ????????????</exclusion>??????????????<exclusion>??
  7. ????????????????<groupId>com.sun.jdmk</groupId>??????????????????<artifactId>jmxtools</artifactId>??
  8. ????????????</exclusion>??????????????<exclusion>??
  9. ????????????????<groupId>javax.jms</groupId>??????????????????<artifactId>jms</artifactId>??
  10. ????????????</exclusion>??????????</exclusions>??
  11. ????</dependency>??

热点排行