(我的服务的Maven构建失败):Maven Install给了我这个错误。并且.m2文件夹中没有settings.xml文件。
[INFO] Adapter CSI_ORDERTRACK_STATUS Bundle ............... SUCCESS [ 0.581 s]
[INFO] Adapter CSI_ORDERTRACK_STATUS Bundle Dependencies .. SUCCESS [ 0.011 s]
[INFO] Adapter CSI_ORDERTRACK_STATUS Bundle Service ....... FAILURE [01:12 min]
[INFO] Adapter CSI_ORDERTRACK_STATUS SWM Zip .............. SKIPPED
[INFO] Adapter CSI_ORDERTRACK_STATUS SWM Package .......... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
------------------------------------------------------------------------
[ERROR] Failed to execute goal on project CSI_ORDERTRACK_STATUS-service: Could not resolve dependencies for project maf.service:CSI_ORDERTRACK_STATUS-service:jar:200.0.14: Failed to collect dependencies at maf:adapter-ordertrackdb:jar:200.0.14: Failed to read artifact descriptor for maf:adapter-ordertrackdb:jar:200.0.14: Could not transfer artifact maf:adapter-ordertrackdb:pom:200.0.14 from/to central (https://repo.maven.apache.org/maven2): connect timed out -> [Help 1]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[错误] [帮助1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException 200.0.14依赖Service_pom如下:
<groupId>maf.service</groupId>
<artifactId>CSI_ORDERTRACK_STATUS-service</artifactId>
<version>200.0.14</version>
<packaging>jar</packaging>
<name>Adapter CSI_ORDERTRACK_STATUS Bundle Service</name>
<dependencies>
<dependency>
<groupId>maf</groupId>
<artifactId>adapter-ordertrackdb</artifactId>
<version>200.0.14</version>
</dependency>
<dependency>
答案 0 :(得分:0)
您是否尝试在离线模式下运行Maven?
mvn -o install
默认情况下,Maven将尝试从中心获取外部依赖项。
首先尝试构建af:adapter-ordertrackdb:pom:200.0.14
(非递归 - mvn -N install
),然后尝试Maven安装。
如果你能提供pom,它可能会有所帮助。