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

401 from jitpack server for my github public build #51

Closed
walec51 opened this issue May 6, 2015 · 11 comments
Closed

401 from jitpack server for my github public build #51

walec51 opened this issue May 6, 2015 · 11 comments

Comments

@walec51
Copy link

walec51 commented May 6, 2015

Hi,

I've created this release form my fix to Spring Data Cassandra:
https://jitpack.io/#walec51/spring-data-cassandra/DATACASS-182-fix

copy-pasted the right gradle code, but when I try to build I get:

:order-service:compileJava

FAILURE: Build failed with an exception.

* What went wrong:
Could not resolve all dependencies for configuration ':order-service:compile'.
> Could not resolve com.github.walec51:spring-data-commons:DATACASS-182-fix.
  Required by:
      pl.allegro.transaction.order:order-service:0.7.2-SNAPSHOT > com.github.walec51:spring-data-cassandra:DATACASS-182-fix
   > Could not GET 'https://jitpack.io/com/github/walec51/spring-data-commons/DATACASS-182-fix/spring-data-commons-DATACASS-182-fix.pom'. Received status code 401 from server: Repository not found or requires authentication
@jitpack-io
Copy link
Member

Ok, fixed the problem with dependencies. Unfortunately looks like there's a compilation error:
https://jitpack.io/com/github/walec51/spring-data-cassandra/DATACASS-182-fix/build.log

@walec51
Copy link
Author

walec51 commented May 6, 2015

this is strange because I actualy fixed that compilation error in that branch

@walec51
Copy link
Author

walec51 commented May 6, 2015

I created another release to make sure:
https://jitpack.io/#walec51/spring-data-cassandra/DATACASS-182-2
and again I've got 401

@jitpack-io
Copy link
Member

Oh right, probably because that release was created before our fix. Rebuilt it now and and the artifacts appear to be in place. Tried it in a maven build and it could download them.
How does it look now? Maven might need the -U switch to redownload dependencies.

@walec51
Copy link
Author

walec51 commented May 6, 2015

The build for my second release seams to be ok:
https://jitpack.io/com/github/walec51/spring-data-cassandra/DATACASS-182-2/build.log

But when I try to get:
https://jitpack.io/com/github/walec51/spring-data-commons/DATACASS-182-2/spring-data-commons-DATACASS-182-2.pom

I still get a 401 error - the same one I've got in the previous release.

@jitpack-io
Copy link
Member

Yes, the url in the first error message was wrong. spring-data-commons module does not exist in this project so it returns 401. Currently spring-data-cassandra depends on spring-data-commons but it downloads it from maven central.

If you add the dependency then it should download both:
compile 'com.github.walec51:spring-data-cassandra:DATACASS-182-fix

@jitpack-io
Copy link
Member

Indeed and ${project.groupId} is set to org.springframework.data so it won't be downloaded from JitPack. JitPack only handles com.github.* groups. Instead gradle will look in mavenCentral() assuming it is added to your build.gradle.

Btw, did you want to use a fork spring-data-commons as well? Its possible but then you'd need to replace the ${project.groupId} with 'com.github.walec51'.

The errors might be due to some errors being cached so maybe deleting ~/.gradle/caches will help.
Gradle should be downloading this file:
https://jitpack.io/com/github/walec51/spring-data-cassandra/DATACASS-182-2/spring-data-cassandra-DATACASS-182-2.pom
Does it open for you?

Is your build file is on GitHub somewhere? It might make it easier to pinpoint your issue.

@walec51
Copy link
Author

walec51 commented May 7, 2015

it worked for com.github.walec51:spring-data-cassandra:DATACASS-182-2 now
thanks !

@jitpack-io
Copy link
Member

Fantastic! Sorry for the confusion : )

@walec51
Copy link
Author

walec51 commented May 7, 2015

also I created another release and no problems happened this time
thanks for the help and a great tool :)

@jitpack-io
Copy link
Member

Even better! Happy building!:)

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

2 participants