4

私はMavenでのEclipseの使用にまったく慣れていません。Javaライブラリを使用するためのチュートリアルに従おうとしていますが、前提条件で失敗します:http ://code.google.com/p/dkpro-core-asl/wiki / DeveloperSetup

ページの最後のクリック「終了」の終了直後に、Eclipseウィンドウを見ると、Eclipse Package Explorerに多くのエラーがあり、いくつかは小さいため、何かがうまくいかなかったと思います(私も違いがわかりません)赤い感嘆符、赤い上の小さな白い十字(これはエラーマークだと思います)、または「警告記号」(黄色の感嘆符の三角形)でなければならないものの間のポイント。

だから私は多くの異なる種類のエラーを抱えています、そしてそれらを解決する方法がわからないので、私は以下の完全なログをコピーします。

私のエラーは次の形式です:

Missing artifact de.tudarmstadt.ukp.dkpro.teaching:de.tudarmstadt.ukp.dkpro.teaching.frequency:jar:0.4.0:compile    pom.xml /de.tudarmstadt.ukp.dkpro.core.api.frequency-asl    line 1  Maven Problem
Project build error: Unresolveable build extension: Plugin *:3 or one of its dependencies could not be resolved: Failure to find de.tudarmstadt.ukp.dkpro.core:build-tools:jar:3 in http://repo1.maven.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced pom.xml /de.tudarmstadt.ukp.dkpro.core.toolbox-asl  line 1  Maven Problem
The container 'Maven Dependencies' references non existing library 'C:\Users\stephane\.m2\repository\de\tudarmstadt\ukp\dkpro\teaching\de.tudarmstadt.ukp.dkpro.teaching.frequency\0.4.0\de.tudarmstadt.ukp.dkpro.teaching.frequency-0.4.0.jar' de.tudarmstadt.ukp.dkpro.core.api.frequency-asl     Build path  Build Path Problem
The project cannot be built until build path errors are resolved    de.tudarmstadt.ukp.dkpro.core.api.frequency-asl     Unknown Java Problem

それらを解決する方法について何か手がかりがあれば、お願いします、

ほとんどすべてが壊れているように見えるので、エレメンタリーチェックアウトの王様を忘れないでください。

ありがとう

(予想されるチュートリアルは、「DKProコアを使用した最初のプログラミング手順」です)

画像としてログに記録:http://imageshack.us/photo/my-images/856/dkprocoreaslmaven201204.png/

---8<---

Description Resource    Path    Location    Type
Failed to read artifact descriptor for edu.berkeley.nlp.lm:edu.berkeley.nlp.lm.berkeleylm:jar:1.0b2 pom.xml /de.tudarmstadt.ukp.dkpro.core.api.frequency-asl    line 1  Maven Problem
Missing artifact com.ibm.icu:icu4j:jar:4.0.1:compile    pom.xml /de.tudarmstadt.ukp.dkpro.core.api.frequency-asl    line 1  Maven Problem
Missing artifact commons-io:commons-io:jar:2.0:compile  pom.xml /de.tudarmstadt.ukp.dkpro.core.api.frequency-asl    line 1  Maven Problem
Missing artifact commons-lang:commons-lang:jar:2.5:compile  pom.xml /de.tudarmstadt.ukp.dkpro.core.api.frequency-asl    line 1  Maven Problem
Missing artifact commons-logging:commons-logging:jar:1.1.1:compile  pom.xml /de.tudarmstadt.ukp.dkpro.core.api.frequency-asl    line 1  Maven Problem
Missing artifact de.tudarmstadt.ukp.dkpro.core:de.tudarmstadt.ukp.dkpro.core.api.io-asl:jar:1.2.1-SNAPSHOT:compile  pom.xml /de.tudarmstadt.ukp.dkpro.core.api.frequency-asl    line 1  Maven Problem
Missing artifact de.tudarmstadt.ukp.dkpro.core:de.tudarmstadt.ukp.dkpro.core.api.lexmorph-asl:jar:1.2.1-SNAPSHOT:compile    pom.xml /de.tudarmstadt.ukp.dkpro.core.api.frequency-asl    line 1  Maven Problem
Missing artifact de.tudarmstadt.ukp.dkpro.core:de.tudarmstadt.ukp.dkpro.core.api.metadata-asl:jar:1.2.1-SNAPSHOT:compile    pom.xml /de.tudarmstadt.ukp.dkpro.core.api.frequency-asl    line 1  Maven Problem
Missing artifact de.tudarmstadt.ukp.dkpro.core:de.tudarmstadt.ukp.dkpro.core.api.resources-asl:jar:1.2.1-SNAPSHOT:compile   pom.xml /de.tudarmstadt.ukp.dkpro.core.api.frequency-asl    line 1  Maven Problem
Missing artifact de.tudarmstadt.ukp.dkpro.core:de.tudarmstadt.ukp.dkpro.core.api.segmentation-asl:jar:1.2.1-SNAPSHOT:compile    pom.xml /de.tudarmstadt.ukp.dkpro.core.api.frequency-asl    line 1  Maven Problem
Missing artifact de.tudarmstadt.ukp.dkpro.teaching:de.tudarmstadt.ukp.dkpro.teaching.core:jar:0.4.0:compile pom.xml /de.tudarmstadt.ukp.dkpro.core.api.frequency-asl    line 1  Maven Problem
Missing artifact de.tudarmstadt.ukp.dkpro.teaching:de.tudarmstadt.ukp.dkpro.teaching.corpus:jar:0.4.0:compile   pom.xml /de.tudarmstadt.ukp.dkpro.core.api.frequency-asl    line 1  Maven Problem
Missing artifact de.tudarmstadt.ukp.dkpro.teaching:de.tudarmstadt.ukp.dkpro.teaching.frequency:jar:0.4.0:compile    pom.xml /de.tudarmstadt.ukp.dkpro.core.api.frequency-asl    line 1  Maven Problem
Missing artifact de.tudarmstadt.ukp.dkpro.teaching:de.tudarmstadt.ukp.dkpro.teaching.ngram:jar:0.4.0:compile    pom.xml /de.tudarmstadt.ukp.dkpro.core.api.frequency-asl    line 1  Maven Problem
Missing artifact dom4j:dom4j:jar:1.6.1:compile  pom.xml /de.tudarmstadt.ukp.dkpro.core.api.frequency-asl    line 1  Maven Problem
Missing artifact jaxen:jaxen:jar:1.1.1:compile  pom.xml /de.tudarmstadt.ukp.dkpro.core.api.frequency-asl    line 1  Maven Problem
Missing artifact jdom:jdom:jar:1.0:compile  pom.xml /de.tudarmstadt.ukp.dkpro.core.api.frequency-asl    line 1  Maven Problem
Missing artifact junit:junit:jar:4.8.2:compile  pom.xml /de.tudarmstadt.ukp.dkpro.core.api.frequency-asl    line 1  Maven Problem
Missing artifact log4j:log4j:jar:1.2.14:compile pom.xml /de.tudarmstadt.ukp.dkpro.core.api.frequency-asl    line 1  Maven Problem
Missing artifact org.apache.ant:ant-launcher:jar:1.8.1:compile  pom.xml /de.tudarmstadt.ukp.dkpro.core.api.frequency-asl    line 1  Maven Problem
Missing artifact org.apache.ant:ant:jar:1.8.1:compile   pom.xml /de.tudarmstadt.ukp.dkpro.core.api.frequency-asl    line 1  Maven Problem
Missing artifact org.apache.uima:jVinci:jar:2.3.1:compile   pom.xml /de.tudarmstadt.ukp.dkpro.core.api.frequency-asl    line 1  Maven Problem
Missing artifact org.apache.uima:uimaj-adapter-vinci:jar:2.3.1:compile  pom.xml /de.tudarmstadt.ukp.dkpro.core.api.frequency-asl    line 1  Maven Problem
Missing artifact org.apache.uima:uimaj-core:jar:2.3.1:compile   pom.xml /de.tudarmstadt.ukp.dkpro.core.api.frequency-asl    line 1  Maven Problem
Missing artifact org.apache.uima:uimaj-cpe:jar:2.3.1:compile    pom.xml /de.tudarmstadt.ukp.dkpro.core.api.frequency-asl    line 1  Maven Problem
Missing artifact org.apache.uima:uimaj-document-annotation:jar:2.3.1:compile    pom.xml /de.tudarmstadt.ukp.dkpro.core.api.frequency-asl    line 1  Maven Problem
Missing artifact org.apache.uima:uimaj-tools:jar:2.3.1:compile  pom.xml /de.tudarmstadt.ukp.dkpro.core.api.frequency-asl    line 1  Maven Problem
Missing artifact org.springframework:spring-core:jar:3.0.5.RELEASE:compile  pom.xml /de.tudarmstadt.ukp.dkpro.core.api.frequency-asl    line 1  Maven Problem
Missing artifact org.uimafit:uimafit:jar:1.2.0:compile  pom.xml /de.tudarmstadt.ukp.dkpro.core.api.frequency-asl    line 1  Maven Problem
Missing artifact pcj:pcj:jar:1.2:compile    pom.xml /de.tudarmstadt.ukp.dkpro.core.api.frequency-asl    line 1  Maven Problem
Missing artifact xalan:serializer:jar:2.7.1:compile pom.xml /de.tudarmstadt.ukp.dkpro.core.api.frequency-asl    line 1  Maven Problem
Missing artifact xalan:xalan:jar:2.7.1:compile  pom.xml /de.tudarmstadt.ukp.dkpro.core.api.frequency-asl    line 1  Maven Problem
Missing artifact xerces:xercesImpl:jar:2.9.1:compile    pom.xml /de.tudarmstadt.ukp.dkpro.core.api.frequency-asl    line 1  Maven Problem
Missing artifact xerces:xmlParserAPIs:jar:2.6.2:compile pom.xml /de.tudarmstadt.ukp.dkpro.core.api.frequency-asl    line 1  Maven Problem
Missing artifact xml-apis:xml-apis:jar:1.3.04:compile   pom.xml /de.tudarmstadt.ukp.dkpro.core.api.frequency-asl    line 1  Maven Problem
Missing artifact xom:xom:jar:1.0:compile    pom.xml /de.tudarmstadt.ukp.dkpro.core.api.frequency-asl    line 1  Maven Problem
Project build error: Unresolveable build extension: Plugin de.tudarmstadt.ukp.dkpro.core:build-tools:3 or one of its dependencies could not be resolved: Failure to find de.tudarmstadt.ukp.dkpro.core:build-tools:jar:3 in http://repo1.maven.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced pom.xml /de.tudarmstadt.ukp.dkpro.core.api.coref-asl    line 1  Maven Problem
Project build error: Unresolveable build extension: Plugin de.tudarmstadt.ukp.dkpro.core:build-tools:3 or one of its dependencies could not be resolved: Failure to find de.tudarmstadt.ukp.dkpro.core:build-tools:jar:3 in http://repo1.maven.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced pom.xml /de.tudarmstadt.ukp.dkpro.core.api.corpus-asl   line 1  Maven Problem
Project build error: Unresolveable build extension: Plugin de.tudarmstadt.ukp.dkpro.core:build-tools:3 or one of its dependencies could not be resolved: Failure to find de.tudarmstadt.ukp.dkpro.core:build-tools:jar:3 in http://repo1.maven.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced pom.xml /de.tudarmstadt.ukp.dkpro.core.api.parameter-asl    line 1  Maven Problem
Project build error: Unresolveable build extension: Plugin de.tudarmstadt.ukp.dkpro.core:build-tools:3 or one of its dependencies could not be resolved: Failure to find de.tudarmstadt.ukp.dkpro.core:build-tools:jar:3 in http://repo1.maven.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced pom.xml /de.tudarmstadt.ukp.dkpro.core.arktweet-asl line 1  Maven Problem
Project build error: Unresolveable build extension: Plugin de.tudarmstadt.ukp.dkpro.core:build-tools:3 or one of its dependencies could not be resolved: Failure to find de.tudarmstadt.ukp.dkpro.core:build-tools:jar:3 in http://repo1.maven.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced pom.xml /de.tudarmstadt.ukp.dkpro.core.frequency-asl    line 1  Maven Problem
Project build error: Unresolveable build extension: Plugin de.tudarmstadt.ukp.dkpro.core:build-tools:3 or one of its dependencies could not be resolved: Failure to find de.tudarmstadt.ukp.dkpro.core:build-tools:jar:3 in http://repo1.maven.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced pom.xml /de.tudarmstadt.ukp.dkpro.core.io.aclanthology-asl  line 1  Maven Problem
Project build error: Unresolveable build extension: Plugin de.tudarmstadt.ukp.dkpro.core:build-tools:3 or one of its dependencies could not be resolved: Failure to find de.tudarmstadt.ukp.dkpro.core:build-tools:jar:3 in http://repo1.maven.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced pom.xml /de.tudarmstadt.ukp.dkpro.core.io.bnc-asl   line 1  Maven Problem
Project build error: Unresolveable build extension: Plugin de.tudarmstadt.ukp.dkpro.core:build-tools:3 or one of its dependencies could not be resolved: Failure to find de.tudarmstadt.ukp.dkpro.core:build-tools:jar:3 in http://repo1.maven.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced pom.xml /de.tudarmstadt.ukp.dkpro.core.io.jdbc-asl  line 1  Maven Problem
Project build error: Unresolveable build extension: Plugin de.tudarmstadt.ukp.dkpro.core:build-tools:3 or one of its dependencies could not be resolved: Failure to find de.tudarmstadt.ukp.dkpro.core:build-tools:jar:3 in http://repo1.maven.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced pom.xml /de.tudarmstadt.ukp.dkpro.core.io.tei-asl   line 1  Maven Problem
Project build error: Unresolveable build extension: Plugin de.tudarmstadt.ukp.dkpro.core:build-tools:3 or one of its dependencies could not be resolved: Failure to find de.tudarmstadt.ukp.dkpro.core:build-tools:jar:3 in http://repo1.maven.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced pom.xml /de.tudarmstadt.ukp.dkpro.core.io.web1t-asl line 1  Maven Problem
Project build error: Unresolveable build extension: Plugin de.tudarmstadt.ukp.dkpro.core:build-tools:3 or one of its dependencies could not be resolved: Failure to find de.tudarmstadt.ukp.dkpro.core:build-tools:jar:3 in http://repo1.maven.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced pom.xml /de.tudarmstadt.ukp.dkpro.core.toolbox-asl  line 1  Maven Problem
The container 'Maven Dependencies' references non existing library 'C:\Users\stephane\.m2\repository\de\tudarmstadt\ukp\dkpro\teaching\de.tudarmstadt.ukp.dkpro.teaching.frequency\0.4.0\de.tudarmstadt.ukp.dkpro.teaching.frequency-0.4.0.jar' de.tudarmstadt.ukp.dkpro.core.api.frequency-asl     Build path  Build Path Problem
The project cannot be built until build path errors are resolved    de.tudarmstadt.ukp.dkpro.core.api.frequency-asl     Unknown Java Problem

---8<---

編集 :

チュートリアルで必要とされるように、Eclipseセットアップをインストールしたと思います(ただし、Eclipse Indigo Serviceリリース2ビルドID:20120216-1857を使用)。

Subclipse 1.6.x
    update site: http://subclipse.tigris.org/update_1.6.x 
m2eclipse 0.10.0 or higher.
    update site: http://m2eclipse.sonatype.org/sites/m2e 
Maven SCM handler for Subclipse
    update site: http://m2eclipse.sonatype.org/sites/m2e-extras 

これは、pom.xmlファイルがあるディレクトリからのmvncleanpackageコマンドの出力です。

[... here i am skipping as there are more 700 lines ... these below are last one :]

[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 37.054s
[INFO] Finished at: Wed Apr 18 11:18:31 CEST 2012
[INFO] Final Memory: 93M/223M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12:test (default-test) on project de.tudarmstadt.ukp.dkpro.core.io.aclanthology-asl: There are test failures.
[ERROR] 
[ERROR] Please refer to D:\eclipseWorkspace\de.tudarmstadt.ukp.dkpro.core-asl\de.tudarmstadt.ukp.dkpro.core.io.aclanthology\target\surefire-reports for the individual test results.
[ERROR] -> [Help 1]
[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/MojoFailureException
[ERROR] 
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn <goals> -rf :de.tudarmstadt.ukp.dkpro.core.io.aclanthology-asl

編集2:

もう1つの非常に奇妙なこと=>「mvndependecy:resolve」または「mvnclean package」は、コンピューターの再起動後、ほとんどすべてのエラーが消え、Eclipseの[Problems]タブに2つしかないため、何かをしてくれました。(ただし、まだ225項目の警告)

残りの2つのエラーは次のとおりです。パッケージエクスプローラーのde.tudarmstadt.ukp.dkpro.core.api.frequency-aslに赤い感嘆符(何の略ですか?)があります

Description Resource    Path    Location    Type
The container 'Maven Dependencies' references non existing library 'C:\Users\stephane\.m2\repository\de\tudarmstadt\ukp\dkpro\teaching\de.tudarmstadt.ukp.dkpro.teaching.frequency\0.4.0\de.tudarmstadt.ukp.dkpro.teaching.frequency-0.4.0.jar' de.tudarmstadt.ukp.dkpro.core.api.frequency-asl     Build path  Build Path Problem
The project cannot be built until build path errors are resolved    de.tudarmstadt.ukp.dkpro.core.api.frequency-asl     Unknown Java Problem

それが私に何を求めているのかまだわかりませんでした!

最後の編集:

したがって、Kalから提供された回答を読んで(助けてくれてありがとう)、私の問題がjarの欠落や「ビルドパス」参照ライブラリ(私はMaven / Eclipseに本当に慣れていない)に起因するのではないかと本当に思っています。de.tudarmstadt.ukp.dkpro.core.api.frequency-asl(EDIT2からの赤い感嘆符が付いているもの)のビルドエラーから、次の例外トレースが表示されます。

org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal on project de.tudarmstadt.ukp.dkpro.core.api.frequency-asl: Could not resolve dependencies for project de.tudarmstadt.ukp.dkpro.core:de.tudarmstadt.ukp.dkpro.core.api.frequency-asl:jar:1.2.1-SNAPSHOT: Failed to collect dependencies for [org.uimafit:uimafit:jar:1.2.0 (compile), xerces:xercesImpl:jar:2.9.1 (compile), xalan:xalan:jar:2.7.1 (compile), de.tudarmstadt.ukp.dkpro.teaching:de.tudarmstadt.ukp.dkpro.teaching.frequency:jar:0.4.0 (compile), junit:junit:jar:4.8.2 (compile)]
at org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.getDependencies(LifecycleDependencyResolver.java:190)

[...]

xerces、xalan、uimafit、junitなどをインストールして、それらの場所を指定する必要があったのではないでしょうか。すべてがチュートリアル内にあるか、Mavenによって直接処理されていると思いましたが、間違っている可能性がありますか?

私はやろうとしました:

mvn install:install-file -Dfile=d:\downloaded\dependencies-for-DKPro-Core-ASL\junit-4.8.2.jar -Dfile=d:\downloaded\dependencies-for-DKPro-Core-ASL\uimafit-1.2.0.jar -Dfile=d:\downloaded\dependencies-for-DKPro-Core-ASL\xalan-2.7.1.jar -Dfile=d:\downloaded\dependencies-for-DKPro-Core-ASL\xercesImpl-2.9.1.jar \

mvnrepository.com Webサイトから各ファイルを手動でダウンロードし、それらをd:\ downloaded \ distributions-for-DKPro-Core-ASL \に配置した後、もちろん、de.tudarmstadt.ukp.dkpro.teaching:de.tudarmstadtが見つかりません。 ukp.dkpro.teaching.frequency:jar:0.4.0があります。

mvn clean install:install -file -Dfile=d:\downloaded\dependencies-for-DKPro-Core-ASL\junit-4.8.2.jar -Dfile=d:\downloaded\dependencies-for-DKPro-Core-ASL\uimafit-1.2.0.jar -Dfile=d:\downloaded\dependencies-for-DKPro-Core-ASL\xalan-2.7.1.jar -Dfile=d:\downloaded\dependencies-for-DKPro-Core-ASL\xercesImpl-2.9.1.jar \ -Dmaven.test.skip=true

これ以上成功せず、で終わりました:

[INFO] Deleting D:\eclipseWorkspace\maven.1334761781732\branches\1.2.x\de.tudarm
stadt.ukp.dkpro.core.io.text\target
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building DKPro Core ASL - IO - XMI 1.2.1-SNAPSHOT

[...]

[INFO] ------------------------------------------------------------------------
[INFO] Building DKPro Core ASL 1.2.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-install-plugin:2.3.1:install-file (default-cli) @ de.tudarmstad
t.ukp.dkpro.core-asl ---
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Skipping DKPro Core ASL
[INFO] This project has been banned from the build due to previous failures.
[INFO] ------------------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] DKPro Core ASL .................................... FAILURE [0.139s]
[INFO] DKPro Core ASL - Anomaly API ...................... SUCCESS [0.048s]
[INFO] DKPro Core ASL - FeaturePath API (ASL) ............ SUCCESS [0.074s]
[INFO] DKPro Core ASL - Metadata API ..................... SUCCESS [0.227s]
[INFO] DKPro Core ASL - IO API ........................... SUCCESS [0.085s]
[INFO] DKPro Core ASL - Part-of-Speech API ............... SUCCESS [0.060s]
[INFO] DKPro Core ASL - Common API ....................... SUCCESS [0.075s]
[INFO] DKPro Core ASL - Lexical Units API ................ SUCCESS [0.117s]
[INFO] DKPro Core ASL - Structured and Semi-Structured Data API  SUCCESS [0.044s
]
[INFO] DKPro Core ASL - Syntactic Units API .............. SUCCESS [0.274s]
[INFO] DKPro Core ASL - CAS Transformation API ........... SUCCESS [0.042s]
[INFO] DKPro Core ASL - Named Entity Recognition API ..... SUCCESS [0.083s]
[INFO] DKPro Core ASL - Frequency Providers API (ASL) .... SUCCESS [0.015s]
[INFO] DKPro Core ASL - IO - MMAX2 (ASL) ................. SUCCESS [0.070s]
[INFO] DKPro Core ASL - IO - Text ........................ SUCCESS [0.090s]
[INFO] DKPro Core ASL - IO - XMI ......................... SUCCESS [0.083s]
[INFO] DKPro Core ASL - IO - XML ......................... SUCCESS [0.059s]
[INFO] DKPro Core ASL - IO - WSDL (CPL) .................. SUCCESS [0.096s]
[INFO] DKPro Core ASL - IO - Wikipedia (LGPL) ............ SUCCESS [0.114s]
[INFO] DKPro Core ASL - IO - PDFBox 0.7.3 (BSD) .......... SUCCESS [0.088s]
[INFO] DKPro Core ASL - IO - NEGRA ....................... SUCCESS [0.127s]
[INFO] DKPro Core ASL - TreeTagger (free for research) ... SUCCESS [0.113s]
[INFO] DKPro Core ASL - IO - IMS Corpus Workbench ........ SUCCESS [0.044s]
[INFO] DKPro Core ASL - IO - ANNIS2 ...................... SUCCESS [0.063s]
[INFO] DKPro Core ASL - Tokenization Toolkit ............. SUCCESS [0.134s]
[INFO] DKPro Core ASL - CAS Transformation (ASL) ......... SUCCESS [0.216s]
[INFO] DKPro Core ASL - Jazzy (LGPL) ..................... SUCCESS [0.159s]
[INFO] DKPro Core ASL - JWordSplitter (ASL) .............. SUCCESS [0.036s]
[INFO] DKPro Core ASL - LanguageTool (LGPL) .............. SUCCESS [0.062s]
[INFO] DKPro Core ASL - Norvig's Spelling Correction ..... SUCCESS [0.046s]
[INFO] DKPro Core ASL - Snowball (BSD) ................... SUCCESS [0.243s]
[INFO] DKPro Core ASL - TextCat (LGPL) ................... SUCCESS [0.062s]
[INFO] DKPro Core ASL - BananaSplit (ASL) ................ SUCCESS [0.046s]
[INFO] DKPro Core ASL - Stop Word Remover (ASL) .......... SUCCESS [0.505s]
[INFO] DKPro Core ASL - N-Gram Tools ..................... SUCCESS [0.307s]
[INFO] DKPro Core ASL - Part-of-Speech Filter ............ SUCCESS [0.058s]
[INFO] DKPro Core ASL - Dictionary Annotator ............. SUCCESS [0.344s]
[INFO] DKPro Core ASL - Examples ......................... SUCCESS [0.184s]
[INFO] DKPro Core ASL - Distribution ..................... SUCCESS [0.007s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 5.815s
[INFO] Finished at: Thu Apr 19 11:13:27 CEST 2012
[INFO] Final Memory: 9M/23M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-install-plugin:2.3
.1:install-file (default-cli) on project de.tudarmstadt.ukp.dkpro.core-asl: The
artifact information is incomplete or not valid:
[ERROR] [0]  'groupId' is missing.
[ERROR] [1]  'artifactId' is missing.
[ERROR] [2]  'packaging' is missing.
[ERROR] [3]  'version' is missing.
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e swit
ch.
[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 rea
d the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionE
xception

「依存関係の解決が正しく機能しません。新しいm2eclipseプラグインは、最後まで依存関係を解決しません。」それが関係している可能性がありますか?

そして、私はまだひどく立ち往生しています:/そしてまだmaven / java/eclipseプラットフォームのトリックにはあまりにも新しいです...

4

1 に答える 1

6

第一に、プロプライエタリのように見えるいくつかの依存関係jarがあるようです(私は間違っているかもしれません)。第二に、Apacheライブラリのようなパブリックライブラリでさえダウンロードできません。あなたはファイアウォールの後ろにいますか?MavenがMavenCentralに到達して、すべての依存関係jarとプラグインをダウンロードできないようです。プロジェクトと互換性のある正しいバージョンのMavenを使用していることを確認してください。

巨大なプロジェクトをチェックアウトしている場合は、最初mvn clean packageにコンソールでトップレベルのビルド()を実行することをお勧めします。これにより、すべてのプラグインと依存関係が確実にダウンロードされ、このプロジェクトをEclipseにインポートする際の問題に取り組むことができます。mvn dependency:resolveまたは、すべての依存関係をダウンロードすることもできます。

于 2012-04-18T09:04:58.747 に答える