Skip to content
This repository has been archived by the owner on Sep 3, 2020. It is now read-only.

Updated Tycho versions to something more recent #6

Merged
merged 5 commits into from
Feb 6, 2013

Conversation

huitseeker
Copy link
Member

No description provided.

@misto
Copy link
Member

misto commented Jan 21, 2013

Strange, I can't build your pull request, but I don't understand why:

[ERROR] Internal error: java.lang.RuntimeException: "No solution found because the problem is unsatisfiable.": ["Unable to satisfy dependency from org.scala-refactoring.library 0.6.1.qualifier to package scala.reflect.std 0.0.0.", "No solution found because the problem is unsatisfiable."] -> [Help 1]
org.apache.maven.InternalErrorException: Internal error: java.lang.RuntimeException: "No solution found because the problem is unsatisfiable.": ["Unable to satisfy dependency from org.scala-refactoring.library 0.6.1.qualifier to package scala.reflect.std 0.0.0.", "No solution found because the problem is unsatisfiable."]
        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:57)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:601)
        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: "No solution found because the problem is unsatisfiable.": ["Unable to satisfy dependency from org.scala-refactoring.library 0.6.1.qualifier to package scala.reflect.std 0.0.0.", "No solution found because the problem is unsatisfiable."]
        at org.eclipse.tycho.p2.impl.resolver.AbstractResolutionStrategy.newResolutionException(AbstractResolutionStrategy.java:79)
        at org.eclipse.tycho.p2.impl.resolver.ProjectorResolutionStrategy.resolve(ProjectorResolutionStrategy.java:83)
        at org.eclipse.tycho.p2.impl.resolver.P2ResolverImpl.resolveProject(P2ResolverImpl.java:118)
        at org.eclipse.tycho.p2.impl.resolver.P2ResolverImpl.resolveProject(P2ResolverImpl.java:76)
        at org.eclipse.tycho.p2.resolver.P2TargetPlatformResolver.doResolvePlatform(P2TargetPlatformResolver.java:448)
        at org.eclipse.tycho.p2.resolver.P2TargetPlatformResolver.resolveDependencies(P2TargetPlatformResolver.java:425)
        at org.eclipse.tycho.core.resolver.DefaultTychoDependencyResolver.resolveProject(DefaultTychoDependencyResolver.java:98)
        at org.eclipse.tycho.core.maven.TychoMavenLifecycleParticipant.afterProjectsRead(TychoMavenLifecycleParticipant.java:64)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:274)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
        ... 11 more

I'll take a closer look at it tomorrow..

@huitseeker
Copy link
Member Author

Yes, sorry, with Tycho > 0.13, we hits this bug, which last comment is particularly depressing. Now, scala.reflect.std is not really needed, so removing it from the MANIFEST.MF is an option (Scala-IDE uses tycho 0.15).

Then, with Tycho >= 0.13, "The Maven artifactId must be the same as the bundle symbolic name". This is related to the warning at the beginning of the build:

[WARNING] 'artifactId' contains an expression but should be a constant. @ org.scala-refactoring:org.scala-refactoring_${scala.version}:0.6.1-SNAPSHOT, /home/huitseeker/Scala/scala-refactoring/org.scala-refactoring.library/pom.xml, line 6, column 15

I thought this was related to 76d46ad but it turns out 07b00e4 is the culprit.

That being said, IIUC, because of the former (which is, confusingly, the most recent), we shouldn't need the latter.

I've updated the PR by reverting 07b00e4 and decreasing the Tycho version to 0.12. I'll work on this some more.

@huitseeker
Copy link
Member Author

By the way, I have a confirmed build on Scala 2.10.1-SNAPSHOT, once you update Tycho to 0.15.0 and remove scala.reflect.std from your MANIFEST.MF. I have a commit that does that, ping me if you want me to add it to this PR.

@misto
Copy link
Member

misto commented Jan 22, 2013

Yes please add that to the PR, and thank you for investigating this :)

@huitseeker
Copy link
Member Author

Done !

@misto
Copy link
Member

misto commented Jan 22, 2013

Cool, it now works for 2.10, but on 2.9, I get the following error:

[ERROR] Internal error: java.lang.RuntimeException: "No solution found because the problem is unsatisfiable.": ["Unable to satisfy dependency from org.scala-refactoring.library 0.6.1.qualifier to package scala.reflect.internal 0.0.0.", "Unable to satisfy dependency from org.scala-refactoring.library 0.6.1.qualifier to package scala.reflect.internal.util 0.0.0.", "Unable to satisfy dependency from org.scala-refactoring.library 0.6.1.qualifier to package scala.reflect.api 0.0.0.", "Unable to satisfy dependency from org.scala-refactoring.library 0.6.1.qualifier to package scala.reflect.runtime 0.0.0.", "Unable to satisfy dependency from org.scala-refactoring.library 0.6.1.qualifier to package scala.reflect.macros 0.0.0.", "Unable to satisfy dependency from org.scala-refactoring.library 0.6.1.qualifier to package scala.reflect.io 0.0.0.", "No solution found because the problem is unsatisfiable."] -> [Help 1]
org.apache.maven.InternalErrorException: Internal error: java.lang.RuntimeException: "No solution found because the problem is unsatisfiable.": ["Unable to satisfy dependency from org.scala-refactoring.library 0.6.1.qualifier to package scala.reflect.internal 0.0.0.", "Unable to satisfy dependency from org.scala-refactoring.library 0.6.1.qualifier to package scala.reflect.internal.util 0.0.0.", "Unable to satisfy dependency from org.scala-refactoring.library 0.6.1.qualifier to package scala.reflect.api 0.0.0.", "Unable to satisfy dependency from org.scala-refactoring.library 0.6.1.qualifier to package scala.reflect.runtime 0.0.0.", "Unable to satisfy dependency from org.scala-refactoring.library 0.6.1.qualifier to package scala.reflect.macros 0.0.0.", "Unable to satisfy dependency from org.scala-refactoring.library 0.6.1.qualifier to package scala.reflect.io 0.0.0.", "No solution found because the problem is unsatisfiable."]
        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:57)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:601)
        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)

:-/

@huitseeker
Copy link
Member Author

This should now build on 2.9.3 and 2.10.1-SNAPSHOT at least.
The javadoc target of the build poses some problems (suspected to be due to a javac/javadoc bug).

@misto
Copy link
Member

misto commented Feb 6, 2013

Awesome! I didn't notice any problems with Javadoc, so I'm merging this. Thank you very much!

misto added a commit that referenced this pull request Feb 6, 2013
Updated Tycho versions to something more recent
@misto misto merged commit 01e400d into scala-ide:master Feb 6, 2013
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants