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

mvn (used by checkAvailability) might need to be pinned to Java 7+ #200

Closed
retronym opened this issue Nov 10, 2016 · 1 comment
Closed

Comments

@retronym
Copy link
Member

While looking at the trace of the 2.11 build, I noticed:

++ checkAvailability org.scala-lang scala-library 2.11.9-5362776-SNAPSHOT https://scala-ci.typesafe.com/artifactory/scala-pr-validation-snapshots/
++ pushd /tmp/pr-scala.UROx/tmp
/tmp/pr-scala.UROx/tmp ~/workspace/scala-2.11.x-validate-publish-core
++ rm -rf '*'
++ cat
++ '[' -n https://scala-ci.typesafe.com/artifactory/scala-pr-validation-snapshots/ ']'
++ cat
++ cat
++ set +e
++ mvn compile
++ RES=1
++ grep -i downloading /tmp/pr-scala.UROx/tmp/mvn.log
++ grep -i exception /tmp/pr-scala.UROx/tmp/mvn.log
Exception in thread "main" java.lang.UnsupportedClassVersionError: org/apache/maven/cli/MavenCli : Unsupported major.minor version 51.0
++ grep -i error /tmp/pr-scala.UROx/tmp/mvn.log
Exception in thread "main" java.lang.UnsupportedClassVersionError: org/apache/maven/cli/MavenCli : Unsupported major.minor version 51.0
++ set -e
++ '[' 1 == 0 ']'
++ debug 'org.scala-lang:scala-library:jar:2.11.9-5362776-SNAPSHOT not found !'
++ echo '----- org.scala-lang:scala-library:jar:2.11.9-5362776-SNAPSHOT not found !'

Seems like we're using a version of Maven that requires Java 7. AFAIK, this means we don't get to shortcut publishCore on subsequent rebuilds, which that big a deal.

See http://stackoverflow.com/a/37862431/160378 which suggests use do ~/.mavenrc to set JAVA_HOME=... just for Maven.

@SethTisue
Copy link
Member

superseded by scala/scala-dev#507

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

2 participants