Giter VIP home page Giter VIP logo

Comments (1)

everythingbest avatar everythingbest commented on June 1, 2024

尊敬的博主你好:
我再部署你这个项目现在项目跑起来了,遇到一个瓶颈问题就是maven包下载不下来

这是错误日志
准备下载api.jar文件...
groupId:com.ewell.bill
artifactId:bill-api
version:1.0.2-SNAPSHOT
api.jar的url:http://192.168.150.59:8081/repository/maven-public/?r=snapshots&g=com.ewell.bill&a=bill-api&v=1.0.2-SNAPSHOT&e=jar
构建api.jar的pom.xml文件的url:http://192.168.150.59:8081/repository/maven-public/?r=snapshots&g=com.ewell.bill&a=bill-api&v=1.0.2-SNAPSHOT&e=pom
api.jar下载路径:c:/tmp/dubbo-postman/1_0_2-SNAPSHOT_billing-pms-ewell/lib
pom.xml的下载路径:c:/tmp/dubbo-postman/1_0_2-SNAPSHOT_billing-pms-ewell
开始下载:bill-api.jar文件
下载:bill-api.jar文件成功
开始下载:bill-api的pom.xml文件
下载:bill-api的pom.xml文件成功
处理api.jar的所有依赖,通过执行maven命令: 'mvn dependency:copy-dependencies -DoutputDirectory=./lib -DexcludeScope=provided -U'
开发执行maven命令
2019-09-12 09:44:39,996 INFO [http-nio-8080-exec-4] o.a.m.c.e.ExecutionEventLogger:projectDiscoveryStarted:86 Scanning for projects...
2019-09-12 09:44:40,005 ERROR [http-nio-8080-exec-4] o.a.m.DefaultMaven:error:89 [ERROR] Some problems were encountered while processing the POMs:
[FATAL] Non-parseable POM c:\tmp\dubbo-postman\1_0_2-SNAPSHOT_billing-pms-ewell\pom.xml: Expected root element 'project' but found 'html' (position: START_TAG seen ...\n... @3:7) @ line 3, column 7
@
2019-09-12 09:44:40,006 ERROR [http-nio-8080-exec-4] o.a.m.c.MavenCli:logSummary:977 The build could not read 1 project -> [Help 1]
2019-09-12 09:44:40,007 ERROR [http-nio-8080-exec-4] o.a.m.c.MavenCli:logSummary:977
2019-09-12 09:44:40,007 ERROR [http-nio-8080-exec-4] o.a.m.c.MavenCli:logSummary:977 The project (c:\tmp\dubbo-postman\1_0_2-SNAPSHOT_billing-pms-ewell\pom.xml) has 1 error
2019-09-12 09:44:40,007 ERROR [http-nio-8080-exec-4] o.a.m.c.MavenCli:logSummary:977 Non-parseable POM c:\tmp\dubbo-postman\1_0_2-SNAPSHOT_billing-pms-ewell\pom.xml: Expected root element 'project' but found 'html' (position: START_TAG seen ...\n... @3:7) @ line 3, column 7 -> [Help 2]
2019-09-12 09:44:40,007 ERROR [http-nio-8080-exec-4] o.a.m.c.MavenCli:execute:888
2019-09-12 09:44:40,007 ERROR [http-nio-8080-exec-4] o.a.m.c.MavenCli:execute:892 To see the full stack trace of the errors, re-run Maven with the -e switch.
2019-09-12 09:44:40,007 ERROR [http-nio-8080-exec-4] o.a.m.c.MavenCli:execute:896 Re-run Maven using the -X switch to enable full debug logging.
2019-09-12 09:44:40,008 ERROR [http-nio-8080-exec-4] o.a.m.c.MavenCli:execute:901
2019-09-12 09:44:40,008 ERROR [http-nio-8080-exec-4] o.a.m.c.MavenCli:execute:902 For more information about the errors and possible solutions, please read the following articles:
2019-09-12 09:44:40,008 ERROR [http-nio-8080-exec-4] o.a.m.c.MavenCli:execute:907 [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException
2019-09-12 09:44:40,008 ERROR [http-nio-8080-exec-4] o.a.m.c.MavenCli:execute:907 [Help 2] http://cwiki.apache.org/confluence/display/MAVEN/ModelParseException
maven执行失败,文件路径:c:/tmp/dubbo-postman/1_0_2-SNAPSHOT_billing-pms-ewell

[ERROR] Some problems were encountered while processing the POMs:
[FATAL] Non-parseable POM c:\tmp\dubbo-postman\1_0_2-SNAPSHOT_billing-pms-ewell\pom.xml: Expected root element 'project' but found 'html' (position: START_TAG seen ...\n... @3:7) @ line 3, column 7
这行日志说明你的pom文件【bill-api.pom】有问题。
我说下检查点:
1,项目的resources/config/setting.xml改成你们公司的统一的setting.xml文件,
系统会自动修改里面的localRepository这个值为你当前系统的路径。
2,确保在deploy api.jar的时候,你的api.jar对应的parent的pom文件也deploy了。
通过上面这两个检查应该基本能确定问题了,不过不行的话可以重试一次,还是不行的话。
可以通过另一种方式:
找一个新项目【dubbo的consumer项目】,在这个项目里面添加api.pom为依赖,然后启动这个新项
目,如果不能启动成功,则看下相关错误,只要保证这个项目启动成功了,在dubbo-postman里面也
是可以正常操作的。

from dubbo-postman.

Related Issues (19)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.