• <ins id="pjuwb"></ins>
    <blockquote id="pjuwb"><pre id="pjuwb"></pre></blockquote>
    <noscript id="pjuwb"></noscript>
          <sup id="pjuwb"><pre id="pjuwb"></pre></sup>
            <dd id="pjuwb"></dd>
            <abbr id="pjuwb"></abbr>

            逛奔的蝸牛

            我不聰明,但我會很努力

               ::  :: 新隨筆 ::  ::  :: 管理 ::
            例如使用maven編譯使用了mina的包的工程,出現(xiàn)如下提示: 
            [INFO] Scanning for projects...
            [INFO]                                                                         
            [INFO] ------------------------------------------------------------------------
            [INFO] Building Hello 1.0
            [INFO] ------------------------------------------------------------------------
            [INFO] ------------------------------------------------------------------------
            [INFO] BUILD FAILURE
            [INFO] ------------------------------------------------------------------------
            [INFO] Total time: 1.187s
            [INFO] Finished at: Tue Nov 27 06:27:12 CST 2012
            [INFO] Final Memory: 3M/81M
            [INFO] ------------------------------------------------------------------------
            [ERROR] Failed to execute goal on project Hello: Could not resolve dependencies for project tur:Hello:jar:1.0: The following artifacts could not be resolved: org.apache.mina:mina-core:bundle:2.0.7, org.apache.mina:mina-integration-beans:bundle:2.0.7, org.apache.mina:mina-integration-jmx:bundle:2.0.7, org.apache.mina:mina-integration-ognl:bundle:2.0.7, org.apache.mina:mina-statemachine:bundle:2.0.7: Failure to find org.apache.mina:mina-core:bundle:2.0.7 in http://repo1.maven.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced -> [Help 1]
            [ERROR] 
            [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
            [ERROR] Re-run Maven using the -X switch to enable full debug logging.
            [ERROR] 
            [ERROR] For more information about the errors and possible solutions, please read the following articles:
            [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException

            From: http://blog.csdn.net/jialechan/article/details/6821389
            這個問題可能是依賴的項目打包成bundle造成,比如mina就是這樣的,打包成bundle,例子:
            1. <dependency>  
            2.     <groupId>org.apache.mina</groupId>  
            3.     <artifactId>mina-core</artifactId>  
            4.     <version>2.0.4</version>  
            5.     <type>bundle</type>  
            6.     <scope>compile</scope>  
            7. </dependency>  

            加入上面依賴出現(xiàn)錯誤如下:
            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即可
            1. <plugin>  
            2.     <groupId>org.apache.felix</groupId>  
            3.     <artifactId>maven-bundle-plugin</artifactId>  
            4.     <extensions>true</extensions>  
            5. </plugin>  
            其中
            1. <extensions>true</extensions>  
            是必須的。

            @import url(http://www.shnenglu.com/cutesoft_client/cuteeditor/Load.ashx?type=style&file=SyntaxHighlighter.css);@import url(/css/cuteeditor.css);
            posted on 2012-11-27 06:32 逛奔的蝸牛 閱讀(29249) 評論(2)  編輯 收藏 引用 所屬分類: Java

            評論

            # re: MVN:Maven bundle error:解決Maven管理的項目下"Missing artifact xxx bundle"問題[未登錄] 2013-10-15 22:10 stone
            謝謝  回復(fù)  更多評論
              

            # re: MVN:Maven bundle error:解決Maven管理的項目下"Missing artifact xxx bundle"問題 2014-11-27 16:22 niufei
            [ERROR] Failed to execute goal on project taedemo-model: Could not resolve dependencies for project com.alibaba.tae.demo:taedemo-model:jar:1.0.1.SNAPSHOT: Failure to find org.codehaus:jackson-all:jar:1.8.2 in file:///Users/huamulou/work/gits/taedemo/libs was cached in the local repository, resolution will not be reattempted until the update interval of local-project-third-party has elapsed or updates are forced -> [Help 1]
            [ERROR]
            [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
            [ERROR] Re-run Maven using the -X switch to enable full debug logging.
            [ERROR]
            [ERROR] For more information about the errors and possible solutions, please read the following articles:
            [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException
            [ERROR]
            [ERROR] After correcting the problems, you can resume the build with the command
            [ERROR] mvn <goals> -rf :taedemo-model  回復(fù)  更多評論
              

            yy6080久久| 精品久久久一二三区| 成人久久综合网| 国产69精品久久久久99| 亚洲精品无码专区久久同性男 | 久久精品aⅴ无码中文字字幕不卡| 久久久久久亚洲精品成人| 97精品伊人久久久大香线蕉| 久久精品极品盛宴观看| 精品国产乱码久久久久久郑州公司| 久久国产成人午夜aⅴ影院 | 波多野结衣久久| 精品综合久久久久久97超人| 大香伊人久久精品一区二区| 国产91久久精品一区二区| 国产A三级久久精品| 久久久久亚洲精品天堂久久久久久| 无码AV中文字幕久久专区| 久久综合伊人77777| 狠狠色综合久久久久尤物| 国产∨亚洲V天堂无码久久久| 欧美激情精品久久久久久久 | 亚洲人成网站999久久久综合| 狠色狠色狠狠色综合久久| 日韩人妻无码一区二区三区久久| 久久精品国产一区二区| 久久国产亚洲精品麻豆| 99久久99久久久精品齐齐| 久久久久亚洲Av无码专| 欧美黑人激情性久久| 亚洲精品无码久久不卡| 一日本道伊人久久综合影| 亚洲另类欧美综合久久图片区| 国产成人精品久久| 国产免费福利体检区久久| 国产福利电影一区二区三区久久老子无码午夜伦不 | 色婷婷久久综合中文久久蜜桃av| 人妻精品久久久久中文字幕| 一本综合久久国产二区| 人妻无码αv中文字幕久久琪琪布| 性做久久久久久久久老女人 |