[
https://issues.apache.org/jira/browse/CAMEL-19494?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18039312#comment-18039312
]
Valeriy Ak commented on CAMEL-19494:
------------------------------------
[~davsclaus]
This update isn’t as simple as I initially thought:
# The new dependencies were compiled with Java 21, so they won’t work on Java
17. I think this is critical for the 4.x versions.
# The required dependency {{io.atlassian.util.concurrent:4.1.0}} isn’t
available in Maven Central — only version 4.0.1 exists. -
[https://mvnrepository.com/artifact/io.atlassian.util.concurrent/atlassian-util-concurrent]
.
## I don’t know how to create a ticket for them, since I don’t have
permissions to create issues in their task tracker -
[https://ecosystem.atlassian.net/jira/software/c/projects/AHTTP.]
## I also want to note that the tests in this component do not cover the
{{io.atlassian}} and {{com.atlassian}} packages and mock all of they, so it’s
not possible to fully test this solution (I’m not ready to create new tests
now).
Here is the updated POM that will work in the 4.x versions with the issues
described above.
I don’t think it should be merged into _main_ right now.
{code:java}
<?xml version="1.0" encoding="UTF-8"?>
<!--
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to You under the Apache License, Version 2.0
(the "License"); you may not use this file except in compliance with
the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.apache.camel</groupId>
<artifactId>components</artifactId>
<version>4.17.0-SNAPSHOT</version>
</parent>
<artifactId>camel-jira</artifactId>
<packaging>jar</packaging>
<name>Camel :: JIRA</name>
<repositories>
<repository>
<id>atlassian</id>
<url>https://packages.atlassian.com/maven-external/</url>
<name>atlassian external repo</name>
<snapshots>
<enabled>false</enabled>
</snapshots>
<releases>
<enabled>true</enabled>
</releases>
</repository>
</repositories>
<dependencies>
<dependency>
<groupId>org.apache.camel</groupId>
<artifactId>camel-support</artifactId>
</dependency>
<dependency>
<groupId>org.apache.camel</groupId>
<artifactId>camel-file</artifactId>
</dependency>
<dependency>
<groupId>com.google.oauth-client</groupId>
<artifactId>google-oauth-client</artifactId>
<version>${google-oauth-client-version}</version>
<exclusions>
<exclusion>
<groupId>com.google.code.findbugs</groupId>
<artifactId>jsr305</artifactId>
</exclusion>
</exclusions>
</dependency>
<!-- atlassian jira dependencies -->
<dependency>
<groupId>io.atlassian.util.concurrent</groupId>
<artifactId>atlassian-util-concurrent</artifactId>
<version>4.0.1</version>
</dependency>
<dependency>
<groupId>com.atlassian.jira</groupId>
<artifactId>jira-rest-java-client-api</artifactId>
<version>7.0.1</version>
<exclusions>
<exclusion>
<groupId>com.google.code.findbugs</groupId>
<artifactId>jsr305</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>com.atlassian.jira</groupId>
<artifactId>jira-rest-java-client-core</artifactId>
<version>7.0.1</version>
<exclusions>
<exclusion>
<groupId>org.codehaus.jettison</groupId>
<artifactId>jettison</artifactId>
</exclusion>
<exclusion>
<groupId>org.apache.httpcomponents</groupId>
<artifactId>httpclient</artifactId>
</exclusion>
<exclusion>
<groupId>io.atlassian.util.concurrent</groupId>
<artifactId>atlassian-util-concurrent</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>io.atlassian.fugue</groupId>
<artifactId>fugue</artifactId>
<version>${atlassian-fugue-version}</version>
</dependency>
<!-- Aligning versions with versions defined in parent pom -->
<dependency>
<groupId>org.codehaus.jettison</groupId>
<artifactId>jettison</artifactId>
<version>${jettison-version}</version>
</dependency>
<dependency>
<groupId>org.apache.httpcomponents</groupId>
<artifactId>httpclient</artifactId>
<version>${httpclient4-version}</version>
</dependency>
<!-- testing -->
<dependency>
<groupId>org.apache.camel</groupId>
<artifactId>camel-test-junit5</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.mockito</groupId>
<artifactId>mockito-junit-jupiter</artifactId>
<version>${mockito-version}</version>
<scope>test</scope>
</dependency>
</dependencies>
</project>
{code}
> camel-jira uses javax jaxrs artifacts
> -------------------------------------
>
> Key: CAMEL-19494
> URL: https://issues.apache.org/jira/browse/CAMEL-19494
> Project: Camel
> Issue Type: Task
> Components: camel-jira
> Affects Versions: 4.0-M3
> Reporter: Federico Mariani
> Priority: Major
> Fix For: 4.17.0
>
> Attachments: image-2025-11-18-17-38-53-285.png
>
>
> The camel-Jira dependency
> [jira-rest-java-client-core|https://github.com/apache/camel/blob/main/components/camel-jira/pom.xml#L93]
> is based on [javax jaxrs
> API|https://bitbucket.org/atlassian/jira-rest-java-client/src/11ed4ea88f4c077377365897ab1b5a1abaac68a3/core/src/main/java/com/atlassian/jira/rest/client/internal/async/AsynchronousAuditRestClient.java#lines-14],
> therefore in camel 4 the component cannot be used due to class not found and
> incompatible APIs.
> [Seems like there are no plans from atlassian to migrate to the latest jaxrs
> spec.|https://community.atlassian.com/t5/Jira-questions/Is-jira-rest-java-client-core-going-to-be-updated/qaq-p/1913617]
> Do you think that the component should be (hopefully temporarily) removed
> from Camel 4?
--
This message was sent by Atlassian Jira
(v8.20.10#820010)