Despite that we are maven newbies, we have successfully built
capicxx-core-tools targeting
franca-0.9.1.
The building of franca-0.9.1 was problematic due to the age of that release and the (now) many missing dependencies, but the follow-on build of capicxx-core-tools, targeting franca-0.9.1, was relatively easy.
Once we had the franca-0.9.1 artifacts, we made a few simple changes to point the capicxx-core-tools build at the local franca-0.9.1 repository. One of the changed files was:
/home/vagrant/franca-dev/franca/org.genivi.commonapi.core.target/org.genivi.commonapi.core.target.target
which we changed to point to our newly built franca-0.9.1's repository:
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<?pde version="3.8"?><target name="CommonAPI Luna SR1" sequenceNumber="33">
<locations>
<location includeAllPlatforms="false" includeConfigurePhase="true" includeMode="planner" includeSource="true" type="InstallableUnit">
<unit id="org.franca.ui.sdk.feature.group" version="0.9.1.202001161530"/>
<unit id="org.franca.core.sdk.feature.group" version="0.9.1.202001161530"/>
<repository location='file:///home/vagrant/franca/franca/releng/org.franca.updatesite/target/site'/>
</location>
<location includeAllPlatforms="false" includeConfigurePhase="true" includeMode="planner" includeSource="true" type="InstallableUnit">
<unit id="org.eclipse.platform.sdk" version="4.4.1.M20140925-0400"/>
<unit id="org.eclipse.equinox.sdk.feature.group" version="3.10.0.v20140909-1633"/>
<unit id="org.eclipse.e4.rcp.R441patch.feature.group" version="1.0.0"/>
<unit id="org.eclipse.equinox.core.sdk.R441patch.feature.group" version="1.0.0"/>
<unit id="org.eclipse.equinox.core.feature.R441patch.feature.group" version="1.0.0"/>
<unit id="org.eclipse.equinox.server.core.R441patch.feature.group" version="1.0.0"/>
</location>
<location includeAllPlatforms="false" includeConfigurePhase="true" includeMode="planner" includeSource="true" type="InstallableUnit">
<unit id="org.eclipse.cdt.sdk.feature.group" version="8.5.0.201409172108"/>
<unit id="org.eclipse.xtend.sdk.feature.group" version="2.7.2.v201409160908"/>
</location>
</locations>
<targetJRE path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8"/>
</target>
On the assumption that building capicxx-core-tools targeting franca-0-13.1 would be very similar, we first successfully built franca-0.13.1. Second, using essentially the same modifications to
/home/vagrant/franca-dev/franca/org.genivi.commonapi.core.target/org.genivi.commonapi.core.target.target, we attempted to build
capicxx-core-tools. That attempt failed due to a missing dependencies, which happened to be located in a separate repository under the same franca-0.13.1 directory tree. To fix the missing dependencies, we added another
'location':
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<?pde version="3.8"?><target name="CommonAPI Luna SR1" sequenceNumber="33">
<location includeAllPlatforms="false" includeConfigurePhase="true" includeMode="planner" includeSource="true" type="InstallableUnit">
<unit id="org.franca.ui.sdk.feature.group" version="0.13.1.202001162121"/>
<unit id="org.franca.core.sdk.feature.group" version="0.13.1.202001162121"/>
<repository location="file:///home/vagrant/franca-dev/franca/releng/org.franca.updatesite/target/repository"/>
<location includeAllPlatforms="false" includeConfigurePhase="true" includeMode="planner" includeSource="true" type="InstallableUnit">
<unit id="org.eclipse.xtext" version="2.11.0.v20170130-0808"/>
<unit id="org.eclipse.xtext.ui" version="2.11.0.v20170130-0818"/>
<repository location="file:///home/vagrant/franca/franca/releng/org.franca.product/target/repository"/>
</location>
<location includeAllPlatforms="false" includeConfigurePhase="true" includeMode="planner" includeSource="true" type="InstallableUnit">
<unit id="org.eclipse.platform.sdk" version="4.4.1.M20140925-0400"/>
<unit id="org.eclipse.equinox.sdk.feature.group" version="3.10.0.v20140909-1633"/>
<unit id="org.eclipse.e4.rcp.R441patch.feature.group" version="1.0.0"/>
<unit id="org.eclipse.equinox.core.sdk.R441patch.feature.group" version="1.0.0"/>
<unit id="org.eclipse.equinox.core.feature.R441patch.feature.group" version="1.0.0"/>
<unit id="org.eclipse.equinox.server.core.R441patch.feature.group" version="1.0.0"/>
<location includeAllPlatforms="false" includeConfigurePhase="true" includeMode="planner" includeSource="true" type="InstallableUnit">
<unit id="org.eclipse.cdt.sdk.feature.group" version="8.5.0.201409172108"/>
<unit id="org.eclipse.xtend.sdk.feature.group" version="2.7.2.v201409160908"/>
<targetJRE path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8"/>
But now we have somehow created a situation wherein the artifact that we pulled in to fix a problem -- org.eclipse.xtext.ui -- has itself created a problem:
$ cd /home/vagrant/franca-dev/capicxx-core-tools/org.genivi.commonapi.core.releng
$ mvn -e -X -Dtarget.id=org.genivi.commonapi.core.target clean verify
o o o
[DEBUG] No solution found because the problem is unsatisfiable.: [Unable to satisfy dependency from org.eclipse.jdt.core 3.10.0.v_OTDT_r230_201406101339 to org.eclipse.objectteams.otdt.core.patch.feature.group [2.0.0,3.0.0).; Unable to satisfy dependency from org.eclipse.jdt.core 3.10.0.v_OTDT_r231_201409160728 to org.eclipse.objectteams.otdt.core.patch.feature.group [2.0.0,3.0.0).; Unable to satisfy dependency from org.eclipse.jdt.core 3.10.2.v_OTDT_r232_201502101148 to org.eclipse.objectteams.otdt.core.patch.feature.group [2.0.0,3.0.0).; No solution found because the problem is unsatisfiable.]
[ERROR] Cannot resolve target definition:
[ERROR] Software being installed: org.eclipse.xtend.sdk.feature.group 2.7.2.v201409160908
[ERROR] Software being installed: org.eclipse.xtext.ui 2.11.0.v20170130-0818
[ERROR] Only one of the following can be installed at once: [org.eclipse.xtext.ui 2.7.3.v201411190455, org.eclipse.xtext.ui 2.6.0.v201405210727, org.eclipse.xtext.ui 2.7.2.v201409160908, org.eclipse.xtext.ui 2.11.0.v20170130-0818]
[ERROR] Cannot satisfy dependency: org.eclipse.xtend.sdk.feature.group 2.7.2.v201409160908 depends on: org.eclipse.xtext.ui.feature.group [2.7.2.v201409160908]
[ERROR] Cannot satisfy dependency: org.eclipse.xtext.ui.feature.group 2.7.2.v201409160908 depends on: org.eclipse.xtext.ui [2.7.2.v201409160908]
[ERROR] Failed to resolve target definition /home/vagrant/franca/capicxx-core-tools/org.genivi.commonapi.core.target/org.genivi.commonapi.core.target.target: See log for details -> [Help 1]
org.apache.maven.MavenExecutionException: Failed to resolve target definition /home/vagrant/franca/capicxx-core-tools/org.genivi.commonapi.core.target/org.genivi.commonapi.core.target.target
at org.eclipse.tycho.core.maven.TychoMavenLifecycleParticipant.afterProjectsRead (TychoMavenLifecycleParticipant.java:82)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:264)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
at org.apache.maven.cli.MavenCli.execute (MavenCli.java:956)
at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:288)
at org.apache.maven.cli.MavenCli.main (MavenCli.java:192)
at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke (Method.java:498)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:289)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:229)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:415)
at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:356)
Caused by: org.eclipse.tycho.core.ee.shared.BuildFailureException: Failed to resolve target definition /home/vagrant/franca/capicxx-core-tools/org.genivi.commonapi.core.target/org.genivi.commonapi.core.target.target
o o o
Any insight would be appreciated.