Preparing for Jira 10 migration - Dependency issue coming

[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  01:24 min
[INFO] Finished at: 2024-07-30T10:14:04+05:30
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project je: Could not resolve dependencies for project com.thed.zephyr:je:atlassian-plugin:10.0.1: Failed to collect dependencies at com.atlassian.jira:jira-func-tests:jar:10.0.0-m0008 -> com.atlassian:flaky-test-reporter:jar:4.0.16: Failed to read artifact descriptor for com.atlassian:flaky-test-reporter:jar:4.0.16: The following artifacts could not be resolved: com.atlassian:flaky-test-reporter:pom:4.0.16 (absent): Could not transfer artifact com.atlassian:flaky-test-reporter:pom:4.0.16 from/to inhouse2 (https://svninfra.yourzephyr.com/repository): Connect to svninfra.yourzephyr.com:443 [svninfra.yourzephyr.com/3.13.26.137, svninfra.yourzephyr.com/3.23.121.77] failed: Connect timed out -> [Help 1]
[ERROR] 
[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] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException

When we are trying to build Jira10 with Java 17,
with the below dependency-><jira.version>10.0.0-m0008</jira.version>
It is throwing the above mentioned error. Can anyone please help in resolving the above issue.

2 Likes

Hi @RaghunandanTata

Strange because still present, you can see the dependency inside the pom → Index of maven-atlassian-external/com/atlassian/jira/jira-func-tests/10.0.0-m0008

But you can manually pull this dependency → Index of maven-atlassian-external/com/atlassian/flaky-test-reporter

https://mvnrepository.com/artifact/com.atlassian/flaky-test-reporter

I hope I was able to help you a little.
Fabien

1 Like

Thank u so much @FabienPenchenat !
It worked for me.

1 Like

I have one more doubt… Now compilation error is not coming while creating .obr file but none of our APIs are working , giving 403 error for Jira 10.

@Path("importer")
//@AnonymousAllowed
//@ResourceFilters(ZFJApiFilter.class)
@UnrestrictedAccess
@ZSFilterNameBinding
public class IssueImporterResource {
@Inject
	public IssueImporterResource(JiraAuthenticationContext authContext, IssueImporterResourceDelegate issueImportResourceDelegate

I have above annotations on my class and in atlassian-plugin.xml
following is the change

 <component key="issueImporterService" name="Issue Importer Service"
               class="com.thed.zephyr.je.service.impl.IssueImporterServiceImpl"/>

The above one was working for Jira 9, but for Jira 10 it’s giving 403 not found error.
Can you please help me with this. If any other detail u want, please reply on thread will give that detail as well

Hi @RaghunandanTata

I’m glad I could help you with the initial issue. You can go ahead and mark that as solved.
This could easily help people who have the same problem as you.

I’ll try to assist you with this new problem directly in this thread :+1:

Fabien