Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [tycho-user] Tycho build breaks with tycho 0.15.0

Hi again,

that was indeed the problem. Here's what I had to do to get my build up
and running again:

1) I had a couple of plug-ins whose build.properties would contain
"jre.compilation.profile = J2SE-1.5", although the manifest required
JavaSE-1.6. Removing these fixed the problem.
2) I had one plug-in in my workspace which would have a build.properties
file, but no bin.includes within it (the reason being that the plug-in
only contains templates used for code generation, so it doesn't need to
end up in the final product). "strictBinIncludes=false" solved the
problem (as pointed out in the release notes).
3) Finally, the Jenkins build would copy the resulting build's zip into
some place. However, the name of the generated zip changed, as pointed
out in the release notes.

Overall, my build is running again, in the build time went down from
6:30 hours to 4:30 hours :-) (note that a significant part of that time
is spent on testing and on performing Sonar code analysis)...

Thanks for the good work (and the fast help),
Christian


Am 04.06.2012 14:35, schrieb Sievers, Jan:
> check https://bugs.eclipse.org/bugs/show_bug.cgi?id=381526 
> 
> -----Original Message-----
> From: tycho-user-bounces@xxxxxxxxxxx [mailto:tycho-user-bounces@xxxxxxxxxxx] On Behalf Of Christian Soltenborn
> Sent: Montag, 4. Juni 2012 14:03
> To: tycho-user@xxxxxxxxxxx
> Subject: [tycho-user] Tycho build breaks with tycho 0.15.0
> 
> Hi,
> 
> it must be kind of annoying to get those "Hey, my build broke!" mails
> after every tycho release :-)
> 
> Anyways, my build broke. Below's an excerpt of the log. The problem
> seems to be:
> 
> org.osgi.framework.BundleException: Bundle de.upb.dmm.editor.parser
> cannot be resolved
> Resolution errors:
>    Bundle de.upb.dmm.editor.parser - Missing Constraint:
> Bundle-RequiredExecutionEnvironment: JavaSE-1.6
> 
> Indeed, the .parser plug-in has
> 
> Bundle-RequiredExecutionEnvironment: JavaSE-1.6
> 
> in its manifest, but so do quite a few other plug-ins of mine, the
> target platform of some of which has been resolved successfully before
> the .parser plug-in fails the build.
> 
> Any idea what's going on here?
> 
> Thanks in advance,
> Christian
> 
> 
> The log:
> ========
> 
> ...
> [INFO] Computing target platform for MavenProject:
> de.upb.dmm:de.upb.dmm.editor.parser:0.1.0-SNAPSHOT @ C:\Program Files
> (x86)\Jenkins\workspace\DMM-Tooling\de.upb.dmm.editor.parser\pom.xml
> [INFO] Resolving dependencies of MavenProject:
> de.upb.dmm:de.upb.dmm.editor.parser:0.1.0-SNAPSHOT @ C:\Program Files
> (x86)\Jenkins\workspace\DMM-Tooling\de.upb.dmm.editor.parser\pom.xml
> 
> [INFO] Resolving class path of MavenProject:
> de.upb.dmm:de.upb.dmm.editor.parser:0.1.0-SNAPSHOT @ C:\Program Files
> (x86)\Jenkins\workspace\DMM-Tooling\de.upb.dmm.editor.parser\pom.xml
> [ERROR] Internal error: java.lang.RuntimeException:
> org.osgi.framework.BundleException: Bundle de.upb.dmm.editor.parser
> cannot be resolved
> [ERROR] Resolution errors:
> [ERROR] Bundle de.upb.dmm.editor.parser - Missing Constraint:
> Bundle-RequiredExecutionEnvironment: JavaSE-1.6
> [ERROR] -> [Help 1]
> org.apache.maven.InternalErrorException: Internal error:
> java.lang.RuntimeException: org.osgi.framework.BundleException: Bundle
> de.upb.dmm.editor.parser cannot be resolved
> Resolution errors:
>    Bundle de.upb.dmm.editor.parser - Missing Constraint:
> Bundle-RequiredExecutionEnvironment: JavaSE-1.6
> 
> 	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(DelegatingMethodAccessorImpl.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(Launcher.java:409)
> 	at
> org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
> Caused by: java.lang.RuntimeException:
> org.osgi.framework.BundleException: Bundle de.upb.dmm.editor.parser
> cannot be resolved
> Resolution errors:
>    Bundle de.upb.dmm.editor.parser - Missing Constraint:
> Bundle-RequiredExecutionEnvironment: JavaSE-1.6
> 
> 	at
> org.eclipse.tycho.core.osgitools.OsgiBundleProject.getResolverState(OsgiBundleProject.java:252)
> 	at
> org.eclipse.tycho.core.osgitools.OsgiBundleProject.resolveClassPath(OsgiBundleProject.java:158)
> 	at
> org.eclipse.tycho.core.resolver.DefaultTychoDependencyResolver.resolveProject(DefaultTychoDependencyResolver.java:111)
> 	at
> org.eclipse.tycho.core.maven.TychoMavenLifecycleParticipant.afterProjectsRead(TychoMavenLifecycleParticipant.java:64)
> 	at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:273)
> 	at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
> 	... 11 more
> Caused by: org.osgi.framework.BundleException: Bundle
> de.upb.dmm.editor.parser cannot be resolved
> Resolution errors:
>    Bundle de.upb.dmm.editor.parser - Missing Constraint:
> Bundle-RequiredExecutionEnvironment: JavaSE-1.6
> 
> 	at
> org.eclipse.tycho.core.osgitools.EquinoxResolver.assertResolved(EquinoxResolver.java:291)
> 	at
> org.eclipse.tycho.core.osgitools.EquinoxResolver.newResolvedState(EquinoxResolver.java:71)
> 	at
> org.eclipse.tycho.core.osgitools.OsgiBundleProject.getResolverState(OsgiBundleProject.java:250)
> 	... 16 more
> 
> 


-- 
Dylan Thomas: "An alcoholic is someone you don't like who drinks as much
as you do."


Back to the top