Stream: dev

Topic: โœ” setting up dev env for 5.13


view this post on Zulip Bethany Seeger (Aug 20 2024 at 15:30):

Hello, I'm trying to build version 5.13 locally. I'm running into this issue after running: mvn -Pct clean package docker:run

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.1:compile (default-compile) on project dataverse: Compilation failure: Compilation failure:
[ERROR] /mnt/c/Users/bas233/projects/dataverse/src/main/java/edu/harvard/iq/dataverse/ingest/IngestUtil.java:[42,25] cannot access org.dataverse.unf.UNFUtil
[ERROR] bad class file: /home/bethany/.m2/repository/org/dataverse/unf/6.0/unf-6.0.jar(/org/dataverse/unf/UNFUtil.class)
[ERROR] class file has wrong version 61.0, should be 55.0
[ERROR] Please remove or make sure it appears in the correct subdirectory of the classpath.
[ERROR] /mnt/c/Users/bas233/projects/dataverse/src/main/java/edu/harvard/iq/dataverse/ingest/IngestUtil.java:[43,25] cannot access org.dataverse.unf.UnfException
[ERROR] bad class file: /home/bethany/.m2/repository/org/dataverse/unf/6.0/unf-6.0.jar(/org/dataverse/unf/UnfException.class)
[ERROR] class file has wrong version 61.0, should be 55.0
[ERROR] Please remove or make sure it appears in the correct subdirectory of the classpath.

I have removed the files from the maven repo and checked that I'm using Java 11. Were those libraries built with Java 17? Any suggestions on things I might be missing? Thanks!

view this post on Zulip Philip Durbin ๐Ÿš€ (Aug 20 2024 at 15:33):

@Bethany Seeger hi! I believe the workaround is here: https://groups.google.com/g/dataverse-community/c/YQgMEpSX360/m/iAOyZF38AQAJ

view this post on Zulip Philip Durbin ๐Ÿš€ (Aug 20 2024 at 15:35):

The line should be here: https://github.com/IQSS/dataverse/blob/v5.13/pom.xml#L281

view this post on Zulip Bethany Seeger (Aug 20 2024 at 15:35):

Thank you! I had been searching through things and missed that. I'll give it a shot.

view this post on Zulip Philip Durbin ๐Ÿš€ (Aug 20 2024 at 15:36):

Awesome.

view this post on Zulip Philip Durbin ๐Ÿš€ (Aug 20 2024 at 15:36):

Here's the "before":

    <dependency>
        <groupId>org.dataverse</groupId>
        <artifactId>unf</artifactId>
        <version>6.0</version>
    </dependency>

view this post on Zulip Philip Durbin ๐Ÿš€ (Aug 20 2024 at 15:36):

And like that thread said, you should try version 6.0.1.

view this post on Zulip Bethany Seeger (Aug 20 2024 at 18:57):

I've gotten farther, but am stuck on this error, which happens during the same mvn step:

[ERROR] DOCKER> Error occurred during container startup, shutting down...
[ERROR] DOCKER> I/O Error [Unable to pull 'iq/dataverse:5.13' : {"message":"pull access denied for iq/dataverse, repository does not exist or may require 'docker login': denied: requested access to the resource is denied"} (Not Found: 404)]

I thought maybe it was trying to pull something from docker hub, but can't find that image.

Not sure what's going on as I can't find where it's trying to do that pull in the code. Thanks for any help. :)

view this post on Zulip Bethany Seeger (Aug 20 2024 at 18:58):

(deleted)

view this post on Zulip Bethany Seeger (Aug 20 2024 at 19:28):

Never mind, I just realized that windows is not a supported dev environment. I got pretty far, but I suspect my issues might have something to do with that. I'm going to drop this for now, so please ignore my question.

view this post on Zulip Notification Bot (Aug 20 2024 at 19:28):

Bethany Seeger has marked this topic as resolved.


Last updated: Nov 01 2025 at 14:11 UTC