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

Getting an error when trying to run the simple project #42

Open
congwenma opened this issue Jun 26, 2022 · 4 comments
Open

Getting an error when trying to run the simple project #42

congwenma opened this issue Jun 26, 2022 · 4 comments

Comments

@congwenma
Copy link

sbt
[info] welcome to sbt 1.6.2 (Amazon.com Inc. Java 18.0.1)
[info] loading global plugins from /Users/myuser/.sbt/1.0/plugins
java.lang.Exception: The system property 'plugin.version' is not defined.
at $09e901f3bb9bfda1e449$.$sbtdef(/Users/myuser/dev/sandbox/sbt-openapi-generator/src/sbt-test/sbt-openapi-generator/simple/project/plugin.sbt:7)
at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
at java.base/java.lang.reflect.Method.invoke(Method.java:577)
at sbt.compiler.Eval$.getValue(Eval.scala:601)
at sbt.compiler.Eval.$anonfun$eval$1(Eval.scala:133)
at sbt.internal.EvaluateConfigurations$.$anonfun$evaluateDslEntry$1(EvaluateConfigurations.scala:249)
at sbt.internal.EvaluateConfigurations$.$anonfun$evaluateSbtFile$6(EvaluateConfigurations.scala:172)
at scala.collection.immutable.List.map(List.scala:297)
at sbt.internal.EvaluateConfigurations$.$anonfun$evaluateSbtFile$4(EvaluateConfigurations.scala:172)
at sbt.internal.Load$.loadSettingsFile$1(Load.scala:1121)
at sbt.internal.Load$.$anonfun$discoverProjects$2(Load.scala:1130)
at scala.collection.MapLike.getOrElse(MapLike.scala:131)
at scala.collection.MapLike.getOrElse$(MapLike.scala:129)
at scala.collection.AbstractMap.getOrElse(Map.scala:65)

@wing328
Copy link
Member

wing328 commented Sep 22, 2022

Sorry no idea. You may want to try a different java version (e.g. JDK 11)

@Moromir
Copy link

Moromir commented May 13, 2024

Hello, any news on this ? (I got the same issue with JDK 11.)

@wing328
Copy link
Member

wing328 commented May 13, 2024

would https://stackoverflow.com/questions/53713255/test-sbt-plugin help?

@Moromir
Copy link

Moromir commented May 13, 2024

Thx for your fast reply. The StackOverflow post helped me to figure out a solution.
(I'm on Linux as well.)

What I did was simply commenting the exception and hardcoding the version:
// throw new Exception("The system property 'plugin.version' is not defined.") addSbtPlugin("org.openapitools" % "sbt-openapi-generator" % "7.5.0")

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

No branches or pull requests

3 participants