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

scala-maven-plugin does not generate and attach scaladocs with Scala 3 #2

Closed
hohonuuli opened this issue Feb 9, 2023 · 1 comment
Closed

Comments

@hohonuuli
Copy link
Member

To recreate:

git clone https://github.com/mbari-org/commons.git
cd commons
mvn clean install

This produces:

[ERROR] Failed to execute goal net.alchim31.maven:scala-maven-plugin:4.8.0:doc-jar (attach-javadocs) on project scommons: MavenReportException: Error while creating archive: wrap: Process exited with an error: 1 (Exit value: 1) -> [Help 1]

Debugging using mvn clean scala:doc -rf :scommons -X shows the command that's failing:

/Library/Java/JavaVirtualMachines/temurin-17.jdk/Contents/Home/bin/java -Xbootclasspath/a:/Users/brian/.m2/repository/com/google/protobuf/protobuf-java/3.7.0/protobuf-java-3.7.0.jar:/Users/brian/.m2/repository/net/java/dev/jna/jna/5.3.1/jna-5.3.1.jar:/Users/brian/.m2/repository/org/jline/jline-reader/3.19.0/jline-reader-3.19.0.jar:/Users/brian/.m2/repository/org/jline/jline-terminal-jna/3.19.0/jline-terminal-jna-3.19.0.jar:/Users/brian/.m2/repository/org/jline/jline-terminal/3.19.0/jline-terminal-3.19.0.jar:/Users/brian/.m2/repository/org/scala-lang/modules/scala-asm/9.3.0-scala-1/scala-asm-9.3.0-scala-1.jar:/Users/brian/.m2/repository/org/scala-lang/scala-library/2.13.10/scala-library-2.13.10.jar:/Users/brian/.m2/repository/org/scala-lang/scala3-compiler_3/3.2.2/scala3-compiler_3-3.2.2.jar:/Users/brian/.m2/repository/org/scala-lang/scala3-interfaces/3.2.2/scala3-interfaces-3.2.2.jar:/Users/brian/.m2/repository/org/scala-lang/scala3-library_3/3.2.2/scala3-library_3-3.2.2.jar:/Users/brian/.m2/repository/org/scala-lang/tasty-core_3/3.2.2/tasty-core_3-3.2.2.jar:/Users/brian/.m2/repository/org/scala-sbt/compiler-interface/1.3.5/compiler-interface-1.3.5.jar:/Users/brian/.m2/repository/org/scala-sbt/util-interface/1.3.0/util-interface-1.3.0.jar -classpath /Users/brian/.m2/repository/net/alchim31/maven/scala-maven-plugin/4.8.0/scala-maven-plugin-4.8.0.jar scala_maven_executions.MainWithArgsInFile dotty.tools.dotc.Main /private/var/folders/d7/4ps3zfnx08n8gxq0wc9ydddw0000gq/T/scala-maven-2306955749493420450.args

Inpsecting /private/var/folders/d7/4ps3zfnx08n8gxq0wc9ydddw0000gq/T/scala-maven-2306955749493420450.args shows the contents are:

