Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » RCP compilation
RCP compilation [message #1387770] Wed, 25 June 2014 15:10
anthony palmieri is currently offline anthony palmieriFriend
Messages: 20
Registered: July 2013
Junior Member
Hello,
I want to mavenize my rcp project . So i get a tycho-demo/tree/master/itp04-rcp which compile alone. Next i add a repository in target platform http ://jucmnav.softwareengineering.ca/jucmnav/updatesite/ . I used this repository to install software to my eclipse. But when i add it to my target platform there is this error

[INFO] Scanning for projects...
[INFO] Computing target platform for MavenProject: example.group:eclipse-repository:1.0.0-SNAPSHOT @ C:\Users\glc\workspace\tycho-demo-master\itp04-rcp\eclipse-repository\pom.xml
[INFO] Fetching p2.index from http ://download.eclipse.org/releases/indigo/ (0B at 0B/s)
[INFO] Adding repository http ://download.eclipse.org/releases/indigo
[INFO] Fetching p2.index from http ://download.eclipse.org/technology/epp/packages/indigo/ (0B at 0B/s)
[INFO] Fetching p2.index from http ://download.eclipse.org/releases/indigo/201202240900/ (0B at 0B/s)
[INFO] Fetching p2.index from http ://download.eclipse.org/releases/indigo/201109230900/ (0B at 0B/s)
[INFO] Fetching p2.index from http ://download.eclipse.org/releases/indigo/201106220900/ (0B at 0B/s)
[INFO] Adding repository http ://jucmnav.softwareengineering.ca/jucmnav/updatesite
[INFO] Fetching site.xml from http ://jucmnav.softwareengineering.ca/jucmnav/updatesite/ (0B of 3.29kB at 0B/s)
[ERROR] Internal error: java.lang.RuntimeException: Failed to load p2 repository with ID 'jucmnav' from location http ://jucmnav.softwareengineering.ca/jucmnav/updatesite/: No repository found at http ://jucmnav.softwareengineering.ca/jucmnav/updatesite. -> [Help 1]
org.apache.maven.InternalErrorException: Internal error: java.lang.RuntimeException: Failed to load p2 repository with ID 'jucmnav' from location http ://jucmnav.softwareengineering.ca/jucmnav/updatesite/
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:167)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:584)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:213)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:157)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
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: java.lang.RuntimeException: Failed to load p2 repository with ID 'jucmnav' from location http ://jucmnav.softwareengineering.ca/jucmnav/updatesite/
at org.eclipse.tycho.p2.target.TargetPlatformFactoryImpl.loadMetadataRepository(TargetPlatformFactoryImpl.java:296)
at org.eclipse.tycho.p2.target.TargetPlatformFactoryImpl.gatherExternalInstallableUnits(TargetPlatformFactoryImpl.java:266)
at org.eclipse.tycho.p2.target.TargetPlatformFactoryImpl.createTargetPlatform(TargetPlatformFactoryImpl.java:164)
at org.eclipse.tycho.p2.target.TargetPlatformFactoryImpl.createTargetPlatform(TargetPlatformFactoryImpl.java:117)
at org.eclipse.tycho.p2.target.TargetPlatformFactoryImpl.createTargetPlatform(TargetPlatformFactoryImpl.java:1)
at org.eclipse.tycho.p2.resolver.P2TargetPlatformResolver.computeTargetPlatform(P2TargetPlatformResolver.java:214)
at org.eclipse.tycho.core.resolver.DefaultTychoDependencyResolver.resolveProject(DefaultTychoDependencyResolver.java:100)
at org.eclipse.tycho.core.maven.TychoMavenLifecycleParticipant.afterProjectsRead(TychoMavenLifecycleParticipant.java:75)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:317)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:155)
... 11 more
Caused by: org.eclipse.equinox.p2.core.ProvisionException: No repository found at http ://jucmnav.softwareengineering.ca/jucmnav/updatesite.
at org.eclipse.equinox.internal.p2.repository.helpers.AbstractRepositoryManager.fail(AbstractRepositoryManager.java:395)
at org.eclipse.equinox.internal.p2.repository.helpers.AbstractRepositoryManager.loadRepository(AbstractRepositoryManager.java:692)
at org.eclipse.equinox.internal.p2.metadata.repository.MetadataRepositoryManager.loadRepository(MetadataRepositoryManager.java:96)
at org.eclipse.tycho.p2.remote.RemoteMetadataRepositoryManager.loadRepository(RemoteMetadataRepositoryManager.java:59)
at org.eclipse.tycho.p2.remote.RemoteMetadataRepositoryManager.loadRepository(RemoteMetadataRepositoryManager.java:52)
at org.eclipse.tycho.p2.target.TargetPlatformFactoryImpl.loadMetadataRepository(TargetPlatformFactoryImpl.java:292)

my target file

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<?pde version="3.6"?><target name="eclipse 3.6.2" sequenceNumber="16">
<locations>
<location includeAllPlatforms="false" includeMode="planner" includeSource="true" type="InstallableUnit">
<unit id="org.eclipse.platform.sdk" version="3.7.2.M20120208-0800"/>
<unit id="org.eclipse.sdk.feature.group" version="3.7.2.r37x_v20111213-7Q7xALDPb32vCjY6UACVPdFTz-icPtJkUadz0lMmk4z-8"/>
<unit id="org.eclipse.rcp.sdk.id" version="3.7.2.M20120208-0800"/>
<unit id="org.eclipse.sdk.ide" version="3.7.2.M20120208-0800"/>
<unit id="org.eclipse.emf.ecoretools.sdk.feature.group" version="1.0.0.v20110608-1633"/>
<unit id="org.eclipse.emf.sdk.feature.group" version="2.7.2.v20120130-0943"/>
<unit id="org.eclipse.emf.compare.sdk.feature.group" version="1.2.2.v20120214-0915"/>
<unit id="org.eclipse.equinox.core.sdk.feature.group" version="3.7.1.v20110928-1809-7uF9LFpHFUqIcLhnJMmHQGXy3BJB"/>
<unit id="org.eclipse.equinox.p2.sdk.feature.group" version="3.7.1.R37x_v20110907-9N7sHDdGIUw3H-591a16Tcf5FePP"/>
<unit id="org.eclipse.xtext.sdk.feature.group" version="2.0.1.v201108020636"/>
<repository location="http //download.eclipse.org/releases/indigo"/>
</location>
<location includeAllPlatforms="false" includeMode="planner" includeSource="true" type="InstallableUnit">
<unit id="seg.jUCMNav.feature.group" version="5.4.0"/>
<repository location="http ://jucmnav.softwareengineering.ca/jucmnav/updatesite/"/>
</location>
</locations>
</target>


otherwise i didn't change anything to pom.xml and other file , just add dependencies to plugins.xml and to the product .

Thanks you for your helps
Previous Topic:SWT Browser won't print on Citrix
Next Topic:Different behavior between BUILD and eclipse run.
Goto Forum:
  


Current Time: Wed Apr 24 23:54:39 GMT 2024

Powered by FUDForum. Page generated in 0.02208 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top