Building Jenkins in Eclipse

56 views
Skip to first unread message

Gerry Storm

unread,
Dec 25, 2018, 8:04:38 PM12/25/18
to Jenkins Developers

Screenshot from 2018-12-25 16-39-00.png

I followed the instructions in https://wiki.jenkins.io/display/JENKINS/Building+Jenkins and in https://wiki.jenkins.io/display/JENKINS/Setting+up+Eclipse+to+build+Jenkins.


The source download and build command in the first URL up to and including mvn -DdownloadSources=true eclipse:eclipse completed fine.

However when I imported the projects into Eclipse I saw numerous Java errors of the same kind:

Access restriction: The type 'TransportConstants' is not API (restriction on required library '/usr/lib/jvm/java-8-oracle/jre/lib/rt.jar')    JRMPListener.java    /jenkins-test-jdk8/src/test/java/jenkins/security/security218/ysoserial/exploit    line 256    Java Problem

What am I doing wrong?

Gerry Storm

unread,
Dec 26, 2018, 5:05:43 PM12/26/18
to Jenkins Developers
I have made a mistake and imported projects from a wrong place, Eclipse has TWO import paths and I used the wrong one.

However I still see build errors:

1)
Character reference "&#x1b" is an invalid XML character.    config_1_0_with_special_chars.xml    /jenkins-core/src/test/resources/hudson    line 7    XML Problem
The offending line is:
 <label>LESS_TERMCAP_mb=&#x1b;[01;31m</label>

2) A Java error:
Type mismatch: cannot convert from CopyOnWriteArrayList<ExtensionComponent<Descriptor>> to CopyOnWriteArrayList<ExtensionComponent<Descriptor<T>>>

3). An error running some task, maybe an artifact of one of the above errors. Here is the failing execution block in jenkins-war/pom.xml
  <execution>
                <phase>generate-sources</phase>
                <id>gulp bundle</id>
                <goals>
                  <goal>gulp</goal>
                </goals>
                <configuration>
                  <arguments>jshint bundle</arguments>
                </configuration>
              </execution>

The stack trace is too long to place here.

Thank you all in advance.

James Nord

unread,
Jan 1, 2019, 4:56:39 PM1/1/19
to jenkin...@googlegroups.com
I answered on the user list but you shouldn't use mvn eclipse:eclipse but use the maven integration in eclipse and just import the project. (you will need to remove all the existing eclipse project files first though)

Also you can ignore the jenkins-test projects unless you want to run edit the tests which it seems like you don't.

--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/783643ec-b377-4399-93c9-e149d7dabed5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Mario Jauvin

unread,
May 28, 2019, 9:43:17 PM5/28/19
to Jenkins Developers
I have the same java compilation error: Type mismatch: cannot convert from CopyOnWriteArrayList<ExtensionComponent<Descriptor>> to CopyOnWriteArrayList<ExtensionComponent<Descriptor<T>>> 

can anyone explain why that is?
To unsubscribe from this group and stop receiving emails from it, send an email to jenkin...@googlegroups.com.

Slide

unread,
May 28, 2019, 10:13:46 PM5/28/19
to Jenkins Developer List
Is eclipse setting up a different jdk?

To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-de...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/b7be68d5-9413-4427-9c54-18050927cac2%40googlegroups.com.

Mario Jauvin

unread,
May 29, 2019, 12:42:23 AM5/29/19
to Jenkins Developers
I believe eclipse is using oracle jdk3 as is maven

Mario Jauvin

unread,
May 29, 2019, 12:43:19 AM5/29/19
to Jenkins Developers
I mean jdk8
Reply all
Reply to author
Forward
0 new messages