2

jboss-as-helloworld プロジェクトを作成すると問題が発生し、最初にクイック修正ダイアログ ボックスが表示されます。

project build error non-resolvable import POM: failure to transfer org.jboss.spec:jboss-javaee-6.0:pom:3.0.0.beta1 from http:\\repo1.maven2 was cashed in the local repository,resolution will not be reattempted until the update interval of central

Project build error:'dependencies.dependency.version'for javax.enterprise:cdi-api:jar is missing.

Project build error:'dependencies.dependency.version'for org.jboss.spec.javax.annotation:jboss-annotation-api_1.1_spec:jar is missing.

Project build error:'dependencies.dependency.version'for org.jboss.spec.javax.servlet:jboss-servlet-api_3.0_spec:jar is missing.

実行を開始すると、このエラーが発生します..

[INFO] Scanning for projects...

SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".

SLF4J: Defaulting to no-operation (NOP) logger implementation

SLF4J: See http:\\www.slf4j.org/codes.html#StaticLoggerBinder for further details.

Downloading: http:\\repo1.maven.org/maven2/org/jboss/spec/jboss-javaee-6.0/3.0.0.Beta1/jboss-javaee-6.0-3.0.0.Beta1.pom

[ERROR] The build could not read 1 project -> [Help 1]

[ERROR]   

[ERROR]   The project org.jboss.as.quickstarts:jboss-as-helloworld:7.1.1-SNAPSHOT (C:\Users\Heshan\workspace\helloworld\jboss-as-helloworld\pom.xml) has 4 errors

[ERROR]     Non-resolvable import POM: Could not transfer artifact org.jboss.spec:jboss-javaee-6.0:pom:3.0.0.Beta1 from/to central (http://repo1.maven.org/maven2): Connect times out @ line 39, column 22 -> [Help 2]

[ERROR]     'dependencies.dependency.version' for javax.enterprise:cdi-api:jar is missing. @ line 53, column 19

[ERROR]     'dependencies.dependency.version' for org.jboss.spec.javax.annotation:jboss-annotations-api_1.1_spec:jar is missing. @ line 61, column 19

[ERROR]     'dependencies.dependency.version' for org.jboss.spec.javax.servlet:jboss-servlet-api_3.0_spec:jar is missing. @ line 69, column 19

[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

[INFO] Scanning for projects...
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".

SLF4J: Defaulting to no-operation (NOP) logger implementation

SLF4J: See http:\\www.slf4j.org/codes.html#StaticLoggerBinder for further details.

Downloading: http:\\repo1.maven.org/maven2/org/jboss/spec/jboss-javaee-6.0/3.0.0.Beta1/jboss-javaee-6.0-3.0.0.Beta1.pom.

[ERROR] The build could not read 1 project -> [Help 1]

[ERROR]   
[ERROR]   The project org.jboss.as.quickstarts:jboss-as-helloworld:7.1.1-SNAPSHOT (C:\Users\Heshan\workspace\helloworld\jboss-as-helloworld\pom.xml) has 4 errors

[ERROR]     Non-resolvable import POM: Could not transfer artifact org.jboss.spec:jboss-javaee-6.0:pom:3.0.0.Beta1 from/to central (http://repo1.maven.org/maven2): Connect times out @ line 39, column 22 -> [Help 2]

[ERROR]     'dependencies.dependency.version' for javax.enterprise:cdi-api:jar is missing. @ line 53, column 19

[ERROR]     'dependencies.dependency.version' for org.jboss.spec.javax.annotation:jboss-annotations-api_1.1_spec:jar is missing. @ line 61, column 19

[ERROR]     'dependencies.dependency.version' for org.jboss.spec.javax.servlet:jboss-servlet-api_3.0_spec:jar is missing. @ line 69, column 19

[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
4

1 に答える 1

2

解決できないインポート POM: アーティファクト org.jboss.spec:jboss-javaee-6.0:pom:3.0.0.Beta1 を中央 ( http://repo1.maven.org/maven2 ) との間で転送できませんでした: 接続がタイムアウトしました@ 39行目、22桁目 → [ヘルプ2

Maven セントラル リポジトリへの接続がタイムアウトしました。ネットワーク接続の問題があります。ネットワークに接続していないか、接続している場合はプロキシを構成する必要があるかもしれません。

このリンクを使用すると、ファイルが実際にそこにあることがわかりますので、ダウンロードできるはずです。

于 2013-04-24T06:48:39.980 に答える