linugb118--java space

          Java

          mvn 打包問題2

          調試maven時候,報錯
          [INFO] ------------------------------------------------------------------------
          [ERROR] Failed to execute goal on project ep-easyui-webapp: Could not resolve de
          pendencies for project ep-easyui-webapp:ep-easyui-webapp:war:1.0-SNAPSHOT: The f
          ollowing artifacts could not be resolved: javax.persistence:ejb:jar:3.0-public_r
          eview, maven-plugins:maven-cobertura-plugin:plugin:1.3, maven-plugins:maven-find
          bugs-plugin:plugin:1.3.1, persistence:persistence:jar:1: Failure to find javax.p
          ersistence:ejb:jar:3.0-public_review in http://localhost:8081/nexus/content/grou
          ps/EpPublic/ was cached in the local repository, resolution will not be reattemp
          ted until the update interval of EpPublic has elapsed or updates are forced -> [
          Help 1]
          我在pom.xml 文件中添加
          <dependency>
            <groupId>javax.persistence</groupId>
            <artifactId>ejb</artifactId>
            <version>3.0-public_review</version>
          </dependency>
          仍然抱這個錯,解決方法
          1) Manually install this artifact into your local repo cache
          2) Add an excludes and a corresponding dependency so you get a proper artifact
          3) Stop depending on outdated Hibernate artifacts, I'd suggest
          upgrading to this one:
          http://repo2.maven.org/maven2/org/hibernate/hibernate-annotations/3.4.0.GA/
          改成<dependency>
          <groupId>org.hibernate</groupId>
          <artifactId>hibernate-annotations</artifactId>
          <version>3.4.0.GA</version>
          </dependency>
          同時把
          <dependency>
            <groupId>javax.persistence</groupId>
            <artifactId>ejb</artifactId>
            <version>3.0-public_review</version>
          </dependency>
          去掉

          posted on 2012-05-09 10:44 linugb118 閱讀(631) 評論(1)  編輯  收藏

          Feedback

          # re: mvn 打包問題2 2012-05-09 15:24 linugb118

          還有一個很奇怪的問題如果,配的地址是
          <url>http://1localhost:8081/nexus/content/groups/EpPublic/</url>

          下載會失敗的
          需要改為
          <url>http://127.0.0.1:8081/nexus/content/groups/EpPublic/</url>  回復  更多評論   



          只有注冊用戶登錄后才能發表評論。


          網站導航:
           

          My Links

          Blog Stats

          常用鏈接

          留言簿(1)

          隨筆檔案

          搜索

          最新評論

          閱讀排行榜

          評論排行榜

          主站蜘蛛池模板: 嵊泗县| 昌黎县| 连城县| 庄河市| 黄浦区| 英超| 扶绥县| 潢川县| 台北市| 隆化县| 攀枝花市| 定结县| 晋江市| 云阳县| 宁河县| 满洲里市| 安福县| 内丘县| 元朗区| 宕昌县| 永德县| 教育| 疏附县| 长武县| 马关县| 招远市| 云梦县| 平武县| 遂昌县| 富川| 枣庄市| 澎湖县| 嵊州市| 景谷| 宿州市| 波密县| 横峰县| 治县。| 阳山县| 乌鲁木齐县| 内江市|