Re: Problems building maven-plugin in Eclipse

2014-07-09 Thread Tomas Kolda
I used 1.554.3 that uses 1.9 and have same issue. import hudson.model.Node.Mode; -> The import hudson.model.Node.Mode cannot be resolved or public static final Mode DEFAULT_MODE = Mode.EXCLUSIVE; -> Mode cannot be resolved to a type Is there Jenkins issue already for this? I do not want to buil

Re: Problems building maven-plugin in Eclipse

2014-06-29 Thread Ace Han
Hi, Karthik plz refer to my post(Ace Han) for a short term solution >1. download the *source.zip* from >https://github.com/jenkinsci/jenkins(I mean the root of the project, >not just core folder since *Jenkins CLI* module is required for *Jenkins >core* from the this recompila

Re: Problems building maven-plugin in Eclipse

2014-06-17 Thread Karthik V S
Hi, I am getting the same error. Can anyone provide the solution for this? I am using Eclipse Kepler. On Friday, 15 November 2013 10:29:28 UTC-8, kutzi wrote: > > Hi, > > I had several problems with building Jenkins/maven-plugin in the past, > but the errors I'm getting now are especial nasty:

Re: Problems building maven-plugin in Eclipse

2014-05-27 Thread Jesse Glick
On Sat, Nov 16, 2013 at 4:46 AM, Christoph Kutzinski wrote: > Maybe we're missing this bug fix which comes with bridge-method-annotation 1.9 Well Jenkins 1.536+ uses 1.9. -- You received this message because you are subscribed to the Google Groups "Jenkins Developers" group. To unsubscribe fro

Re: Problems building maven-plugin in Eclipse

2014-05-10 Thread Ace Han
Hi, All The same issue in eclipse is driving me nuts while I was trying to upgrade my plugin code dependencies to latest LTS. Removing the annotation *@WithBridgeMethods *just works like a charm, thanks However, I would like to share a little more about how to recompile the *jenkins-core-xxx.j

Re: Problems building maven-plugin in Eclipse

2013-11-16 Thread Vincent Latombe
I could confirm it is definitely the bridge method injector which is causing the issue. In Queue.Item, there is the following getter annotated @WithBridgeMethods(Future.class) public QueueTaskFuture getFuture() { return future; } Removing the annotation then recompiling core fixes the issue for

Re: Problems building maven-plugin in Eclipse

2013-11-16 Thread Christoph Kutzinski
Makes sense. Maybe we're missing this bug fix which comes with bridge-method-annotation 1.9 https://github.com/infradna/bridge-method-injector/commit/ea528faf1f92724cc5db036116bae80a234de20d Am 16.11.2013 10:09, schrieb Vincent Latombe: Problem appeared in core 1.520. Looking at the changes t

Re: Problems building maven-plugin in Eclipse

2013-11-16 Thread Vincent Latombe
Problem appeared in core 1.520. Looking at the changes that happened for this release, I see an update of com.infradna.tool:bridge-method-annotation from 1.4 to 1.8 Maybe this is generating some bytecode that is not understood correctly by the JDT, so it fails to index the corresponding class. Vi

Re: Problems building maven-plugin in Eclipse

2013-11-16 Thread Vincent Latombe
Hi, I have exactly the same issue. Compiling in command line works, however in Eclipse, some inner classes cannot be resolved (despite being able to browse them in the classpath of the eclipse project). Eclipse is unable to resolve these 3 classes : - hudson.model.AbstractProject.AbstractProjectD

Re: Problems building maven-plugin in Eclipse

2013-11-16 Thread Christoph Kutzinski
No Maven Problems, only Java problems: DescriptionResourcePathLocationType Cannot make a static reference to the non-static method save() from the type AbstractProject MavenModuleSet.java/maven-plugin/src/main/java/hudson/maven line 1320Java Problem AbstractProjectDesc

Re: Problems building maven-plugin in Eclipse

2013-11-16 Thread Christoph Kutzinski
Yes, it works on the CLI Am 15.11.2013 21:55, schrieb Baptiste Mathus: Hi, First thing I would ask is: does it build on the CLI outside Eclipse? That'll be a first step to see if this is likely a Maven issue or more an Eclipse or even a jenkins code one. My 2 cents 2013/11/15 Christoph Kutzi

Re: Problems building maven-plugin in Eclipse

2013-11-15 Thread Marcelo
Kutzi, in the category "Maven Problems" of the view "Markers" inside eclipse, you see any error? On Fri, Nov 15, 2013 at 5:55 PM, Baptiste Mathus wrote: > Hi, First thing I would ask is: does it build on the CLI outside Eclipse? > That'll be a first step to see if this is likely a Maven issue o

Re: Problems building maven-plugin in Eclipse

2013-11-15 Thread Baptiste Mathus
Hi, First thing I would ask is: does it build on the CLI outside Eclipse? That'll be a first step to see if this is likely a Maven issue or more an Eclipse or even a jenkins code one. My 2 cents 2013/11/15 Christoph Kutzinski > Hi, > > I had several problems with building Jenkins/maven-plugin i

Problems building maven-plugin in Eclipse

2013-11-15 Thread Christoph Kutzinski
Hi, I had several problems with building Jenkins/maven-plugin in the past, but the errors I'm getting now are especial nasty: Eclipse e.g. complains that it cannot find hudson.model.Queue.Item (in MavenModuleSet) and several other compile errors. I checked the the Jenkins core jar is intact (bu