我已经完成了一些关于生成 JBoss Windup 报告的演示。在每个演示中,他们都使用了 EAR 文件。是否可以为.java
文件生成 Windup 报告?我已经尝试过,但出现以下错误。
INFO [ClassPathXmlApplicationContext] Refreshing org.springframework.context.support.ClassPathXmlApplicationContext@80fc33b: startup date [Wed Dec 03 08:46:08 CET 2014]; root of context hierarchy
INFO [CustomerPackageResolver] Found Package: com.acme
INFO [ClassPathXmlApplicationContext] Refreshing org.springframework.context.support.ClassPathXmlApplicationContext@81bc954: startup date [Wed Dec 03 08:46:12 CET 2014]; root of context hierarchy
INFO [CustomerPackageResolver] Found Package: com.acme
INFO [WindupReportEngine] Creating output path: /tmp/src/main/dk/tdc/ossj/inventory/client/StandaloneClient-java-doc
INFO [WindupReportEngine] - To overwrite this in the future, use the -output parameter.
INFO [ZipInterrogationEngine] Processing: StandaloneClient.java
ERROR [ZipInterrogationEngine] Error unzipping file.
java.util.zip.ZipException: Could not find End Of Central Directory
at java.util.zip.ZipFile.open(Native Method)
at java.util.zip.ZipFile.<init>(ZipFile.java:118)
at java.util.zip.ZipFile.<init>(ZipFile.java:154)
at org.jboss.windup.interrogator.ZipInterrogationEngine.process(ZipInterrogationEngine.java:81)
at org.jboss.windup.WindupMetaEngine.processArchive(WindupMetaEngine.java:297)
at org.jboss.windup.WindupMetaEngine.getArchiveMeta(WindupMetaEngine.java:160)
at org.jboss.windup.WindupReportEngine.generateReport(WindupReportEngine.java:121)
at org.jboss.windup.WindupMain.processInput(WindupMain.java:144)
at org.jboss.windup.WindupMain.main(WindupMain.java:71)
Exception in thread "Main Thread" java.lang.NullPointerException
at org.jboss.windup.reporting.ReportEngine.process(ReportEngine.java:33)
at org.jboss.windup.WindupReportEngine.generateReport(WindupReportEngine.java:128)
at org.jboss.windup.WindupMain.processInput(WindupMain.java:144)
at org.jboss.windup.WindupMain.main(WindupMain.java:71)