-
Notifications
You must be signed in to change notification settings - Fork 121
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
2.1 maven integration issue #571
Comments
@ChristianCiach Commented |
@pavelbucek Commented (we don't see that in maven and we are referencing jax-rs api in multiple places; I don't believe this is related to any profile declared in pom.xml). |
@ChristianCiach Commented I can't find anything about a magic variable called |
@ChristianCiach Commented |
@ChristianCiach Commented It would be nice if you at least could define a profile that is active by default:
Such a profile is picked up by gradle. You can still override these properties depending on the JDK-versions. Gradle will ignore these additional profiles. Is this something you could do for us gradle users, please? |
@pavelbucek Commented And since this is not a bug in JAX-RS deployment descriptor - the issue is in how gradle parses/uses pom files - I don't see this as a reason for 2.1.1 release. |
@crizo23 Commented |
@ibaca Commented |
@ChristianCiach Commented
It does not work for me. What repository and gradle version are you using? |
@ibaca Commented |
@sslavic Commented In my case jax-rs api is a transitive dependency. As workaround tried ronmamo/reflections#169 (comment) and sbt/sbt#3618 (comment) but neither worked fully - with Ivy cache clean, initial build would fail. Only workaround that handles well clean local repo case was to explicitly add dependency to jax-rs api and defining jar artifact
|
@maltem-za Commented |
|
I'm not sure if this is the right place to post this, but here goes.
I'm attempting to pull in jax-rs 2.1 in Gradle. Gradle complains that it can't resolve due to:
Could not HEAD 'http://central.maven.org/maven2/javax/ws/rs/javax.ws.rs-api/2.1/javax.ws.rs-api-2.1.$%7Bpackaging.type%7D'
As you can see, the packaging .type variable is not getting resolved. I'm wondering if it's because the maven profile isn't getting set due to an incorrect value.
The [jax-rs 2.1 POM][1] defines the "jdk8-" profile as:
jdk8-
(,9)
..
I'm wondering if the (,9) is preventing any profile from getting picked up:
(,9)
According to the maven [range spec][2], should it be:
(,1.9)
The text was updated successfully, but these errors were encountered: