Compiling subversion-plugin, question about compilation error

148 views
Skip to first unread message

Kenny Ayers

unread,
Apr 16, 2013, 10:55:45 PM4/16/13
to jenkin...@googlegroups.com
Hi,

  I'm attempting to compile subversion-plugin (https://github.com/jenkinsci/subversion-plugin) using the Plugin tutorial (https://wiki.jenkins-ci.org/display/JENKINS/Plugin+tutorial), and I'm running into an issue.  The Maven and JDK versions are below, bolded along with the stack trace from the compilation step:

$ mvn -e install
+ Error stacktraces are turned on.
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Building Jenkins Subversion Plug-in
[INFO]    task-segment: [install]
[INFO] ------------------------------------------------------------------------
[INFO] [hpi:validate {execution: default-validate}]
[INFO] [enforcer:display-info {execution: default}]
[INFO] Maven Version: 2.2.1
[INFO] JDK Version: 1.6.0_24 normalized as: 1.6.0-24
[INFO] OS Info: Arch: amd64 Family: unix Name: linux Version: 2.6.32-358.2.1.el6.x86_64
[INFO] [localizer:generate {execution: default}]
[debug] execute contextualize
[INFO] [resources:resources {execution: default-resources}]
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 256 resources
[INFO] [compiler:compile {execution: default-compile}]
[INFO] Compiling 46 source files to /mnt/src/cine/jenkins/subversion-plugin/target/classes
[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR : 
[INFO] -------------------------------------------------------------
[ERROR] /mnt/src/cine/jenkins/subversion-plugin/src/main/java/hudson/scm/listtagsparameter/SimpleSVNDirEntryHandler.java:[36,23] cannot find symbol
symbol  : class Nonnull
location: package javax.annotation
[ERROR] /mnt/src/cine/jenkins/subversion-plugin/src/main/java/hudson/scm/listtagsparameter/SimpleSVNDirEntryHandler.java:[65,10] cannot find symbol
symbol  : class Nonnull
location: class hudson.scm.listtagsparameter.SimpleSVNDirEntryHandler
[ERROR] error: Bad service configuration file, or exception thrown while constructing Processor object: javax.annotation.processing.Processor: Provider org.kohsuke.stapler.jsr269.ExportedBeanAnnotationProcessor could not be instantiated: java.lang.NoClassDefFoundError: com/google/common/collect/Multimap
[INFO] 3 errors 
[INFO] -------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Compilation failure

/mnt/src/cine/jenkins/subversion-plugin/src/main/java/hudson/scm/listtagsparameter/SimpleSVNDirEntryHandler.java:[36,23] cannot find symbol
symbol  : class Nonnull
location: package javax.annotation
/mnt/src/cine/jenkins/subversion-plugin/src/main/java/hudson/scm/listtagsparameter/SimpleSVNDirEntryHandler.java:[65,10] cannot find symbol
symbol  : class Nonnull
location: class hudson.scm.listtagsparameter.SimpleSVNDirEntryHandler
error: Bad service configuration file, or exception thrown while constructing Processor object: javax.annotation.processing.Processor: Provider org.kohsuke.stapler.jsr269.ExportedBeanAnnotationProcessor could not be instantiated: java.lang.NoClassDefFoundError: com/google/common/collect/Multimap

[INFO] ------------------------------------------------------------------------
[INFO] Trace
org.apache.maven.BuildFailureException: Compilation failure
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:715)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:556)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:535)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java: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:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:616)
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)
Caused by: org.apache.maven.plugin.CompilationFailureException: Compilation failure
at org.apache.maven.plugin.AbstractCompilerMojo.execute(AbstractCompilerMojo.java:656)
at org.apache.maven.plugin.CompilerMojo.execute(CompilerMojo.java:128)
at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694)
... 17 more
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 7 seconds
[INFO] Finished at: Tue Apr 16 19:41:35 PDT 2013
[INFO] Final Memory: 101M/1795M
[INFO] ------------------------------------------------------------------------

  The failure occurs on import javax.annotation.Nonnull as well as the error related to the google Multimap.  I see in my ~/.m2/repository, there is no javax/annotation folder, and there is no com/google/common/collect/Multimap either.

  Ideas?

Thank you,

Kenny

Christoph Kutzinski

unread,
Apr 17, 2013, 3:51:30 AM4/17/13
to jenkin...@googlegroups.com
Looks strange.
Obviously it should compile as the last commit was for the last release.
Can you try it with Maven 3? Most of Jenkins requires Maven 3 in the mean time, so this *could* be the problem.
 
Gesendet: Mittwoch, 17. April 2013 um 04:55 Uhr
Von: "Kenny Ayers" <theother...@gmail.com>
An: jenkin...@googlegroups.com
Betreff: Compiling subversion-plugin, question about compilation error
--
You received this message because you are subscribed to the Google Groups "Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-de...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Kenny Ayers

unread,
Apr 17, 2013, 2:42:30 PM4/17/13
to jenkin...@googlegroups.com
kutzi,

  The plugin compiled correctly with maven 3.0.5.  Thank you for the suggestion!  It seems like the plugin build tutorial would benefit from this info, as it directs users to download Maven 2 (https://wiki.jenkins-ci.org/display/JENKINS/Plugin+tutorial).  I'll add a comment to the page with this info.

Thanks again,

Kenny
Reply all
Reply to author
Forward
0 new messages