Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Bitbucket pipeline maven dependency 308 error


My pipeline is suddenly failing with a Maven dependency 308 (permanent redirect) error. There has been no change to that or it's upstream dependency, and the build runs fine locally. I've also verified the existence and accessibility of the artifact, and do not see any redirects when accessing from my browser.  I've tried re-running over several days, but no cigar. using maven:3.6.1-jdk-8

Any help much appreciated!

Here's the error:

[ERROR] Failed to execute goal on project rhythm-domain-services: Could not resolve dependencies for project Failed to collect dependencies at net.sf.jasperreports:jasperreports:jar:6.11.0 -> com.lowagie:itext:jar:2.1.7.js7: Failed to read artifact descriptor for com.lowagie:itext:jar:2.1.7.js7: Could not transfer artifact com.lowagie:itext:pom:2.1.7.js7 from/to jaspersoft-third-party ( Failed to transfer file with status code 308 -> [Help 1]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1]

3 answers

As it turns out, it was a problem with one of the 3rd party lib dependency repos with 6.11 of jasperreports... suddenly went offline or something corrupted... updated to 6.17 and all good now.

I had version 6.16 and after upgrade to 6.17 problem is gone. Thanks for help.

I had the same issue. Adding following repo to my pom file resolved my problem.

<name>Grails core</name>

That didn't resolve it for me.

I solved it by resolving other problems in the pom file. The error that was shown, wasn't the actual problem. As stated below, check your dependencies.

I have exactly the same error code 308 with jaspersoft third-party-ce-artifacts. I'm using maven:3.6.3-jdk-8.

Last successful build pipeline was in June 12th and from June 15th pipeline is always failed with this error.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Bitbucket

📣 Calling Bitbucket Data Center customers to participate in research

Hi everyone, Are you Bitbucket DC customer? If so, we'd love to talk to you! Our team wants to dive deep to understand your long-term plans regarding Bitbucket DC and Atlassian Cloud. Do you plan...

126 views 2 4
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you