我正在尝试使用maven来安装UIMA sdk。要从我输入的终端安装UIMA,PWD是apache-uima文件夹:mvn install
一切看起来都很成功,直到......
[INFO] Apache UIMA Aggregate: aggregate-uimaj ............. SUCCESS [ 0.029 s]
[INFO] Apache UIMA Base: uimaj-json: JSON ................. SUCCESS [ 1.086 s]
[INFO] Apache UIMA Java SDK: uimaj ........................ FAILURE [ 5.557 s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 01:25 min
[INFO] Finished at: 2015-05-14T15:29:28-04:00
[INFO] Final Memory: 78M/1531M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-javadoc-plugin:2.9.1:javadoc (javadocs-distr) on project uimaj: An error has occurred in JavaDocs report generation:
[ERROR] Exit code: 1 - /Users/jeise003/apache-uima/uimaj-core/src/main/java/org/apache/uima/cas/text/AnnotationIndex.java:29: error: self-closing element not allowed
[ERROR] * <code>AnnotationIndex idx = cas.getAnnotationIndex();</code> or <br/>
[ERROR] ^
[ERROR] /Users/jeise003/apache-uima/uimaj-core/src/main/java/org/apache/uima/cas/text/AnnotationIndex.java:30: error: malformed HTML
[ERROR] * <code AnnotationIndex<SomeJCasType> idx = jcas.getAnnotationIndex(SomeJCasType.class);
[ERROR] ^
[ERROR] /Users/jeise003/apache-uima/uimaj-core/src/main/java/org/apache/uima/cas/text/AnnotationIndex.java:30: error: unknown tag: SomeJCasType
[ERROR] * <code AnnotationIndex<SomeJCasType> idx = jcas.getAnnotationIndex(SomeJCasType.class);
[ERROR] ^
[ERROR] /Users/jeise003/apache-uima/uimaj-core/src/main/java/org/apache/uima/jcas/JCas.java:596: warning: no @param for <T>
[ERROR] <T extends Annotation> AnnotationIndex<T> getAnnotationIndex(Type type) throws CASRuntimeException;
[ERROR] ^
[ERROR] /Users/jeise003/apache-uima/uimaj-core/src/main/java/org/apache/uima/jcas/JCas.java:608: warning: no @param for <T>
[ERROR] <T extends Annotation> AnnotationIndex<T> getAnnotationIndex(int type) throws CASRuntimeException;
[ERROR] ^
[ERROR] /Users/jeise003/apache-uima/uimaj-core/src/main/java/org/apache/uima/jcas/JCas.java:617: warning: no @param for <T>
[ERROR] <T extends Annotation> AnnotationIndex<T> getAnnotationIndex(Class<T> clazz) throws CASRuntimeException;
[ERROR] ^
[ERROR] /Users/jeise003/apache-uima/uimaj-core/src/main/java/org/apache/uima/jcas/JCas.java:631: warning: no @param for <T>
[ERROR] <T extends TOP> FSIterator<T> getAllIndexedFS(Class<T> clazz);
[ERROR] ^
[ERROR] /Users/jeise003/apache-uima/uimaj-core/src/main/java/org/apache/uima/jcas/JCas.java:699: warning: no @param for <T>
[ERROR] <T extends TOP> FSIndex<T> getIndex(String label, Class<T> clazz);
[ERROR] ^
[ERROR] /Users/jeise003/apache-uima/uimaj-core/src/main/java/org/apache/uima/jcas/JFSIndexRepository.java:53: warning: no @param for <T>
[ERROR] <T extends TOP> FSIndex<T> getIndex(String label);
[ERROR] ^
[ERROR] /Users/jeise003/apache-uima/uimaj-core/src/main/java/org/apache/uima/jcas/JFSIndexRepository.java:66: warning: no @param for <T>
[ERROR] <T extends TOP> FSIndex<T> getIndex(String label, int type);
[ERROR] ^
[ERROR] /Users/jeise003/apache-uima/uimaj-core/src/main/java/org/apache/uima/jcas/JFSIndexRepository.java:82: warning: no @param for <T>
[ERROR] <T extends Annotation> AnnotationIndex<T> getAnnotationIndex(int type);
[ERROR] ^
[ERROR] /Users/jeise003/apache-uima/uimaj-core/src/main/java/org/apache/uima/cas/FSIndexRepository.java:46: warning: no @param for <T>
[ERROR] <T extends FeatureStructure> FSIndex<T> getIndex(String label);
[ERROR] ^
[ERROR] /Users/jeise003/apache-uima/uimaj-core/src/main/java/org/apache/uima/cas/FSIndexRepository.java:61: warning: no @param for <T>
[ERROR] <T extends FeatureStructure> FSIndex<T> getIndex(String label, Type type) throws CASRuntimeException;
[ERROR] ^
[ERROR] /Users/jeise003/apache-uima/uimaj-core/src/main/java/org/apache/uima/cas/FSIndexRepository.java:137: warning: no @param for <T>
[ERROR] <T extends FeatureStructure> FSIterator<T> getAllIndexedFS(Type aType);
[ERROR] ^
[ERROR] /Users/jeise003/apache-uima/uimaj-core/src/main/java/org/apache/uima/cas/CAS.java:477: warning: no @param for <T>
[ERROR] <T extends FeatureStructure> T createFS(Type type) throws CASRuntimeException;
[ERROR] ^
[ERROR] /Users/jeise003/apache-uima/uimaj-core/src/main/java/org/apache/uima/cas/CAS.java:711: warning: no @param for <T>
[ERROR] <T extends AnnotationFS> AnnotationIndex<T> getAnnotationIndex();
[ERROR] ^
[ERROR] /Users/jeise003/apache-uima/uimaj-core/src/main/java/org/apache/uima/cas/CAS.java:721: warning: no @param for <T>
[ERROR] <T extends AnnotationFS> AnnotationIndex<T> getAnnotationIndex(Type type) throws CASRuntimeException;
[ERROR] ^
[ERROR] /Users/jeise003/apache-uima/uimaj-core/src/main/java/org/apache/uima/cas/CAS.java:735: warning: no @param for <T>
[ERROR] <T extends AnnotationFS> AnnotationFS createAnnotation(Type type, int begin, int end);
[ERROR] ^
[ERROR] /Users/jeise003/apache-uima/uimaj-core/src/main/java/org/apache/uima/cas/CAS.java:744: warning: no @param for <T>
[ERROR] <T extends AnnotationFS> T getDocumentAnnotation();
[ERROR] ^
[ERROR]
[ERROR] Command line was: /Library/Java/JavaVirtualMachines/jdk1.8.0_20.jdk/Contents/Home/bin/javadoc @options @argfile
[ERROR]
[ERROR] Refer to the generated Javadoc files in '/Users/jeise003/apache-uima/target/site/apidocs' dir.
[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/MojoExecutionException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn <goals> -rf :uimaj
有关如何纠正错误的任何想法?
答案 0 :(得分:1)
当前包含在UIMA源代码中的JavaDoc标记不符合JDK 8中JavaDoc编译器所期望的标准。要么你必须避免构建JavaDoc,例如使用
mvn install -Dmaven.javadoc.skip=true
或者您必须在构建UIMA之前切换到Java 7 SDK,例如通过将JAVA_HOME环境变量设置为指向Java 7安装。例如。在OS X上并假设版本1.7.0_60
可以使用
export JAVA_HOME=$(/usr/libexec/java_home -v 1.7.0_60)
要获取OS X上已安装JDK的列表,可以使用
/usr/libexec/java_home -V
披露:我在Apache UIMA项目
答案 1 :(得分:0)
如果您只需要在某个Maven项目中使用UIMA SDK,则无需从源代码构建它。您可以像这样使用它:
<dependency>
<groupId>org.apache.uima</groupId>
<artifactId>uimaj-core</artifactId>
<version>2.7.0</version>
</dependency>
有关更多UIMA项目,请参阅http://mvnrepository.com/search?q=uimaj。