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

Missing dev.morphia.morphia:util:pom:2.0.0-BETA1 #1424

Closed
diogocarleto opened this issue Mar 13, 2020 · 4 comments
Closed

Missing dev.morphia.morphia:util:pom:2.0.0-BETA1 #1424

diogocarleto opened this issue Mar 13, 2020 · 4 comments
Labels
Milestone

Comments

@diogocarleto
Copy link

Trying to build a project using:
<dependency> <groupId>dev.morphia.morphia</groupId> <artifactId>morphia-core</artifactId> <version>2.0.0-BETA1</version> </dependency>

I've got the error
Failure to find dev.morphia.morphia:util:pom:2.0.0-BETA1 in https://oss.sonatype.org/content/repositories/snapshots/ was cached in the local repository,

I've inspected the pom.xml from morphia-core and there is the dependency declared:
<dependency> <groupId>dev.morphia.morphia</groupId> <artifactId>util</artifactId> <version>${project.version}</version> <scope>compile</scope> </dependency>

The dev.morphia.morphia:util doesn't exists on maven repo.

@evanchooly
Copy link
Member

Curious. It would seem all my tests have run on machines where I also build morphia. I have that fixed now on master but in the meantime, you can simply excluded that dependency from the morphia-core dependency and everything should work fine. If you're not sure how to do that let me know and I'll get you sorted.

Sorry for the glitch and thanks for giving the beta a try.

@evanchooly evanchooly added this to the 2.0.0 milestone Mar 13, 2020
@evanchooly evanchooly added the bug label Mar 13, 2020
@Vinarnt
Copy link

Vinarnt commented Mar 14, 2020

In gradle I fixed it like this:
implementation 'dev.morphia.morphia:morphia-core:2.0.0-BETA1' implementation('dev.morphia.morphia:util:1.4.1') { force = true }
And also needed to add bytebuddy manually:
implementation group: 'net.bytebuddy', name: 'byte-buddy', version: '1.10.8'

@evanchooly
Copy link
Member

@Vinarnt you should just exclude util but yes bytebuddy is required. I should just push a -BETA2 to clean that up.

@evanchooly evanchooly mentioned this issue Mar 18, 2020
@Vinarnt
Copy link

Vinarnt commented Mar 18, 2020

Yes you are right.

implementation('dev.morphia.morphia:morphia-core:2.0.0-BETA1') {
    exclude group: 'dev.morphia.morphia', module: 'util'
}
implementation group: 'net.bytebuddy', name: 'byte-buddy', version: '1.10.8'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants