karthikeya karthi created JENKINS-13414: -------------------------------------------
Summary: Issue while building jenkinsci-pmd-plugin-a16ba49 source code Key: JENKINS-13414 URL: https://issues.jenkins-ci.org/browse/JENKINS-13414 Project: Jenkins Issue Type: Bug Components: pmd Reporter: karthikeya karthi Assignee: Ulli Hafner Priority: Blocker I've customized PMD, so to point my pmd jar I've edit pom.xml of jenkins pmd plugin sourcode and while building getting following error report. Problem encountered during annotation processing; see stacktrace below for more information. java.lang.AssertionError at com.sun.tools.apt.mirror.type.TypeMaker.getType(TypeMaker.java:76) at com.sun.tools.apt.mirror.declaration.ClassDeclarationImpl.getSuperclass(ClassDeclarationImpl.java:64) at org.jvnet.hudson.maven.plugins.hpi.AnnotationProcessorFactoryImpl$1.process(AnnotationProcessorFactoryImpl.ja va:50) at com.sun.mirror.apt.AnnotationProcessors$CompositeAnnotationProcessor.process(AnnotationProcessors.java:60) at com.sun.mirror.apt.AnnotationProcessors$CompositeAnnotationProcessor.process(AnnotationProcessors.java:60) at com.sun.tools.apt.comp.Apt.main(Apt.java:454) at com.sun.tools.apt.main.JavaCompiler.compile(JavaCompiler.java:258) at com.sun.tools.apt.main.Main.compile(Main.java:1102) at com.sun.tools.apt.main.Main.compile(Main.java:964) at com.sun.tools.apt.Main.processing(Main.java:95) at com.sun.tools.apt.Main.process(Main.java:85) at org.jvnet.hudson.maven.plugins.hpi.AptCompiler.compileInProcess(AptCompiler.java:63) at org.jvnet.hudson.maven.plugins.hpi.AptCompiler.compile(AptCompiler.java:50) at org.jvnet.hudson.maven.plugins.hpi.AbstractCompilerMojo.execute(AbstractCompilerMojo.java:486) at org.jvnet.hudson.maven.plugins.hpi.CompilerMojo.execute(CompilerMojo.java:111) at org.jvnet.hudson.maven.plugins.hpi.AptMojo.execute(AptMojo.java:24) at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:55 6) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:535) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.jav a:387) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138) at org.apache.maven.cli.MavenCli.main(MavenCli.java:362) at org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315) at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430) at org.codehaus.classworlds.Launcher.main(Launcher.java:375) C:\Documents and Settings\ET33783\Desktop\jenkinsci-pmd-plugin-a16ba49\src\main\java\hudson\plugins\pmd\tokens\PmdResult TokenMacro.java:4: package hudson.plugins.analysis.tokens does not exist import hudson.plugins.analysis.tokens.AbstractResultTokenMacro; ^ C:\Documents and Settings\ET33783\Desktop\jenkinsci-pmd-plugin-a16ba49\src\main\java\hudson\plugins\pmd\tokens\PmdResult TokenMacro.java:14: cannot find symbol symbol: class AbstractResultTokenMacro public class PmdResultTokenMacro extends AbstractResultTokenMacro { ^ C:\Documents and Settings\ET33783\Desktop\jenkinsci-pmd-plugin-a16ba49\src\main\java\hudson\plugins\pmd\dashboard\Warnin gsPriorityGraphPortlet.java:11: package hudson.plugins.view.dashboard does not exist import hudson.plugins.view.dashboard.DashboardPortlet; ^ C:\Documents and Settings\ET33783\Desktop\jenkinsci-pmd-plugin-a16ba49\src\main\java\hudson\plugins\pmd\dashboard\Warnin gsPriorityGraphPortlet.java:20: cannot access hudson.plugins.view.dashboard.DashboardPortlet class file for hudson.plugins.view.dashboard.DashboardPortlet not found public final class WarningsPriorityGraphPortlet extends AbstractWarningsGraphPortlet { ^ C:\Documents and Settings\ET33783\Desktop\jenkinsci-pmd-plugin-a16ba49\src\main\java\hudson\plugins\pmd\dashboard\Warnin gsPriorityGraphPortlet.java:64: cannot find symbol symbol : class DashboardPortlet location: class hudson.plugins.pmd.dashboard.WarningsPriorityGraphPortlet public static class WarningsGraphDescriptor extends Descriptor<DashboardPortlet> { ^ C:\Documents and Settings\ET33783\Desktop\jenkinsci-pmd-plugin-a16ba49\src\main\java\hudson\plugins\pmd\tokens\FixedPmdW arningsTokenMacro.java:4: package hudson.plugins.analysis.tokens does not exist import hudson.plugins.analysis.tokens.AbstractFixedAnnotationsTokenMacro; ^ C:\Documents and Settings\ET33783\Desktop\jenkinsci-pmd-plugin-a16ba49\src\main\java\hudson\plugins\pmd\tokens\FixedPmdW arningsTokenMacro.java:14: cannot find symbol symbol: class AbstractFixedAnnotationsTokenMacro public class FixedPmdWarningsTokenMacro extends AbstractFixedAnnotationsTokenMacro { ^ C:\Documents and Settings\ET33783\Desktop\jenkinsci-pmd-plugin-a16ba49\src\main\java\hudson\plugins\pmd\dashboard\Warnin gsTablePortlet.java:42: cannot find symbol symbol : class DashboardPortlet location: class hudson.plugins.pmd.dashboard.WarningsTablePortlet public static class WarningsPerJobDescriptor extends Descriptor<DashboardPortlet> { ^ C:\Documents and Settings\ET33783\Desktop\jenkinsci-pmd-plugin-a16ba49\src\main\java\hudson\plugins\pmd\dashboard\Warnin gsNewVersusFixedGraphPortlet.java:64: cannot find symbol symbol : class DashboardPortlet location: class hudson.plugins.pmd.dashboard.WarningsNewVersusFixedGraphPortlet public static class WarningsGraphDescriptor extends Descriptor<DashboardPortlet> { ^ C:\Documents and Settings\ET33783\Desktop\jenkinsci-pmd-plugin-a16ba49\src\main\java\hudson\plugins\pmd\PmdReporter.java :9: cannot find symbol symbol : class HealthAwareReporter location: package hudson.plugins.analysis.core import hudson.plugins.analysis.core.HealthAwareReporter; ^ C:\Documents and Settings\ET33783\Desktop\jenkinsci-pmd-plugin-a16ba49\src\main\java\hudson\plugins\pmd\PmdReporter.java :26: cannot find symbol symbol: class HealthAwareReporter public class PmdReporter extends HealthAwareReporter<PmdResult> { ^ C:\Documents and Settings\ET33783\Desktop\jenkinsci-pmd-plugin-a16ba49\src\main\java\hudson\plugins\pmd\PmdMavenResultAc tion.java:10: cannot find symbol symbol : class MavenResultAction location: package hudson.plugins.analysis.core import hudson.plugins.analysis.core.MavenResultAction; ^ C:\Documents and Settings\ET33783\Desktop\jenkinsci-pmd-plugin-a16ba49\src\main\java\hudson\plugins\pmd\PmdMavenResultAc tion.java:22: cannot find symbol symbol: class MavenResultAction public class PmdMavenResultAction extends MavenResultAction<PmdResult> { ^ C:\Documents and Settings\ET33783\Desktop\jenkinsci-pmd-plugin-a16ba49\src\main\java\hudson\plugins\pmd\PmdMavenResultAc tion.java:68: cannot find symbol symbol : class MavenResultAction location: class hudson.plugins.pmd.PmdMavenResultAction public Class<? extends MavenResultAction<PmdResult>> getIndividualActionType() { ^ C:\Documents and Settings\ET33783\Desktop\jenkinsci-pmd-plugin-a16ba49\src\main\java\hudson\plugins\pmd\tokens\NewPmdWar ningsTokenMacro.java:4: package hudson.plugins.analysis.tokens does not exist import hudson.plugins.analysis.tokens.AbstractNewAnnotationsTokenMacro; ^ C:\Documents and Settings\ET33783\Desktop\jenkinsci-pmd-plugin-a16ba49\src\main\java\hudson\plugins\pmd\tokens\NewPmdWar ningsTokenMacro.java:14: cannot find symbol symbol: class AbstractNewAnnotationsTokenMacro public class NewPmdWarningsTokenMacro extends AbstractNewAnnotationsTokenMacro { ^ C:\Documents and Settings\ET33783\Desktop\jenkinsci-pmd-plugin-a16ba49\src\main\java\hudson\plugins\pmd\tokens\PmdWarnin gCountTokenMacro.java:4: package hudson.plugins.analysis.tokens does not exist import hudson.plugins.analysis.tokens.AbstractAnnotationsCountTokenMacro; ^ C:\Documents and Settings\ET33783\Desktop\jenkinsci-pmd-plugin-a16ba49\src\main\java\hudson\plugins\pmd\tokens\PmdWarnin gCountTokenMacro.java:14: cannot find symbol symbol: class AbstractAnnotationsCountTokenMacro public class PmdWarningCountTokenMacro extends AbstractAnnotationsCountTokenMacro { ^ Note: hudson.plugins.pmd.PmdDescriptor indexed under hudson.Extension Note: hudson.plugins.pmd.PmdReporterDescriptor indexed under hudson.Extension C:\Documents and Settings\ET33783\Desktop\jenkinsci-pmd-plugin-a16ba49\src\main\java\hudson\plugins\pmd\tokens\PmdResult TokenMacro.java:13: not assignable to java.lang.Object @Extension(optional = true) ^ Note: hudson.plugins.pmd.dashboard.WarningsPriorityGraphPortlet.WarningsGraphDescriptor indexed under hudson.Extension C:\Documents and Settings\ET33783\Desktop\jenkinsci-pmd-plugin-a16ba49\src\main\java\hudson\plugins\pmd\tokens\FixedPmdW arningsTokenMacro.java:13: not assignable to java.lang.Object @Extension(optional = true) ^ Note: hudson.plugins.pmd.dashboard.WarningsTablePortlet.WarningsPerJobDescriptor indexed under hudson.Extension Note: hudson.plugins.pmd.dashboard.WarningsNewVersusFixedGraphPortlet.WarningsGraphDescriptor indexed under hudson.Exten sion C:\Documents and Settings\ET33783\Desktop\jenkinsci-pmd-plugin-a16ba49\src\main\java\hudson\plugins\pmd\tokens\NewPmdWar ningsTokenMacro.java:13: not assignable to java.lang.Object @Extension(optional = true) ^ C:\Documents and Settings\ET33783\Desktop\jenkinsci-pmd-plugin-a16ba49\src\main\java\hudson\plugins\pmd\tokens\PmdWarnin gCountTokenMacro.java:13: not assignable to java.lang.Object @Extension(optional = true) ^ 4 errors [INFO] ------------------------------------------------------------------------ [ERROR] BUILD ERROR [INFO] ------------------------------------------------------------------------ [INFO] Fatal error compiling Embedded error: APT failed: 1 [INFO] ------------------------------------------------------------------------ [INFO] For more information, run Maven with the -e switch [INFO] ------------------------------------------------------------------------ [INFO] Total time: 52 seconds [INFO] Finished at: Wed Apr 11 19:32:35 IST 2012 [INFO] Final Memory: 47M/112M [INFO] ------------------------------------------------------------------------ -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jenkins-ci.org/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira