How to build Scala IDE master using Scala 2.10.4?

219 views
Skip to first unread message

Jerzy Müller

unread,
Jun 12, 2014, 5:25:07 AM6/12/14
to scala-...@googlegroups.com
Hi all,

I'm trying to build Scala IDE master branch using stable Scala version. Unfortunately, building with:

build-all.sh -Pscala-2.10.x -Peclipse-juno -Dscala.version=2.10.4 clean install 

ends with:

[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] org.scala-ide.build-toolchain ..................... SUCCESS [0.268s]
[INFO] org.scala-ide.sbt.full.library .................... FAILURE [0.104s]
[INFO] org.scala-ide.sbt.full.library.source ............. SKIPPED
[INFO] org.scala-ide.sbt.compiler.interface .............. SKIPPED
[INFO] org.scala-ide.sbt.compiler.interface.source ....... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 0.915s
[INFO] Finished at: Thu Jun 12 11:15:20 CEST 2014
[INFO] Final Memory: 21M/478M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project org.scala-ide.sbt.full.library: Could not resolve dependencies for project org.scala-ide:org.scala-ide.sbt.full.library:bundle:4.0.0-SNAPSHOT: The following artifacts could not be resolved: com.typesafe.sbt:sbt-interface:jar:0.13.2-on-2.10.4-for-IDE-SNAPSHOT, com.typesafe.sbt:incremental-compiler:jar:0.13.2-on-2.10.4-for-IDE-SNAPSHOT: Failure to find com.typesafe.sbt:sbt-interface:jar:0.13.2-on-2.10.4-for-IDE-SNAPSHOT in http://private-repo.typesafe.com/typesafe/ide-2.10 was cached in the local repository, resolution will not be reattempted until the update interval of typesafe-ide-210 has elapsed or updates are forced -> [Help 1]
[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/DependencyResolutionException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn <goals> -rf :org.scala-ide.sbt.full.library

And then:

[ERROR] Cannot resolve project dependencies:
[ERROR]   Software being installed: org.scala-ide.sdt.core 4.0.0.qualifier
[ERROR]   Missing requirement: org.scala-ide.sbt.compiler.interface 0.13.2.local-20140611-1309 requires 'package scala.reflect.internal.tpe 0.0.0' but it could not be found
[ERROR]   Cannot satisfy dependency: org.scala-ide.sdt.core 4.0.0.qualifier depends on: bundle org.scala-ide.sbt.compiler.interface [0.13.0,0.14.0)
[ERROR]
[ERROR] Internal error: java.lang.RuntimeException: No solution found because the problem is unsatisfiable.: [Unable to satisfy dependency from org.eclipse.jdt.core 3.8.1.v_OTDT_r210_201206090452 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.8.2.v_OTDT_r211_201209011847 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.8.3.v_OTDT_r212_201301271217 to org.eclipse.objectteams.otdt.core.patch.feature.group [2.0.0,3.0.0).; Unable to satisfy dependency from org.scala-ide.sbt.compiler.interface 0.13.2.local-20140611-1309 to package scala.reflect.internal.tpe 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.eclipse.jdt.core 3.8.1.v_OTDT_r210_201206090452 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.8.2.v_OTDT_r211_201209011847 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.8.3.v_OTDT_r212_201301271217 to
org.eclipse.objectteams.otdt.core.patch.feature.group [2.0.0,3.0.0).; Unable to satisfy dependency from org.scala-ide.sbt.compiler.interface 0.13.2.local-20140611-1309 to package scala.reflect.internal.tpe 0.0.0.; No solution found because the problem is unsatisfiable.]
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:164)
        at org.apache.maven.cli.MavenCli.execute(MavenCli.java:555)
        at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:214)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:158)
        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: No solution found because the problem is unsatisfiable.: [Unable to satisfy dependency from org.eclipse.jdt.core 3.8.1.v_OTDT_r210_201206090452 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.8.2.v_OTDT_r211_201209011847 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.8.3.v_OTDT_r212_201301271217 to org.eclipse.objectteams.otdt.core.patch.feature.group [2.0.0,3.0.0).; Unable to satisfy dependency from org.scala-ide.sbt.compiler.interface 0.13.2.local-20140611-1309 to package scala.reflect.internal.tpe 0.0.0.; No solution found because the problem is unsatisfiable.]
        at org.eclipse.tycho.p2.resolver.AbstractResolutionStrategy.newResolutionException(AbstractResolutionStrategy.java:98)
        at org.eclipse.tycho.p2.resolver.ProjectorResolutionStrategy.resolve(ProjectorResolutionStrategy.java:88)
        at org.eclipse.tycho.p2.resolver.AbstractResolutionStrategy.resolve(AbstractResolutionStrategy.java:63)
        at org.eclipse.tycho.p2.impl.resolver.P2ResolverImpl.resolveDependencies(P2ResolverImpl.java:157)
        at org.eclipse.tycho.p2.impl.resolver.P2ResolverImpl.resolveDependencies(P2ResolverImpl.java:107)
        at org.eclipse.tycho.p2.resolver.P2TargetPlatformResolver.doResolveDependencies(P2TargetPlatformResolver.java:348)
        at org.eclipse.tycho.p2.resolver.P2TargetPlatformResolver.resolveDependencies(P2TargetPlatformResolver.java:321)
        at org.eclipse.tycho.core.resolver.DefaultTychoDependencyResolver.resolveProject(DefaultTychoDependencyResolver.java:109)
        at org.eclipse.tycho.core.maven.TychoMavenLifecycleParticipant.afterProjectsRead(TychoMavenLifecycleParticipant.java:75)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:271)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:152)
        ... 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

Any ideas about how to make that work?

Thanks,
Jerzy 

iulian dragos

unread,
Jun 13, 2014, 8:00:06 AM6/13/14
to scala-ide-dev
Hi Jerzy,

The problem's that nobody published the sbt incremental compiler for 2.10.4. When we release the IDE, we build all dependencies (using the uber-build repo under scala-ide), so we didn't notice this problem.

If you simply want a 2.10 build of the IDE, try building with 2.10.5-SNAPSHOT (probably not many commits after the 2.10.4 final anyway).

We should be publishing a 2.10.4 version too, but won't happen before ScalaDays.

cheers,
iulian



--
You received this message because you are subscribed to the Google Groups "Scala IDE Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to scala-ide-de...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/scala-ide-dev/883601c5-ba8f-4dee-a322-917c3d1d87c5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
« Je déteste la montagne, ça cache le paysage »
Alphonse Allais

Luc Bourlier

unread,
Jun 16, 2014, 11:02:10 AM6/16/14
to scala-...@googlegroups.com
Hi Jerzy,

I generated and published the sbt incremental compiler 0.13.2 for 2.10.4, so your build should now be working.

Keep us posted if you encounter more problems.

Luc

Jerzy Müller

unread,
Jun 24, 2014, 12:45:59 PM6/24/14
to scala-...@googlegroups.com
Thanks, build runs ok now.

One thing bothers me still: why in org.scala-ide.sdt.update-site\target\site\plugins after such build I have org.scala-lang.scala-compiler_2.10.5.v20140602-092601-300db2a1e3.jar, not the 2.10.4 one?

iulian dragos

unread,
Jun 25, 2014, 3:48:56 AM6/25/14
to scala-ide-dev
On Tue, Jun 24, 2014 at 6:45 PM, Jerzy Müller <sidus....@gmail.com> wrote:
Thanks, build runs ok now.

One thing bothers me still: why in org.scala-ide.sdt.update-site\target\site\plugins after such build I have org.scala-lang.scala-compiler_2.10.5.v20140602-092601-300db2a1e3.jar, not the 2.10.4 one?

What is the exact command line you used?

cheers,
iulian
 


On Monday, June 16, 2014 5:02:10 PM UTC+2, Luc Bourlier wrote:
Hi Jerzy,

I generated and published the sbt incremental compiler 0.13.2 for 2.10.4, so your build should now be working.

Keep us posted if you encounter more problems.

Luc

--
You received this message because you are subscribed to the Google Groups "Scala IDE Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to scala-ide-de...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Jerzy Müller

unread,
Jun 25, 2014, 6:08:17 AM6/25/14
to scala-...@googlegroups.com
build-all.sh -Pscala-2.10.x -Peclipse-juno -Dscala.version=2.10.4 clean install -DskipTests

Built on latest master:

commit 0aa5a87c28702b43a6728d83f494073dc3a7f15b
Merge: 1ca2143 cb6c2e1
Author: Mirko Stocker
Date:   Wed Jun 25 11:21:29 2014 +0200

    Merge pull request #686 from Luegg/extractionRefactorings

    Integrate new extraction refactorings

--
Jerzy

iulian dragos

unread,
Jun 25, 2014, 9:36:21 AM6/25/14
to scala-ide-dev

On Wed, Jun 25, 2014 at 12:08 PM, Jerzy Müller <sidus....@gmail.com> wrote:
build-all.sh -Pscala-2.10.x -Peclipse-juno -Dscala.version=2.10.4 clean install -DskipTests

Ah, I forgot: since in `master` we have multiple version support (in 2.11 builds), there are two Scala versions as input to the build script now (only one matters in 2.10 builds, though). You need to pass 

./build-all.sh -Pscala-2.10.x -Peclipse-juno -Dscala210.version=2.10.4 clean install -DskipTests

cheers,
iulian

Jerzy Müller

unread,
Jun 25, 2014, 9:47:54 AM6/25/14
to scala-...@googlegroups.com
Thanks, it works now!

--
Jerzy

Jerzy Müller

unread,
Jun 25, 2014, 10:08:14 AM6/25/14
to scala-...@googlegroups.com
Could you please also generate and publish one for 2.10.3?


On Monday, June 16, 2014 5:02:10 PM UTC+2, Luc Bourlier wrote:

Luc Bourlier

unread,
Jun 27, 2014, 4:37:04 AM6/27/14
to scala-...@googlegroups.com
I published sbt/zinc 0.13.2 on Scala 2.10.3 to our repository.

But, what are you doing with all these versions ? ;-)

Luc

Jerzy Müller

unread,
Jun 27, 2014, 6:38:40 AM6/27/14
to scala-...@googlegroups.com
Thanks!

We need to build our wip branch of Scala IDE using stable Scala for our client.

--
Jerzy

Jerzy Müller

unread,
Feb 11, 2015, 5:14:40 AM2/11/15
to scala-...@googlegroups.com
Hi,

could you please release artifacts needed to build on 2.11.5?

Thanks,
Jerzy

Jerzy Müller

unread,
Feb 11, 2015, 5:16:42 AM2/11/15
to scala-...@googlegroups.com
To specify: for sbt 0.13.6 and Scala 2.11.5.

iulian dragos

unread,
Feb 11, 2015, 5:34:06 AM2/11/15
to scala-ide-dev

--
You received this message because you are subscribed to the Google Groups "Scala IDE Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to scala-ide-de...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Jerzy Müller

unread,
Feb 11, 2015, 6:18:57 AM2/11/15
to scala-...@googlegroups.com
Strange, maybe my branch is too old and does not have something configured properly. I'll look into this.

Jerzy Müller

unread,
Feb 11, 2015, 7:58:15 AM2/11/15
to scala-...@googlegroups.com
I ran build command second time and it worked. Maybe something was wrong with network connection last time, sorry for bothering you.

iulian dragos

unread,
Feb 11, 2015, 9:25:33 AM2/11/15
to scala-ide-dev
Glad it worked!



For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages