Re: capicxx-core-tools mvn build failure

169 views
Skip to first unread message
Message has been deleted
Message has been deleted

franc...@gmail.com

unread,
Jan 16, 2020, 11:24:32 PM1/16/20
to Franca


Il giorno venerdì 17 gennaio 2020 01:12:37 UTC+1, badfd ha scritto:
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">
<locations>
<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>
<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>
<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>

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 
[INFO] Fetching content.jar from http://download.eclipse.org/releases/luna/201502271000/ (2.48MB of 2.61MB at 844.5kB/s)
[INFO] Fetching content.jar from http://download.eclipse.org/technology/epp/packages/luna/ (0B of 320.79kB at 0B/s)
[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] 
[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.

Message has been deleted

siddhartha v

unread,
Feb 5, 2020, 5:58:21 AM2/5/20
to Franca
Hello,

    Actually the common API core tools are available to use @https://github.com/GENIVI/capicxx-core-tools/releases you can directly download and use them for your code generation.  Also if you need more details it will be better if you can post in the common API forum ("GENIVI mailing list" as the common API is from Genivi) specifically. No sure this answer would help but it is a small suggestion. All the best.


regards,
Siddhartha V
Reply all
Reply to author
Forward
0 new messages