Yes, you shouldn't compile those Groovy files in src/main/resources
statically. Those are meant to be handled at runtime.
The directory "resources" is supposed to signify that, as opposed to
src/main/groovy, but unfortunately it's not a strong enough cue for
IntelliJ.
https://wiki.jenkins-ci.org/display/JENKINS/Building+Jenkins is the
page that explains how to build core. This page does xplain the issue
you are having.
On 08/04/2013 03:57 AM, Rusi Filipov wrote:
When I try to build the core module in Intellij I get two kinds of compilation
errors:
D:\cache\idea\system\compiler\core.e95d7d7c\.generated\groovyStubs\jenkins-core\production\jenkins\widgets\BuildQueueWidget\index.java
Error(1, 9) The package jenkins.widgets.BuildQueueWidget collides with a type
This stub for the Groovy script is automatically generated by Intellij for
Java/Groovy cross-compilation. The generated file looks like this:
package jenkins.widgets.BuildQueueWidget;
public class index extends groovy.lang.Script {
public static void main(java.lang.String[] args) {
return ;
}
public java.lang.Object run() {
return null;
}
}
There is indeed a class jenkins.widgets.BuildQueueWidget with the same name as
the namespace.
Here Intellij offers me to exclude this Groovy file from stub generation. Should
I do it?
There is another type of error that I also receive:
D:\cache\idea\system\compiler\core.e95d7d7c\.generated\groovyStubs\jenkins-core\production\jenkins\util\groovy\AbstractGroovyViewModule.java
Error (38, 8) FormTagLib cannot be resolved to a type
All of this is very confusing. This is the third day I am trying to get started
working with the sources and it adds some frustration, given that I am
experienced with maven and Intellij. Is there a description about how exactly
one must configure Intellij in order build the project?
--
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 [email protected].
For more options, visit https://groups.google.com/groups/opt_out.
--
Kohsuke Kawaguchi | CloudBees, Inc. | http://cloudbees.com/
Try Jenkins Enterprise, our professional version of Jenkins
--
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 [email protected].
For more options, visit https://groups.google.com/groups/opt_out.