split47 opened a new issue #71:
URL: https://github.com/apache/servicecomb-samples/issues/71
我不知道我这样引用是否正确,我在我的项目中使用了
<parent>
<groupId>org.apache.servicecomb</groupId>
<artifactId>java-chassis-parent</artifactId>
<version>2.1.5</version>
</parent>
但是无法启动,因为我必须在我的项目中规定<version>2.1.5</version>
否则会提示
[ERROR] The build could not read 1 project -> [Help 1]
[ERROR]
[ERROR] The project com.jdkj:service-comb-parent:0.0.1
(/Volumes/SSD/SVNProjects/ServiceComb/TEST/0x02/ServiceCombParent/pom.xml) has
1 error
[ERROR] Non-resolvable import POM: Failure to find
org.apache.servicecomb:java-chassis-bom:pom:0.0.1 in
https://maven.aliyun.com/repository/central was cached in the local repository,
resolution will not be reattempted until the update interval of alimaven has
elapsed or updates are forced @
org.apache.servicecomb:java-chassis-dependencies:2.1.5,
/Users/matcha/.m2/repository/org/apache/servicecomb/java-chassis-dependencies/2.1.5/java-chassis-dependencies-2.1.5.pom,
line 876, column 19 -> [Help 2]
[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/ProjectBuildingException
[ERROR] [Help 2]
http://cwiki.apache.org/confluence/display/MAVEN/UnresolvableModelException
于是我找到了在java-chassis-dependencies-2.1.5.pom中876行有如下内容
<dependency>
<groupId>org.apache.servicecomb</groupId>
<artifactId>java-chassis-bom</artifactId>
<version>${project.version}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
我想知道是不是我使用的方式错误,这样导致我无法规定自己项目的版本号
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]