Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [tycho-user] Exception building RCP with local target definition

The error message points to p2 complaining about broken repository content. I know what exactly is wrong, but I would suppose your exported target definition is broken.

Can you not use the normal offline mode? Run the build once offline to allow Maven and Tycho to prime the local repository, and then run it with -o.

Regards
Tobias


> -----Original Message-----
> From: tycho-user-bounces@xxxxxxxxxxx [mailto:tycho-user-
> bounces@xxxxxxxxxxx] On Behalf Of David Hamjediers
> Sent: Mittwoch, 29. August 2012 15:35
> To: tycho-user@xxxxxxxxxxx
> Subject: [tycho-user] Exception building RCP with local target definition
> 
> Hello,
> 
> In our build environment, we have the need to have our target platform
> available offline.
> To achieve this, i have created an eclipse target file based on p2
> update sites.
> I exported this target definition with the eclipse built-in export
> (target editor -> export) to a local directory.
> After that i created a new target file using the exported repository.
> This target file is used in the tycho build (version 0.15) of an rcp
> project.
> The build fails with an error when the dependencies of the repository
> artifact are resolved:
> 
> [INFO] Resolving dependencies of MavenProject: group:...repository:1.0.0
> @ ...repository\pom.xml
> [INFO] Downloading org.eclipse.equinox.launcher
> [INFO] Downloading org.eclipse.equinox.launcher.win32.win32.x86
> [INFO] Downloading org.eclipse.equinox.ds
> [INFO] Downloading org.eclipse.equinox.util
> [INFO] Downloading org.eclipse.equinox.executable
> [INFO] Downloading org.eclipse.equinox.executable_root.win32.win32.x86
> [INFO] Downloading org.eclipse.update.configurator
> [INFO] Downloading org.eclipse.rcp
> [INFO] Downloading org.eclipse.rcp_root
> [ERROR] Internal error: java.lang.RuntimeException: "Messages while
> trying children repositories.": ["": ["Problems downloading artifact:
> org.eclipse.update.feature,org.eclipse.equinox.executable,3.4.2.R36x_v2011
> 0125-7N7K7bF8zk1BAKMh0iz0t94miBLY.":
> ["File has invalid
> content:c:\DOKUME~1\David\LOKALE~1\Temp\signatureFile64728836857935196.jar
> ":
> ["Invalid content:bin/gtk/linux/x86/libcairo-swt.so", "Invalid
> content:bin/motif/linux/x86/libXm.so.2", "Invalid
> content:bin/gtk/linux/ppc/libcairo-swt.so", "Invalid
> content:bin/gtk/linux/x86_64/libcairo-swt.so"]]]] -> [Help 1]
> org.apache.maven.InternalErrorException: Internal error:
> java.lang.RuntimeException: "Messages while trying children
> repositories.": ["": ["Problems downloading artifact:
> org.eclipse.update.feature,org.eclipse.equinox.executable,3.4.2.R36x_v2011
> 0125-7N7K7bF8zk1BAKMh0iz0t94miBLY.":
> ["File has invalid
> content:c:\DOKUME~1\David\LOKALE~1\Temp\signatureFile64728836857935196.jar
> ":
> ["Invalid content:bin/gtk/linux/x86/libcairo-swt.so", "Invalid
> content:bin/motif/linux/x86/libXm.so.2", "Invalid
> content:bin/gtk/linux/ppc/libcairo-swt.so", "Invalid
> content:bin/gtk/linux/x86_64/libcairo-swt.so"]]]]
>      at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:168)
>      at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
>      at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
>      at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
>      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>      at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
> 39)
>      at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorIm
> pl.java:25)
>      at java.lang.reflect.Method.invoke(Method.java:597)
>      at
> org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.
> java:290)
>      at
> org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230
> )
>      at
> org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launche
> r.java:409)
>      at
> org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
> Caused by: java.lang.RuntimeException: "Messages while trying children
> repositories.": ["": ["Problems downloading artifact:
> org.eclipse.update.feature,org.eclipse.equinox.executable,3.4.2.R36x_v2011
> 0125-7N7K7bF8zk1BAKMh0iz0t94miBLY.":
> ["File has invalid
> content:c:\DOKUME~1\David\LOKALE~1\Temp\signatureFile64728836857935196.jar
> ":
> ["Invalid content:bin/gtk/linux/x86/libcairo-swt.so", "Invalid
> content:bin/motif/linux/x86/libXm.so.2", "Invalid
> content:bin/gtk/linux/ppc/libcairo-swt.so", "Invalid
> content:bin/gtk/linux/x86_64/libcairo-swt.so"]]]]
>      at
> org.eclipse.tycho.p2.target.P2ArtifactDownloadTool.downloadArtifactsToLoca
> lMavenRepository(P2ArtifactDownloadTool.java:59)
>      at
> org.eclipse.tycho.p2.target.TargetPlatformImpl.downloadArtifacts(TargetPla
> tformImpl.java:199)
>      at
> org.eclipse.tycho.p2.impl.resolver.P2ResolverImpl.resolveProject(P2Resolve
> rImpl.java:124)
>      at
> org.eclipse.tycho.p2.impl.resolver.P2ResolverImpl.resolveProject(P2Resolve
> rImpl.java:76)
>      at
> org.eclipse.tycho.p2.resolver.P2TargetPlatformResolver.doResolvePlatform(P
> 2TargetPlatformResolver.java:448)
>      at
> org.eclipse.tycho.p2.resolver.P2TargetPlatformResolver.resolveDependencies
> (P2TargetPlatformResolver.java:425)
>      at
> org.eclipse.tycho.core.resolver.DefaultTychoDependencyResolver.resolveProj
> ect(DefaultTychoDependencyResolver.java:98)
>      at
> org.eclipse.tycho.core.maven.TychoMavenLifecycleParticipant.afterProjectsR
> ead(TychoMavenLifecycleParticipant.java:64)
>      at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:273)
>      at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
>      ... 11 more
> [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/InternalErrorException
> 
> What can i do to avoid this?
> Using an exported target definition for a plug-in project worked fine.
> 
> Best regards,
>   David
> 
> 
> _______________________________________________
> tycho-user mailing list
> tycho-user@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/tycho-user


Back to the top