-classpath
/Users/brian/.m2/repository/com/github/rwl/jtransforms/2.4.0/jtransforms-2.4.0.jar:/Users/brian/.m2/repository/com/sun/mail/javax.mail/1.5.6/javax.mail-1.5.6.jar:/Users/brian/.m2/repository/javax/activation/activation/1.1/activation-1.1.jar:/Users/brian/.m2/repository/org/apache/commons/commons-email/1.5/commons-email-1.5.jar:/Users/brian/.m2/repository/org/apache/commons/commons-math3/3.6.1/commons-math3-3.6.1.jar:/Users/brian/.m2/repository/org/mbari/commons/jcommons/0.0.4/jcommons-0.0.4.jar:/Users/brian/.m2/repository/org/scala-lang/scala-library/2.13.10/scala-library-2.13.10.jar:/Users/brian/.m2/repository/org/scala-lang/scala3-library_3/3.2.2/scala3-library_3-3.2.2.jar:/Users/brian/.m2/repository/org/typelevel/algebra_3/2.8.0/algebra_3-2.8.0.jar:/Users/brian/.m2/repository/org/typelevel/cats-kernel_3/2.8.0/cats-kernel_3-2.8.0.jar:/Users/brian/.m2/repository/org/typelevel/spire-macros_3/0.18.0/spire-macros_3-0.18.0.jar:/Users/brian/.m2/repository/org/typelevel/spire-platform_3/0.18.0/spire-platform_3-0.18.0.jar:/Users/brian/.m2/repository/org/typelevel/spire-util_3/0.18.0/spire-util_3-0.18.0.jar:/Users/brian/.m2/repository/org/typelevel/spire_3/0.18.0/spire_3-0.18.0.jar
-doc-format:html
-doc-title
"scommons 0.0.4_3 API"
-d
/Users/brian/workspace/misc/commons/scommons/target/site/scaladocs
/Users/brian/workspace/misc/commons/scommons/src/main/scala/org/mbari/scommons/canadiangrid/Camera.scala
/Users/brian/workspace/misc/commons/scommons/src/main/scala/org/mbari/scommons/canadiangrid/Pixel.scala
/Users/brian/workspace/misc/commons/scommons/src/main/scala/org/mbari/scommons/etc/jdk/Logging.scala
/Users/brian/workspace/misc/commons/scommons/src/main/scala/org/mbari/scommons/etc/spire/ComplexLib.scala
/Users/brian/workspace/misc/commons/scommons/src/main/scala/org/mbari/scommons/geometry/Envelope.scala
/Users/brian/workspace/misc/commons/scommons/src/main/scala/org/mbari/scommons/geometry/Point2D.scala
/Users/brian/workspace/misc/commons/scommons/src/main/scala/org/mbari/scommons/geometry/Point3D.scala
/Users/brian/workspace/misc/commons/scommons/src/main/scala/org/mbari/scommons/geometry/Point4D.scala
/Users/brian/workspace/misc/commons/scommons/src/main/scala/org/mbari/scommons/geometry/Polygon2D.scala
/Users/brian/workspace/misc/commons/scommons/src/main/scala/org/mbari/scommons/geometry/Triangle3D.scala
/Users/brian/workspace/misc/commons/scommons/src/main/scala/org/mbari/scommons/gis/ASCGridReader.scala
/Users/brian/workspace/misc/commons/scommons/src/main/scala/org/mbari/scommons/gis/ASCGridWriter.scala
/Users/brian/workspace/misc/commons/scommons/src/main/scala/org/mbari/scommons/gis/ArrayGrid.scala
/Users/brian/workspace/misc/commons/scommons/src/main/scala/org/mbari/scommons/gis/DoubleArrayGrid.scala
/Users/brian/workspace/misc/commons/scommons/src/main/scala/org/mbari/scommons/gis/FloatArrayGrid.scala
/Users/brian/workspace/misc/commons/scommons/src/main/scala/org/mbari/scommons/gis/GIS.scala
/Users/brian/workspace/misc/commons/scommons/src/main/scala/org/mbari/scommons/gis/Grid.scala
/Users/brian/workspace/misc/commons/scommons/src/main/scala/org/mbari/scommons/gis/GridSearcher.scala
/Users/brian/workspace/misc/commons/scommons/src/main/scala/org/mbari/scommons/gis/MomentInterval.scala
/Users/brian/workspace/misc/commons/scommons/src/main/scala/org/mbari/scommons/gis/MutableGrid.scala
/Users/brian/workspace/misc/commons/scommons/src/main/scala/org/mbari/scommons/gis/NumericGrid.scala
/Users/brian/workspace/misc/commons/scommons/src/main/scala/org/mbari/scommons/gis/RugosityCalculator.scala
/Users/brian/workspace/misc/commons/scommons/src/main/scala/org/mbari/scommons/gis/SpaceTimeZone.scala
/Users/brian/workspace/misc/commons/scommons/src/main/scala/org/mbari/scommons/math/ArrayOps.scala
/Users/brian/workspace/misc/commons/scommons/src/main/scala/org/mbari/scommons/math/FastCollator.scala
/Users/brian/workspace/misc/commons/scommons/src/main/scala/org/mbari/scommons/math/KDE.scala
/Users/brian/workspace/misc/commons/scommons/src/main/scala/org/mbari/scommons/math/Mathematics.scala
/Users/brian/workspace/misc/commons/scommons/src/main/scala/org/mbari/scommons/math/Matlib.scala
/Users/brian/workspace/misc/commons/scommons/src/main/scala/org/mbari/scommons/math/Probabilities.scala
/Users/brian/workspace/misc/commons/scommons/src/main/scala/org/mbari/scommons/math/ScalarArrayOps.scala
/Users/brian/workspace/misc/commons/scommons/src/main/scala/org/mbari/scommons/math/Statistics.scala
/Users/brian/workspace/misc/commons/scommons/src/main/scala/org/mbari/scommons/math/Trigonometry.scala
/Users/brian/workspace/misc/commons/scommons/src/main/scala/org/mbari/scommons/ocean/Atmosphere.scala
/Users/brian/workspace/misc/commons/scommons/src/main/scala/org/mbari/scommons/ocean/Chlorophyll.scala
/Users/brian/workspace/misc/commons/scommons/src/main/scala/org/mbari/scommons/ocean/Light.scala
/Users/brian/workspace/misc/commons/scommons/src/main/scala/org/mbari/scommons/ocean/Ocean.scala
/Users/brian/workspace/misc/commons/scommons/src/main/scala/org/mbari/scommons/ocean/Seawater.scala
/Users/brian/workspace/misc/commons/scommons/src/main/scala/org/mbari/scommons/ocean/Waves.scala
/Users/brian/workspace/misc/commons/scommons/src/main/scala/org/mbari/scommons/util/ISO8601.scala
/Users/brian/workspace/misc/commons/scommons/src/main/scala/org/mbari/scommons/util/Reflect.scala
/Users/brian/workspace/misc/commons/scommons/src/main/scala/org/mbari/scommons/util/SeqUtil.scala
/Users/brian/workspace/misc/commons/scommons/src/main/scala/org/mbari/scommons/util/Zip.scala
/Users/brian/workspace/misc/commons/scommons/src/main/scala/org/mbari/scommons/util/mail.scala

If I remove the line: "scommons 0.0.4_3 API" in that file. Then the failing command will work (but I'm not sure about the rest of the scaladoc process yet)

Blocking for #1. Existing scala plugin issue has been reported at davidB/scala-maven-plugin#604

@hohonuuli
Copy link
Member Author

Ripped out maven build since scala-maven-plugin author has stated he doesn't use Scala 3 or scaladoc. Replaced with a gradle build.

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

1 participant