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

Trouble using com.mysema.scalagen:scalagen_2.10.1 module via Gradle #87

Open
joelittlejohn opened this issue Sep 11, 2017 · 1 comment

Comments

@joelittlejohn
Copy link

joelittlejohn commented Sep 11, 2017

I'm getting the following error trying to use the scalagen_2.10.1 module via gradle. When I add this dependency I see this error:

org.gradle.api.internal.artifacts.ivyservice.ivyresolve.parser.MetaDataParseException:
inconsistent module metadata found. 
Descriptor: com.mysema.scalagen:scalagen_2.9.3:0.3.2 
Errors: bad module name: expected='scalagen_2.10.1' found='scalagen_2.9.3'

I think the problem here is the way the scalagen module users a property, defined by its own profiles to define the artifactid. So the artifact is resolved, but the scala-2.9.x profile defined in that same pom.xml and set as active by default then changes the id of the artifact itself. So you load scalagen_2.10.1 and it's contents changes it's own artifactid to scalagen_2.9.3.

I've tried various techniques, including:

  • seting scala.version explicitly in my own pom.xml;
  • disabling the scala-2.9.x profile
  • setting the scala-2.10.x profile active by default in my own pom.xml

but no matter what I try I get the same error. I don't believe it's possible to use this module without someone having to set -Pscala-2.10.x on all builds.

So I'm planning to fork this library and modify the artifactid to remove this property. I'll package a modified version of this library as a module of my own project, and .

@joelittlejohn
Copy link
Author

I thought I had this solved, but the problem persists.

joelittlejohn added a commit to joelittlejohn/jsonschema2pojo that referenced this issue Sep 12, 2017
SpaceBison added a commit to SpaceBison/jsonschema2pojo that referenced this issue Sep 12, 2017
Moved from the wiki

Update link to 'contributing' help

This is not in the standard place (CONTRIBUTING.md) not the wiki.

Fix Scala version to 2.10.1 to avoid confusing Gradle when it reads scalagen

Bump to 0.5.0 in next release

Add fork of scalagen that suffer artifact resolution problems

See timowest/scalagen#87
wigbam pushed a commit to wigbam/jsonschema2pojo that referenced this issue Nov 25, 2017
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