Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade to run on newer versions of Java #329

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

yanokwa
Copy link
Contributor

@yanokwa yanokwa commented Aug 9, 2019

Fixes #300

  • Upgraded to latest version of JRuby (v9.2.7.0). Confirmed that tests pass with ./sbt test.
  • Built the jar in a Java 1.8 environment and confirmed it ran with java -jar target/scala-2.11/s3_website.jar without a Java error in a Java 1.8, Java 11, and Java 12 environment. No other detailed tests (e.g., uploading to S3) was performed.
    • Build fails on Java 11 and Java 12 with Null Pointer Exception
  • Upgraded JRE versions in bin/s3_website itself to Java 11 because Java 1.8 is mostly deprecated. I Googled for version numbers and did not actually verify those package names are correct on a machine.
  • Updated CI so it doesn't install an arbitrary version of sbt that resulted in test failure. We should use the same version as local.
    • Using build.properties to do this did not work.
  • Updated to sbt 0.13.18 to add support for macOS 10.15.2 per @Ecco's suggestion
    • I have not verified this change.

@yanokwa yanokwa marked this pull request as ready for review August 9, 2019 19:18
@eljojo
Copy link

eljojo commented Aug 17, 2019

thanks for implementing this!

@eljojo
Copy link

eljojo commented Aug 17, 2019

the branch doesn't work for me when uploading the website:

$ bundle exec s3_website push
Java HotSpot(TM) 64-Bit Server VM warning: Ignoring option MaxPermSize; support was removed in 8.0
error: error while loading package, Missing dependency 'object java.lang.Object in compiler mirror', required by /Users/jojo/.sbt/boot/scala-2.10.3/lib/scala-library.jar(scala/package.class)
error: error while loading package, Missing dependency 'object java.lang.Object in compiler mirror', required by /Users/jojo/.sbt/boot/scala-2.10.3/lib/scala-library.jar(scala/runtime/package.class)
scala.reflect.internal.MissingRequirementError: object java.lang.Object in compiler mirror not found.
	at scala.reflect.internal.MissingRequirementError$.signal(MissingRequirementError.scala:16)
	at scala.reflect.internal.MissingRequirementError$.notFound(MissingRequirementError.scala:17)
	at scala.reflect.internal.Mirrors$RootsBase.getModuleOrClass(Mirrors.scala:48)
	at scala.reflect.internal.Mirrors$RootsBase.getModuleOrClass(Mirrors.scala:40)
	at scala.reflect.internal.Mirrors$RootsBase.getModuleOrClass(Mirrors.scala:40)
	at scala.reflect.internal.Mirrors$RootsBase.getModuleOrClass(Mirrors.scala:61)
	at scala.reflect.internal.Mirrors$RootsBase.getClassByName(Mirrors.scala:99)
	at scala.reflect.internal.Mirrors$RootsBase.getRequiredClass(Mirrors.scala:102)
	at scala.reflect.internal.Definitions$DefinitionsClass.ObjectClass$lzycompute(Definitions.scala:264)
	at scala.reflect.internal.Definitions$DefinitionsClass.ObjectClass(Definitions.scala:264)
	at scala.reflect.internal.Definitions$DefinitionsClass.AnyRefClass$lzycompute(Definitions.scala:263)
	at scala.reflect.internal.Definitions$DefinitionsClass.AnyRefClass(Definitions.scala:263)
	at scala.reflect.internal.Definitions$DefinitionsClass.specialPolyClass(Definitions.scala:1120)
	at scala.reflect.internal.Definitions$DefinitionsClass.RepeatedParamClass$lzycompute(Definitions.scala:407)
	at scala.reflect.internal.Definitions$DefinitionsClass.RepeatedParamClass(Definitions.scala:407)
	at scala.reflect.internal.Definitions$DefinitionsClass.syntheticCoreClasses$lzycompute(Definitions.scala:1154)
	at scala.reflect.internal.Definitions$DefinitionsClass.syntheticCoreClasses(Definitions.scala:1152)
	at scala.reflect.internal.Definitions$DefinitionsClass.symbolsNotPresentInBytecode$lzycompute(Definitions.scala:1196)
	at scala.reflect.internal.Definitions$DefinitionsClass.symbolsNotPresentInBytecode(Definitions.scala:1196)
	at scala.reflect.internal.Definitions$DefinitionsClass.init(Definitions.scala:1261)
	at scala.tools.nsc.Global$Run.<init>(Global.scala:1290)
	at sbt.compiler.Eval$$anon$1.<init>(Eval.scala:124)
	at sbt.compiler.Eval.run$lzycompute$1(Eval.scala:124)
	at sbt.compiler.Eval.run$1(Eval.scala:124)
	at sbt.compiler.Eval.unlinkAll$1(Eval.scala:127)
	at sbt.compiler.Eval.evalCommon(Eval.scala:136)
	at sbt.compiler.Eval.eval(Eval.scala:86)
	at sbt.EvaluateConfigurations$.evaluateSetting(EvaluateConfigurations.scala:76)
	at sbt.EvaluateConfigurations$$anonfun$9.apply(EvaluateConfigurations.scala:55)
	at sbt.EvaluateConfigurations$$anonfun$9.apply(EvaluateConfigurations.scala:54)
	at scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:244)
	at scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:244)
	at scala.collection.immutable.List.foreach(List.scala:318)
	at scala.collection.TraversableLike$class.map(TraversableLike.scala:244)
	at scala.collection.AbstractTraversable.map(Traversable.scala:105)
	at sbt.EvaluateConfigurations$.evaluateSbtFile(EvaluateConfigurations.scala:54)
	at sbt.Load$.sbt$Load$$loadSettingsFile$1(Load.scala:502)
	at sbt.Load$$anonfun$sbt$Load$$memoLoadSettingsFile$1$1.apply(Load.scala:497)
	at sbt.Load$$anonfun$sbt$Load$$memoLoadSettingsFile$1$1.apply(Load.scala:496)
	at scala.Option.getOrElse(Option.scala:120)
	at sbt.Load$.sbt$Load$$memoLoadSettingsFile$1(Load.scala:496)
	at sbt.Load$$anonfun$loadSettings$1$2.apply(Load.scala:495)
	at sbt.Load$$anonfun$loadSettings$1$2.apply(Load.scala:495)
	at scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:244)
	at scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:244)
	at scala.collection.mutable.ResizableArray$class.foreach(ResizableArray.scala:59)
	at scala.collection.mutable.ArrayBuffer.foreach(ArrayBuffer.scala:47)
	at scala.collection.TraversableLike$class.map(TraversableLike.scala:244)
	at scala.collection.AbstractTraversable.map(Traversable.scala:105)
	at sbt.Load$.loadSettings$1(Load.scala:495)
	at sbt.Load$.sbt$Load$$expand$1(Load.scala:508)
	at sbt.Load$.loadSettings(Load.scala:512)
	at sbt.Load$.sbt$Load$$loadSbtFiles$1(Load.scala:466)
	at sbt.Load$.defaultLoad$1(Load.scala:472)
	at sbt.Load$.loadTransitive(Load.scala:475)
	at sbt.Load$.loadProjects$1(Load.scala:421)
	at sbt.Load$.loadUnit(Load.scala:422)
	at sbt.Load$$anonfun$15$$anonfun$apply$11.apply(Load.scala:258)
	at sbt.Load$$anonfun$15$$anonfun$apply$11.apply(Load.scala:258)
	at sbt.BuildLoader$$anonfun$componentLoader$1$$anonfun$apply$4$$anonfun$apply$5$$anonfun$apply$6.apply(BuildLoader.scala:93)
	at sbt.BuildLoader$$anonfun$componentLoader$1$$anonfun$apply$4$$anonfun$apply$5$$anonfun$apply$6.apply(BuildLoader.scala:92)
	at sbt.BuildLoader.apply(BuildLoader.scala:143)
	at sbt.Load$.loadAll(Load.scala:314)
	at sbt.Load$.loadURI(Load.scala:266)
	at sbt.Load$.load(Load.scala:262)
	at sbt.Load$.load(Load.scala:253)
	at sbt.Load$.apply(Load.scala:137)
	at sbt.Load$.buildPluginDefinition(Load.scala:597)
	at sbt.Load$.buildPlugins(Load.scala:563)
	at sbt.Load$.plugins(Load.scala:551)
	at sbt.Load$.loadUnit(Load.scala:412)
	at sbt.Load$$anonfun$15$$anonfun$apply$11.apply(Load.scala:258)
	at sbt.Load$$anonfun$15$$anonfun$apply$11.apply(Load.scala:258)
	at sbt.BuildLoader$$anonfun$componentLoader$1$$anonfun$apply$4$$anonfun$apply$5$$anonfun$apply$6.apply(BuildLoader.scala:93)
	at sbt.BuildLoader$$anonfun$componentLoader$1$$anonfun$apply$4$$anonfun$apply$5$$anonfun$apply$6.apply(BuildLoader.scala:92)
	at sbt.BuildLoader.apply(BuildLoader.scala:143)
	at sbt.Load$.loadAll(Load.scala:314)
	at sbt.Load$.loadURI(Load.scala:266)
	at sbt.Load$.load(Load.scala:262)
	at sbt.Load$.load(Load.scala:253)
	at sbt.Load$.apply(Load.scala:137)
	at sbt.Load$.defaultLoad(Load.scala:40)
	at sbt.BuiltinCommands$.doLoadProject(Main.scala:458)
	at sbt.BuiltinCommands$$anonfun$loadProjectImpl$2.apply(Main.scala:452)
	at sbt.BuiltinCommands$$anonfun$loadProjectImpl$2.apply(Main.scala:452)
	at sbt.Command$$anonfun$applyEffect$1$$anonfun$apply$2.apply(Command.scala:60)
	at sbt.Command$$anonfun$applyEffect$1$$anonfun$apply$2.apply(Command.scala:60)
	at sbt.Command$$anonfun$applyEffect$2$$anonfun$apply$3.apply(Command.scala:62)
	at sbt.Command$$anonfun$applyEffect$2$$anonfun$apply$3.apply(Command.scala:62)
	at sbt.Command$.process(Command.scala:95)
	at sbt.MainLoop$$anonfun$1$$anonfun$apply$1.apply(MainLoop.scala:100)
	at sbt.MainLoop$$anonfun$1$$anonfun$apply$1.apply(MainLoop.scala:100)
	at sbt.State$$anon$1.process(State.scala:179)
	at sbt.MainLoop$$anonfun$1.apply(MainLoop.scala:100)
	at sbt.MainLoop$$anonfun$1.apply(MainLoop.scala:100)
	at sbt.ErrorHandling$.wideConvert(ErrorHandling.scala:18)
	at sbt.MainLoop$.next(MainLoop.scala:100)
	at sbt.MainLoop$.run(MainLoop.scala:93)
	at sbt.MainLoop$$anonfun$runWithNewLog$1.apply(MainLoop.scala:71)
	at sbt.MainLoop$$anonfun$runWithNewLog$1.apply(MainLoop.scala:66)
	at sbt.Using.apply(Using.scala:25)
	at sbt.MainLoop$.runWithNewLog(MainLoop.scala:66)
	at sbt.MainLoop$.runAndClearLast(MainLoop.scala:49)
	at sbt.MainLoop$.runLoggedLoop(MainLoop.scala:33)
	at sbt.MainLoop$.runLogged(MainLoop.scala:25)
	at sbt.StandardMain$.runManaged(Main.scala:57)
	at sbt.xMain.run(Main.scala:29)
	at xsbt.boot.Launch$$anonfun$run$1.apply(Launch.scala:109)
	at xsbt.boot.Launch$.withContextLoader(Launch.scala:129)
	at xsbt.boot.Launch$.run(Launch.scala:109)
	at xsbt.boot.Launch$$anonfun$apply$1.apply(Launch.scala:36)
	at xsbt.boot.Launch$.launch(Launch.scala:117)
	at xsbt.boot.Launch$.apply(Launch.scala:19)
	at xsbt.boot.Boot$.runImpl(Boot.scala:44)
	at xsbt.boot.Boot$.main(Boot.scala:20)
	at xsbt.boot.Boot.main(Boot.scala)
[error] scala.reflect.internal.MissingRequirementError: object java.lang.Object in compiler mirror not found.
[error] Use 'last' for the full log.
Project loading failed: (r)etry, (q)uit, (l)ast, or (i)gnore?```

@yanokwa
Copy link
Contributor Author

yanokwa commented Aug 18, 2019

@eljojo What version of Java are you using? Run java -version in that directory and report back what is printed.

@nabilfreeman
Copy link

You are a legend!!!!!! 👏👏👏👏👏👏👏

@yanokwa
Copy link
Contributor Author

yanokwa commented Sep 4, 2019

@nabilfreeman Thanks! What version java -version are you running? Can you confirm that you are able to use this branch to upload to a website?

@flipacholas
Copy link

flipacholas commented Sep 5, 2019

@yanokwa Since this project is no longer maintained, what if you create a new release from your fork? Something like s3_website_2 or s3_website_plus, so future pull requests and gem releases could continue there.

@yanokwa
Copy link
Contributor Author

yanokwa commented Sep 6, 2019

@flipacholas I don't have the skills or time to lead a fork. I've filed a ticket at #330 to we can find someone who can.

@Ecco
Copy link

Ecco commented Jan 15, 2020

FYI, it does not work using latest JDK on macOS 10.15.2.

% java -version
java version "13.0.2" 2020-01-14
Java(TM) SE Runtime Environment (build 13.0.2+8)
Java HotSpot(TM) 64-Bit Server VM (build 13.0.2+8, mixed mode, sharing)
% s3_website push
Java HotSpot(TM) 64-Bit Server VM warning: Ignoring option MaxPermSize; support was removed in 8.0
Getting org.scala-sbt sbt 0.13.2 ...
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.apache.ivy.util.url.IvyAuthenticator (file:/Users/romain/.rbenv/versions/2.7.0/lib/ruby/gems/2.7.0/bundler/gems/s3_website-e27ad21d5a1e/project/sbt-launch.jar) to field java.net.Authenticator.theAuthenticator
WARNING: Please consider reporting this to the maintainers of org.apache.ivy.util.url.IvyAuthenticator
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
downloading http://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/sbt/0.13.2/jars/sbt.jar ...
	[SUCCESSFUL ] org.scala-sbt#sbt;0.13.2!sbt.jar (903ms)
downloading http://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/main/0.13.2/jars/main.jar ...
	[SUCCESSFUL ] org.scala-sbt#main;0.13.2!main.jar (1789ms)
downloading http://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/compiler-interface/0.13.2/jars/compiler-interface-src.jar ...
	[SUCCESSFUL ] org.scala-sbt#compiler-interface;0.13.2!compiler-interface-src.jar (852ms)
downloading http://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/compiler-interface/0.13.2/jars/compiler-interface-bin.jar ...
	[SUCCESSFUL ] org.scala-sbt#compiler-interface;0.13.2!compiler-interface-bin.jar (1148ms)
downloading http://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/precompiled-2_8_2/0.13.2/jars/compiler-interface-bin.jar ...
	[SUCCESSFUL ] org.scala-sbt#precompiled-2_8_2;0.13.2!compiler-interface-bin.jar (1239ms)
downloading http://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/precompiled-2_9_2/0.13.2/jars/compiler-interface-bin.jar ...
	[SUCCESSFUL ] org.scala-sbt#precompiled-2_9_2;0.13.2!compiler-interface-bin.jar (987ms)
downloading http://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/precompiled-2_9_3/0.13.2/jars/compiler-interface-bin.jar ...
	[SUCCESSFUL ] org.scala-sbt#precompiled-2_9_3;0.13.2!compiler-interface-bin.jar (1122ms)
downloading http://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/actions/0.13.2/jars/actions.jar ...
	[SUCCESSFUL ] org.scala-sbt#actions;0.13.2!actions.jar (1004ms)
downloading http://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/main-settings/0.13.2/jars/main-settings.jar ...
	[SUCCESSFUL ] org.scala-sbt#main-settings;0.13.2!main-settings.jar (1079ms)
downloading http://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/interface/0.13.2/jars/interface.jar ...
	[SUCCESSFUL ] org.scala-sbt#interface;0.13.2!interface.jar (983ms)
downloading http://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/io/0.13.2/jars/io.jar ...
	[SUCCESSFUL ] org.scala-sbt#io;0.13.2!io.jar (1037ms)
downloading http://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/ivy/0.13.2/jars/ivy.jar ...
	[SUCCESSFUL ] org.scala-sbt#ivy;0.13.2!ivy.jar (1458ms)
downloading http://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/launcher-interface/0.13.2/jars/launcher-interface.jar ...
	[SUCCESSFUL ] org.scala-sbt#launcher-interface;0.13.2!launcher-interface.jar (642ms)
downloading http://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/logging/0.13.2/jars/logging.jar ...
	[SUCCESSFUL ] org.scala-sbt#logging;0.13.2!logging.jar (1029ms)
downloading http://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/process/0.13.2/jars/process.jar ...
	[SUCCESSFUL ] org.scala-sbt#process;0.13.2!process.jar (952ms)
downloading http://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/run/0.13.2/jars/run.jar ...
	[SUCCESSFUL ] org.scala-sbt#run;0.13.2!run.jar (817ms)
downloading http://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/command/0.13.2/jars/command.jar ...
	[SUCCESSFUL ] org.scala-sbt#command;0.13.2!command.jar (974ms)
downloading http://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/classpath/0.13.2/jars/classpath.jar ...
	[SUCCESSFUL ] org.scala-sbt#classpath;0.13.2!classpath.jar (1014ms)
downloading http://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/completion/0.13.2/jars/completion.jar ...
	[SUCCESSFUL ] org.scala-sbt#completion;0.13.2!completion.jar (1200ms)
downloading http://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/api/0.13.2/jars/api.jar ...
	[SUCCESSFUL ] org.scala-sbt#api;0.13.2!api.jar (1019ms)
downloading http://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/compiler-integration/0.13.2/jars/compiler-integration.jar ...
	[SUCCESSFUL ] org.scala-sbt#compiler-integration;0.13.2!compiler-integration.jar (1006ms)
downloading http://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/compiler-ivy-integration/0.13.2/jars/compiler-ivy-integration.jar ...
	[SUCCESSFUL ] org.scala-sbt#compiler-ivy-integration;0.13.2!compiler-ivy-integration.jar (632ms)
downloading http://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/relation/0.13.2/jars/relation.jar ...
	[SUCCESSFUL ] org.scala-sbt#relation;0.13.2!relation.jar (787ms)
downloading http://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/task-system/0.13.2/jars/task-system.jar ...
	[SUCCESSFUL ] org.scala-sbt#task-system;0.13.2!task-system.jar (904ms)
downloading http://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/tasks/0.13.2/jars/tasks.jar ...
	[SUCCESSFUL ] org.scala-sbt#tasks;0.13.2!tasks.jar (872ms)
downloading http://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/tracking/0.13.2/jars/tracking.jar ...
	[SUCCESSFUL ] org.scala-sbt#tracking;0.13.2!tracking.jar (786ms)
downloading http://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/testing/0.13.2/jars/testing.jar ...
	[SUCCESSFUL ] org.scala-sbt#testing;0.13.2!testing.jar (802ms)
downloading http://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/control/0.13.2/jars/control.jar ...
	[SUCCESSFUL ] org.scala-sbt#control;0.13.2!control.jar (842ms)
downloading http://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/collections/0.13.2/jars/collections.jar ...
	[SUCCESSFUL ] org.scala-sbt#collections;0.13.2!collections.jar (1059ms)
downloading http://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/incremental-compiler/0.13.2/jars/incremental-compiler.jar ...
	[SUCCESSFUL ] org.scala-sbt#incremental-compiler;0.13.2!incremental-compiler.jar (1174ms)
downloading http://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/compile/0.13.2/jars/compile.jar ...
	[SUCCESSFUL ] org.scala-sbt#compile;0.13.2!compile.jar (1115ms)
downloading http://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/persist/0.13.2/jars/persist.jar ...
	[SUCCESSFUL ] org.scala-sbt#persist;0.13.2!persist.jar (1036ms)
downloading http://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/classfile/0.13.2/jars/classfile.jar ...
	[SUCCESSFUL ] org.scala-sbt#classfile;0.13.2!classfile.jar (855ms)
downloading http://repo.typesafe.com/typesafe/ivy-releases/org.scala-tools.sbinary/sbinary_2.10/0.4.2/jars/sbinary_2.10.jar ...
	[SUCCESSFUL ] org.scala-tools.sbinary#sbinary_2.10;0.4.2!sbinary_2.10.jar (655ms)
downloading http://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/cross/0.13.2/jars/cross.jar ...
	[SUCCESSFUL ] org.scala-sbt#cross;0.13.2!cross.jar (847ms)
downloading http://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/cache/0.13.2/jars/cache.jar ...
	[SUCCESSFUL ] org.scala-sbt#cache;0.13.2!cache.jar (912ms)
downloading http://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/test-agent/0.13.2/jars/test-agent.jar ...
	[SUCCESSFUL ] org.scala-sbt#test-agent;0.13.2!test-agent.jar (791ms)
downloading http://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/apply-macro/0.13.2/jars/apply-macro.jar ...
	[SUCCESSFUL ] org.scala-sbt#apply-macro;0.13.2!apply-macro.jar (876ms)

:: problems summary ::
:::: WARNINGS
		module not found: org.scala-lang#scala-library;2.10.3

	==== local: tried

	  /Users/romain/.ivy2/local/org.scala-lang/scala-library/2.10.3/ivys/ivy.xml

	  -- artifact org.scala-lang#scala-library;2.10.3!scala-library.jar:

	  /Users/romain/.ivy2/local/org.scala-lang/scala-library/2.10.3/jars/scala-library.jar

	==== typesafe-ivy-releases: tried

	  http://repo.typesafe.com/typesafe/ivy-releases/org.scala-lang/scala-library/2.10.3/ivys/ivy.xml

	==== Maven Central: tried

	  http://repo1.maven.org/maven2/org/scala-lang/scala-library/2.10.3/scala-library-2.10.3.pom

	  -- artifact org.scala-lang#scala-library;2.10.3!scala-library.jar:

	  http://repo1.maven.org/maven2/org/scala-lang/scala-library/2.10.3/scala-library-2.10.3.jar

		module not found: org.scala-lang#scala-compiler;2.10.3

	==== local: tried

	  /Users/romain/.ivy2/local/org.scala-lang/scala-compiler/2.10.3/ivys/ivy.xml

	  -- artifact org.scala-lang#scala-compiler;2.10.3!scala-compiler.jar:

	  /Users/romain/.ivy2/local/org.scala-lang/scala-compiler/2.10.3/jars/scala-compiler.jar

	==== typesafe-ivy-releases: tried

	  http://repo.typesafe.com/typesafe/ivy-releases/org.scala-lang/scala-compiler/2.10.3/ivys/ivy.xml

	==== Maven Central: tried

	  http://repo1.maven.org/maven2/org/scala-lang/scala-compiler/2.10.3/scala-compiler-2.10.3.pom

	  -- artifact org.scala-lang#scala-compiler;2.10.3!scala-compiler.jar:

	  http://repo1.maven.org/maven2/org/scala-lang/scala-compiler/2.10.3/scala-compiler-2.10.3.jar

		module not found: jline#jline;2.11

	==== local: tried

	  /Users/romain/.ivy2/local/jline/jline/2.11/ivys/ivy.xml

	  -- artifact jline#jline;2.11!jline.jar:

	  /Users/romain/.ivy2/local/jline/jline/2.11/jars/jline.jar

	==== typesafe-ivy-releases: tried

	  http://repo.typesafe.com/typesafe/ivy-releases/jline/jline/2.11/ivys/ivy.xml

	==== Maven Central: tried

	  http://repo1.maven.org/maven2/jline/jline/2.11/jline-2.11.pom

	  -- artifact jline#jline;2.11!jline.jar:

	  http://repo1.maven.org/maven2/jline/jline/2.11/jline-2.11.jar

		module not found: org.apache.ivy#ivy;2.3.0

	==== local: tried

	  /Users/romain/.ivy2/local/org.apache.ivy/ivy/2.3.0/ivys/ivy.xml

	  -- artifact org.apache.ivy#ivy;2.3.0!ivy.jar:

	  /Users/romain/.ivy2/local/org.apache.ivy/ivy/2.3.0/jars/ivy.jar

	==== typesafe-ivy-releases: tried

	  http://repo.typesafe.com/typesafe/ivy-releases/org.apache.ivy/ivy/2.3.0/ivys/ivy.xml

	==== Maven Central: tried

	  http://repo1.maven.org/maven2/org/apache/ivy/ivy/2.3.0/ivy-2.3.0.pom

	  -- artifact org.apache.ivy#ivy;2.3.0!ivy.jar:

	  http://repo1.maven.org/maven2/org/apache/ivy/ivy/2.3.0/ivy-2.3.0.jar

		module not found: com.jcraft#jsch;0.1.46

	==== local: tried

	  /Users/romain/.ivy2/local/com.jcraft/jsch/0.1.46/ivys/ivy.xml

	  -- artifact com.jcraft#jsch;0.1.46!jsch.jar:

	  /Users/romain/.ivy2/local/com.jcraft/jsch/0.1.46/jars/jsch.jar

	==== typesafe-ivy-releases: tried

	  http://repo.typesafe.com/typesafe/ivy-releases/com.jcraft/jsch/0.1.46/ivys/ivy.xml

	==== Maven Central: tried

	  http://repo1.maven.org/maven2/com/jcraft/jsch/0.1.46/jsch-0.1.46.pom

	  -- artifact com.jcraft#jsch;0.1.46!jsch.jar:

	  http://repo1.maven.org/maven2/com/jcraft/jsch/0.1.46/jsch-0.1.46.jar

		module not found: org.scala-sbt#test-interface;1.0

	==== local: tried

	  /Users/romain/.ivy2/local/org.scala-sbt/test-interface/1.0/ivys/ivy.xml

	  -- artifact org.scala-sbt#test-interface;1.0!test-interface.jar:

	  /Users/romain/.ivy2/local/org.scala-sbt/test-interface/1.0/jars/test-interface.jar

	==== typesafe-ivy-releases: tried

	  http://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/test-interface/1.0/ivys/ivy.xml

	==== Maven Central: tried

	  http://repo1.maven.org/maven2/org/scala-sbt/test-interface/1.0/test-interface-1.0.pom

	  -- artifact org.scala-sbt#test-interface;1.0!test-interface.jar:

	  http://repo1.maven.org/maven2/org/scala-sbt/test-interface/1.0/test-interface-1.0.jar

		::::::::::::::::::::::::::::::::::::::::::::::

		::          UNRESOLVED DEPENDENCIES         ::

		::::::::::::::::::::::::::::::::::::::::::::::

		:: org.scala-lang#scala-library;2.10.3: not found

		:: org.scala-lang#scala-compiler;2.10.3: not found

		:: jline#jline;2.11: not found

		:: org.apache.ivy#ivy;2.3.0: not found

		:: com.jcraft#jsch;0.1.46: not found

		:: org.scala-sbt#test-interface;1.0: not found

		::::::::::::::::::::::::::::::::::::::::::::::


:::: ERRORS
	SERVER ERROR: HTTPS Required url=http://repo1.maven.org/maven2/org/scala-lang/scala-library/2.10.3/scala-library-2.10.3.pom

	SERVER ERROR: HTTPS Required url=http://repo1.maven.org/maven2/org/scala-lang/scala-library/2.10.3/scala-library-2.10.3.jar

	SERVER ERROR: HTTPS Required url=http://repo1.maven.org/maven2/org/scala-lang/scala-compiler/2.10.3/scala-compiler-2.10.3.pom

	SERVER ERROR: HTTPS Required url=http://repo1.maven.org/maven2/org/scala-lang/scala-compiler/2.10.3/scala-compiler-2.10.3.jar

	SERVER ERROR: HTTPS Required url=http://repo1.maven.org/maven2/jline/jline/2.11/jline-2.11.pom

	SERVER ERROR: HTTPS Required url=http://repo1.maven.org/maven2/jline/jline/2.11/jline-2.11.jar

	SERVER ERROR: HTTPS Required url=http://repo1.maven.org/maven2/org/apache/ivy/ivy/2.3.0/ivy-2.3.0.pom

	SERVER ERROR: HTTPS Required url=http://repo1.maven.org/maven2/org/apache/ivy/ivy/2.3.0/ivy-2.3.0.jar

	SERVER ERROR: HTTPS Required url=http://repo1.maven.org/maven2/com/jcraft/jsch/0.1.46/jsch-0.1.46.pom

	SERVER ERROR: HTTPS Required url=http://repo1.maven.org/maven2/com/jcraft/jsch/0.1.46/jsch-0.1.46.jar

	SERVER ERROR: HTTPS Required url=http://repo1.maven.org/maven2/org/scala-sbt/test-interface/1.0/test-interface-1.0.pom

	SERVER ERROR: HTTPS Required url=http://repo1.maven.org/maven2/org/scala-sbt/test-interface/1.0/test-interface-1.0.jar


:: USE VERBOSE OR DEBUG MESSAGE LEVEL FOR MORE DETAILS
unresolved dependency: org.scala-lang#scala-library;2.10.3: not found
unresolved dependency: org.scala-lang#scala-compiler;2.10.3: not found
unresolved dependency: jline#jline;2.11: not found
unresolved dependency: org.apache.ivy#ivy;2.3.0: not found
unresolved dependency: com.jcraft#jsch;0.1.46: not found
unresolved dependency: org.scala-sbt#test-interface;1.0: not found
Error during sbt execution: Error retrieving required libraries
  (see /Users/romain/.sbt/boot/update.log for complete log)
Error: Could not retrieve sbt 0.13.2
Error: Could not find or load main class s3.website.Push
Caused by: java.lang.ClassNotFoundException: s3.website.Push

@Ecco
Copy link

Ecco commented Jan 15, 2020

Here's the explanation for the previous error:

  • s3_website uses sbt to install dependencies
  • it comes with an older sbt-launcher which uses plain HTTP urls to download dependencies from maven
  • Maven recently decided to refuse serving packages over plain HTTP

A simple solution is to upgrade sbt-launcher.jar in this repository with the latest from the "0.13" series. Namely, 0.13.18.

jackloom added a commit to AheadIO/s3_website that referenced this pull request Apr 23, 2022
 Upgrade to run on newer versions of Java laurilehmijoki#329
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

java.lang.RuntimeException: unsupported Java version: 9
5 participants