Cloudera CDH/CDP 및 Hadoop EcoSystem, Semantic IoT등의 개발/운영 기술을 정리합니다. gooper@gooper.com로 문의 주세요.
pom.xml파일에
아래오 같이 <failOnError>false</failOnError>를 추가해준다.
<plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-javadoc-plugin</artifactId> <version>2.10.4</version> <configuration> <encoding>UTF-8</encoding> <aggregate>true</aggregate> <failOnError>false</failOnError> </configuration> <executions> <execution> <id>attach-javadocs</id> <goals> <goal>jar</goal> </goals> </execution> </executions> </plugin>
--오류내용--------
[INFO] Fork Value is true [java] 1?썡 24, 2017 3:01:47 ?삤?썑 java.util.prefs.WindowsPreferences <init> [java] 寃쎄퀬: Could not open/create prefs root node SoftwareJavaSoftPrefs at root 0x80000002. Windows RegCreateKeyEx(...) returned error code 5. [java] The following errors occurred during analysis: [java] Cannot open codebase filesystem:C:devapache-maven-3.3.3repositoryorgapachehttpcomponentshttpclient4.5.2httpclient-4.5.2.jar [java] java.util.zip.ZipException: invalid LOC header (bad signature) [java] At java.util.zip.ZipFile.read(Native Method) [java] At java.util.zip.ZipFile.access$1400(ZipFile.java:60) [java] At java.util.zip.ZipFile$ZipFileInputStream.read(ZipFile.java:716) [java] At java.util.zip.ZipFile$ZipFileInflaterInputStream.fill(ZipFile.java:419) [java] At java.util.zip.InflaterInputStream.read(InflaterInputStream.java:158) [java] At java.util.jar.Manifest$FastInputStream.fill(Manifest.java:441) [java] At java.util.jar.Manifest$FastInputStream.readLine(Manifest.java:375) [java] At java.util.jar.Manifest$FastInputStream.readLine(Manifest.java:409) [java] At java.util.jar.Attributes.read(Attributes.java:376) [java] At java.util.jar.Manifest.read(Manifest.java:199) [java] At java.util.jar.Manifest.<init>(Manifest.java:69) [java] At edu.umd.cs.findbugs.classfile.impl.ClassPathBuilder.scanJarManifestForClassPathEntries(ClassPathBuilder.java:752) [java] At edu.umd.cs.findbugs.classfile.impl.ClassPathBuilder.processWorkList(ClassPathBuilder.java:627) [java] At edu.umd.cs.findbugs.classfile.impl.ClassPathBuilder.build(ClassPathBuilder.java:226) [java] At edu.umd.cs.findbugs.FindBugs2.buildClassPath(FindBugs2.java:677) [java] At edu.umd.cs.findbugs.FindBugs2.execute(FindBugs2.java:218) [java] At edu.umd.cs.findbugs.FindBugs.runMain(FindBugs.java:402) [java] At edu.umd.cs.findbugs.FindBugs2.main(FindBugs2.java:1200) [java] Cannot open codebase filesystem:C:devapache-maven-3.3.3repositoryorgapachehttpcomponentshttpcore4.4.4httpcore-4.4.4.jar [java] java.util.zip.ZipException: invalid LOC header (bad signature) [java] At java.util.zip.ZipFile.read(Native Method) [java] At java.util.zip.ZipFile.access$1400(ZipFile.java:60) [java] At java.util.zip.ZipFile$ZipFileInputStream.read(ZipFile.java:716) [java] At java.util.zip.ZipFile$ZipFileInflaterInputStream.fill(ZipFile.java:419) [java] At java.util.zip.InflaterInputStream.read(InflaterInputStream.java:158) [java] At java.util.jar.Manifest$FastInputStream.fill(Manifest.java:441) [java] At java.util.jar.Manifest$FastInputStream.readLine(Manifest.java:375) [java] At java.util.jar.Manifest$FastInputStream.readLine(Manifest.java:409) [java] At java.util.jar.Attributes.read(Attributes.java:376) [java] At java.util.jar.Manifest.read(Manifest.java:199) [java] At java.util.jar.Manifest.<init>(Manifest.java:69) [java] At edu.umd.cs.findbugs.classfile.impl.ClassPathBuilder.scanJarManifestForClassPathEntries(ClassPathBuilder.java:752) [java] At edu.umd.cs.findbugs.classfile.impl.ClassPathBuilder.processWorkList(ClassPathBuilder.java:627) [java] At edu.umd.cs.findbugs.classfile.impl.ClassPathBuilder.build(ClassPathBuilder.java:226) [java] At edu.umd.cs.findbugs.FindBugs2.buildClassPath(FindBugs2.java:677) [java] At edu.umd.cs.findbugs.FindBugs2.execute(FindBugs2.java:218) [java] At edu.umd.cs.findbugs.FindBugs.runMain(FindBugs.java:402) [java] At edu.umd.cs.findbugs.FindBugs2.main(FindBugs2.java:1200) [INFO] Done FindBugs Analysis.... [INFO] [INFO] >>> maven-source-plugin:3.0.1:jar (attach-sources) > generate-sources @ halyard-strategy >>> [INFO] [INFO] --- jacoco-maven-plugin:0.7.6.201602180812:prepare-agent (default) @ halyard-strategy --- [INFO] argLine set to -javaagent:C:\dev\apache-maven-3.3.3\repository\org\jacoco\org.jacoco.agent\0.7.6.201602180812\org.jacoco.agent-0.7.6.201602180812-runtime.jar=destfile=C:\Users\gooper\git\Halyard\strategy\target\jacoco.exec,includes=com/msd/gin/halyard/** [INFO] [INFO] <<< maven-source-plugin:3.0.1:jar (attach-sources) < generate-sources @ halyard-strategy <<< [INFO] [INFO] --- maven-source-plugin:3.0.1:jar (attach-sources) @ halyard-strategy --- [INFO] Building jar: C:UsersgoopergitHalyardstrategytargethalyard-strategy-1.1-SNAPSHOT-sources.jar [INFO] [INFO] --- maven-javadoc-plugin:2.10.4:jar (attach-javadocs) @ halyard-strategy --- [INFO] Loading source files for package com.msd.gin.halyard.strategy.collections... Loading source files for package com.msd.gin.halyard.strategy... 2 errors [INFO] ------------------------------------------------------------------------ [INFO] Reactor Summary: [INFO] [INFO] halyard ............................................ SUCCESS [ 4.627 s] [INFO] halyard-common ..................................... SUCCESS [ 16.009 s] [INFO] halyard-strategy ................................... FAILURE [ 13.019 s] [INFO] halyard-sail ....................................... SKIPPED [INFO] halyard-tools ...................................... SKIPPED [INFO] halyard-sdk ........................................ SKIPPED [INFO] halyard-webapps .................................... SKIPPED [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 33.962 s [INFO] Finished at: 2017-01-24T15:01:57+09:00 [INFO] Final Memory: 37M/326M [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.apache.maven.plugins:maven-javadoc-plugin:2.10.4:jar (attach-javadocs) on project halyard-strategy: MavenReportException: Error while generating Javadoc: [ERROR] Exit code: 1 - error: error reading C:devapache-maven-3.3.3repositoryorgapachehttpcomponentshttpcore4.4.4httpcore-4.4.4.jar; invalid LOC header (bad signature) [ERROR] error: error reading C:devapache-maven-3.3.3repositoryorgapachehttpcomponentshttpclient4.5.2httpclient-4.5.2.jar; invalid LOC header (bad signature) [ERROR] [ERROR] Command line was: C:devjdk1.8.0_60jre..binjavadoc.exe @options @packages [ERROR] [ERROR] Refer to the generated Javadoc files in 'C:UsersgoopergitHalyardstrategytargetapidocs' 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 :halyard-strategy