I want to build cdt plugin from source. I need version compatible with eclipse Luna so I choose v8.6.0. I need to build the following plugin jars:
org.eclipse.cdt_8.6.0.201502131403.jar
org.eclipse.cdt.codan.checkers_3.2.0.201502131403.jar
org.eclipse.cdt.codan.checkers.source_3.2.0.201502131403.jar
org.eclipse.cdt.codan.checkers.ui_3.2.0.201502131403.jar
org.eclipse.cdt.codan.checkers.ui.source_3.2.0.201502131403.jar
org.eclipse.cdt.codan.core_3.2.0.201502131403.jar
org.eclipse.cdt.codan.core.cxx_3.2.0.201502131403.jar
org.eclipse.cdt.codan.core.cxx.source_3.2.0.201502131403.jar
org.eclipse.cdt.codan.core.source_3.2.0.201502131403.jar
org.eclipse.cdt.codan.ui_3.2.0.201502131403.jar
org.eclipse.cdt.codan.ui.cxx_3.2.0.201502131403.jar
org.eclipse.cdt.codan.ui.cxx.source_3.2.0.201502131403.jar
org.eclipse.cdt.codan.ui.source_3.2.0.201502131403.jar
org.eclipse.cdt.core_5.9.1.201502131403.jar
org.eclipse.cdt.core.linux_5.3.0.201502131403.jar
org.eclipse.cdt.core.linux.source_5.3.0.201502131403.jar
org.eclipse.cdt.core.linux.x86_64_5.3.0.201502131403.jar
org.eclipse.cdt.core.native_5.7.0.201502131403.jar
org.eclipse.cdt.core.native.source_5.7.0.201502131403.jar
org.eclipse.cdt.core.source_5.9.1.201502131403.jar
org.eclipse.cdt.debug.core_7.6.0.201502131403.jar
org.eclipse.cdt.debug.core.source_7.6.0.201502131403.jar
org.eclipse.cdt.debug.mi.core_7.3.0.201502131403.jar
org.eclipse.cdt.debug.mi.core.source_7.3.0.201502131403.jar
org.eclipse.cdt.debug.mi.ui_6.2.0.201502131403.jar
org.eclipse.cdt.debug.mi.ui.source_6.2.0.201502131403.jar
org.eclipse.cdt.debug.ui_7.5.0.201502131403.jar
org.eclipse.cdt.debug.ui.source_7.5.0.201502131403.jar
org.eclipse.cdt.doc.isv_5.4.0.201502131403.jar
org.eclipse.cdt.doc.user_5.3.0.201502131403.jar
org.eclipse.cdt.dsf_2.6.0.201502131403.jar
org.eclipse.cdt.dsf.gdb_4.6.0.201502131403.jar
org.eclipse.cdt.dsf.gdb.source_4.6.0.201502131403.jar
org.eclipse.cdt.dsf.gdb.ui_2.4.0.201502131403.jar
org.eclipse.cdt.dsf.gdb.ui.source_2.4.0.201502131403.jar
org.eclipse.cdt.dsf.source_2.6.0.201502131403.jar
org.eclipse.cdt.dsf.ui_2.5.0.201502131403.jar
org.eclipse.cdt.dsf.ui.source_2.5.0.201502131403.jar
org.eclipse.cdt.gdb_7.0.0.201502131403.jar
org.eclipse.cdt.gdb.source_7.0.0.201502131403.jar
org.eclipse.cdt.gdb.ui_7.0.0.201502131403.jar
org.eclipse.cdt.gdb.ui.source_7.0.0.201502131403.jar
org.eclipse.cdt.launch_7.2.0.201502131403.jar
org.eclipse.cdt.launch.source_7.2.0.201502131403.jar
org.eclipse.cdt.make.core_7.3.0.201502131403.jar
org.eclipse.cdt.make.core.source_7.3.0.201502131403.jar
org.eclipse.cdt.make.ui_7.2.0.201502131403.jar
org.eclipse.cdt.make.ui.source_7.2.0.201502131403.jar
org.eclipse.cdt.managedbuilder.core_8.3.0.201502131403.jar
org.eclipse.cdt.managedbuilder.core.source_8.3.0.201502131403.jar
org.eclipse.cdt.managedbuilder.gnu.ui_8.3.0.201502131403.jar
org.eclipse.cdt.managedbuilder.gnu.ui.source_8.3.0.201502131403.jar
org.eclipse.cdt.managedbuilder.ui_8.2.2.201502131403.jar
org.eclipse.cdt.managedbuilder.ui.source_8.2.2.201502131403.jar
org.eclipse.cdt.sdk_8.6.0.201502131403.jar
org.eclipse.cdt.ui_5.9.0.201502131403.jar
org.eclipse.cdt.ui.source_5.9.0.201502131403.jar
I tried using this commands:
git clone https://github.com/eclipse/cdt.git
cd cdt
git checkout cdt_8_6
cd ..
mvn -P build-individual-bundles clean install -f cdt/pom.xml
I get the following output:
[INFO] Scanning for projects...
[INFO] Computing target platform for MavenProject: org.eclipse.cdt:org.eclipse.cdt.core.native:5.7.0-SNAPSHOT @ /home/ikulezic/Desktop/blabla/cdt/core/org.eclipse.cdt.core.native/pom.xml
[INFO] Adding repository http://download.eclipse.org/jetty/updates/jetty-bundles-8.x
[INFO] Fetching p2.index from http://download.eclipse.org/tools/orbit/downloads/drops/R20140525021250/repository/ (0B at 0B/s)
[INFO] Adding repository http://download.eclipse.org/tools/orbit/downloads/drops/R20140525021250/repository
[INFO] Adding repository http://download.eclipse.org/technology/swtbot/releases/latest
[INFO] Adding repository http://download.eclipse.org/tm/updates/3.6milestones
[INFO] Fetching p2.index from http://download.eclipse.org/eclipse/updates/4.4/ (0B at 0B/s)
[INFO] Adding repository http://download.eclipse.org/eclipse/updates/4.4
[INFO] Adding repository http://download.eclipse.org/tools/ptp/updates/luna
[INFO] Fetching p2.index from http://download.eclipse.org/cbi/updates/license/ (0B at 0B/s)
[INFO] Adding repository http://download.eclipse.org/cbi/updates/license
[ERROR] Cannot resolve target definition:
[ERROR] Software being installed: org.eclipse.swtbot.eclipse.feature.group 2.5.0.201609021837
[ERROR] Missing requirement: org.eclipse.swtbot.junit4_x 2.5.0.201609021837 requires 'package org.junit 4.12.0' but it could not be found
[ERROR] Cannot satisfy dependency: org.eclipse.swtbot.eclipse.feature.group 2.5.0.201609021837 depends on: org.eclipse.swtbot.junit4_x 0.0.0
[ERROR]
[ERROR] Failed to resolve target definition /home/ikulezic/Desktop/blabla/cdt/releng/org.eclipse.cdt.target/cdt-e4.4.target: See log for details -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MavenExecutionException
Is there a way to fix this build?