Closed johnsmartco closed 1 year ago
@weideng1 , @jeromatron , is there an engineer who can answer this DSBulk Migrator prereqs question? Thanks guys.
➤ John Smart commented:
I’m using mvn 3.9.2 and java 17.
john.smart@jsmart-rmbp16 dsbulk-migrator % mvn --version
Apache Maven 3.9.2 (c9616018c7a021c1c39be70fb2843d6f5f9b8a1c) Maven home: /usr/local/Cellar/maven/3.9.2/libexec Java version: 17.0.6, vendor: Azul Systems, Inc., runtime: /Users/john.smart/.sdkman/candidates/java/17.0.6-zulu/zulu-17.jdk/Contents/Home Default locale: en_US, platform encoding: UTF-8 OS name: "mac os x", version: "13.4", arch: "x86_64", family: "mac"
When I try this command, I get errors:
mvn clean package
[INFO] Scanning for projects...
[INFO]
[INFO] --------------------< com.datastax:dsbulk-migrator >--------------------
[INFO] Building dsbulk-migrator 1.0.0-SNAPSHOT
[INFO] from pom.xml
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] --- clean:3.2.0:clean (default-clean) @ dsbulk-migrator ---
[INFO]
[INFO] --- license:3.0:format (check-license) @ dsbulk-migrator ---
[INFO] Updating license headers...
[INFO]
[INFO] --- fmt:2.13:format (default) @ dsbulk-migrator ---
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1.555 s
[INFO] Finished at: 2023-06-26T16:19:11-06:00
[INFO] ------------------------------------------------------------------------
[WARNING]
[WARNING] Plugin validation issues were detected in 2 plugin(s)
[WARNING]
[WARNING] * com.coveo:fmt-maven-plugin:2.13
[WARNING] * com.mycila:license-maven-plugin:3.0
[WARNING]
[WARNING] For more or less details, use 'maven.plugin.validation' property with one of the values (case insensitive): [BRIEF, DEFAULT, VERBOSE]
[WARNING]
[ERROR] Failed to execute goal com.coveo:fmt-maven-plugin:2.13:format (default) on project dsbulk-migrator: Execution default of goal com.coveo:fmt-maven-plugin:2.13:format failed: An API incompatibility was encountered while executing com.coveo:fmt-maven-plugin:2.13:format: java.lang.IllegalAccessError: class com.google.googlejavaformat.java.JavaInput (in unnamed module @0x1fc8ec9d) cannot access class com.sun.tools.javac.parser.Tokens$TokenKind (in module jdk.compiler) because module jdk.compiler does not export com.sun.tools.javac.parser to unnamed module @0x1fc8ec9d
[ERROR] -----------------------------------------------------
[ERROR] realm = plugin>com.coveo:fmt-maven-plugin:2.13
[ERROR] strategy = org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy
[ERROR] urls[0] = file:/Users/john.smart/.m2/repository/com/coveo/fmt-maven-plugin/2.13/fmt-maven-plugin-2.13.jar
[ERROR] urls[1] = file:/Users/john.smart/.m2/repository/org/apache/commons/commons-lang3/3.8.1/commons-lang3-3.8.1.jar
[ERROR] urls[2] = file:/Users/john.smart/.m2/repository/org/eclipse/sisu/org.eclipse.sisu.inject/0.3.5/org.eclipse.sisu.inject-0.3.5.jar
[ERROR] urls[3] = file:/Users/john.smart/.m2/repository/org/codehaus/plexus/plexus-component-annotations/1.5.5/plexus-component-annotations-1.5.5.jar
[ERROR] urls[4] = file:/Users/john.smart/.m2/repository/org/codehaus/plexus/plexus-utils/3.3.0/plexus-utils-3.3.0.jar
[ERROR] urls[5] = file:/Users/john.smart/.m2/repository/com/google/googlejavaformat/google-java-format/1.13.0/google-java-format-1.13.0.jar
[ERROR] urls[6] = file:/Users/john.smart/.m2/repository/com/google/guava/guava/30.1.1-jre/guava-30.1.1-jre.jar
[ERROR] urls[7] = file:/Users/john.smart/.m2/repository/com/google/guava/failureaccess/1.0.1/failureaccess-1.0.1.jar
[ERROR] urls[8] = file:/Users/john.smart/.m2/repository/com/google/guava/listenablefuture/9999.0-empty-to-avoid-conflict-with-guava/listenablefuture-9999.0-empty-to-avoid-conflict-with-guava.jar
[ERROR] urls[9] = file:/Users/john.smart/.m2/repository/com/google/code/findbugs/jsr305/3.0.2/jsr305-3.0.2.jar
[ERROR] urls[10] = file:/Users/john.smart/.m2/repository/org/checkerframework/checker-qual/3.8.0/checker-qual-3.8.0.jar
[ERROR] urls[11] = file:/Users/john.smart/.m2/repository/com/google/errorprone/error_prone_annotations/2.5.1/error_prone_annotations-2.5.1.jar
[ERROR] urls[12] = file:/Users/john.smart/.m2/repository/com/google/j2objc/j2objc-annotations/1.3/j2objc-annotations-1.3.jar
[ERROR] Number of foreign imports: 1
[ERROR] import: Entry[import from realm ClassRealm[maven.api, parent: null]]
[ERROR]
[ERROR] -----------------------------------------------------
[ERROR]
[ERROR] -> [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/PluginContainerException ( http://cwiki.apache.org/confluence/display/MAVEN/PluginContainerException )
Unsure how to fix…
Received info from @jeromatron - thanks!
➤ John Smart commented:
All set - rec’d info from Jeremy Hanna .
Temp doc build is here:
http://coppi-ssh.aws.dsinternal.org/en/cdm4x-update/docs/migrate/dsbulk-migrator.html ( http://coppi-ssh.aws.dsinternal.org/en/cdm4x-update/docs/migrate/dsbulk-migrator.html )
Hey guys - are there minimum versions of maven and specific java versions that are needed as prereqs? Other sw? If so, please add a Prerequisites section. Thanks. I'll use this info in a revised version of the Data Migration topic in ZDM docs as well.
┆Issue is synchronized with this Jira Task by Unito ┆Components: Schema Migrator ┆Priority: Major ┆Resolution: Done