Forum Discussion
Can we integrate azure board in java application for retrieving projects, work items operations
<dependency> <groupId>com.microsoft.azure</groupId> <artifactId>azure-devops-java-sdk</artifactId> <version>1.0.0</version> </dependency>
have added the maven dependency in my test project but it says Could not find artifact com.microsoft.azure:azure-devops-java-sdk:pom:1.0.0 in central (https://repo.maven.apache.org/maven2)
is of now i did not found any documentation about this from azure , is it official sdk from azure devops so can do my operations like fetch projects, project level iterations, project level iteration associated work items using wiql etc.
- balasubramanimDec 05, 2024Iron Contributor
You are encountering an error because the Maven Central Repository doesn't host an artifact with the coordinates com.microsoft.azure:azure-devops-java-sdk:1.0.0. This suggests that such an artifact isn't officially provided by Microsoft for Azure DevOps services.
Official SDKs - Microsoft offers the Azure SDK for Java(https://learn.microsoft.com/en-us/azure/developer/java/sdk/), which includes client libraries for various Azure services. However, it doesn't provide a dedicated SDK for Azure DevOps services, including Azure Boards.
Options:
1. Use REST API - Azure DevOps REST API allows you to fetch projects, iterations, and work items. Use HTTP clients like Apache HttpClient or OkHttp in your Java app.2. Community SDK - A community-driven Azure DevOps Java SDK exists, but it’s not officially supported by Microsoft.
Add it via
<dependency>
<groupId>com.microsoft.azure</groupId>
<artifactId>azure-devops-java-sdk</artifactId>
<version>6.0.0</version>
</dependency>3. Ensure access to its hosting repository if needed.