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

Build error in "hybridsim" and "protobuf" #546

Open
luchengqi7 opened this issue Apr 10, 2021 · 7 comments
Open

Build error in "hybridsim" and "protobuf" #546

luchengqi7 opened this issue Apr 10, 2021 · 7 comments

Comments

@luchengqi7
Copy link

Build will fail at the package "hybridsim" and "protobuf". Error message: Missing artifact.

Also in the IntelliJ, the HybridSimProto can not be resolved.

This problem is currently only observed on the mac system (with m1 chip).

Cleaning .m2 folder does not work. Re-clone the project from Github also doens't work.

@michalmac
Copy link
Member

This is related to the issue described in: matsim-org/matsim-libs#1441. We are in the middle of migration from one mvn repo to another.

As a temp solution, you can add (locally, without pushing to master) the following repo to the top level pom.xml:

<repository>
            <!-- For MATSim snapshots: -->
            <id>ojo-snapshots</id>
            <url>https://oss.jfrog.org/libs-snapshot</url>
</repository>

to undo the following change: matsim-org/matsim-libs@62d35c2#diff-9c5fb3d1b7e3b0f54bc5c4182965c4fe1f9023d449017cece3005d3f90e8e4d8

@luchengqi7
Copy link
Author

image
Thanks for the reply. Unfortunately, I have added those lines in the pom.xml on the top level. It seems that the build error is still there...

@luchengqi7
Copy link
Author

image
And in the IntelliJ, the HybridSimProto cannot be resolved also

@michalmac
Copy link
Member

Ah, then this is something else than I initially thought of. Maybe try this grpc/grpc-java#7690 or similar and report back how you have solved it. Then we can try to adjust the poms.

@luchengqi7
Copy link
Author

Okay, thanks! So it seems that it is a problem with the Apple m1 chip...

@luchengqi7
Copy link
Author

For now, I exclude that two package in the pom file, and manually add the xxx-SNAPSHOT-release.zip in the target folder of that two project. And I think it will work for now, as I am not using the hybridsim or protobuf,

@kt86
Copy link
Contributor

kt86 commented Apr 12, 2021

Hi @luchengqi7,

have you tried this here - that is from time to time an issue with this both contribs, if they are complaining about the missing e.g. HybridSimProto :

grafik

(https://github.com/matsim-org/matsim-libs/tree/master/contribs/hybridsim --> Readme)

Just as an additional idea besides the mvn stuff.

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