Azure-Samples / azure-sdk-for-java-storage-blob-upload-download

How to upload and download blobs from Azure Blob Storage with Java
16 stars 34 forks source link

[bug] Maven dependency issues in the v12 folder #15

Open jbauerrfid opened 2 years ago

jbauerrfid commented 2 years ago

Maven fails to fetch the dependencies for the v12.0.0 components.

Tested it a bit, and these dependencies work:

  <dependencies>
    <dependency>
     <groupId>com.azure</groupId>
     <artifactId>azure-storage-common</artifactId>
     <version>12.13.0</version>
   </dependency>
    <dependency>
     <groupId>com.azure</groupId>
     <artifactId>azure-storage-blob</artifactId>
     <version>12.14.0</version>
   </dependency>
  </dependencies>

The <repository> section is unnecessary, these dependencies exist on maven central.

Tested with:

mvn -version
Apache Maven 3.6.3 (cecedd343002696d0abb50b32b541b8a6ba2883f)
Maven home: C:\Program Files\Maven\bin\..
Java version: 11.0.7, vendor: Azul Systems, Inc., runtime: C:\Program Files\Zulu\zulu-11
Default locale: de_DE, platform encoding: Cp1252
OS name: "windows 10", version: "10.0", arch: "amd64", family: "windows"

java -version
openjdk version "11.0.7" 2020-04-14 LTS
OpenJDK Runtime Environment Zulu11.39+15-CA (build 11.0.7+10-LTS)
OpenJDK 64-Bit Server VM Zulu11.39+15-CA (build 11.0.7+10-LTS, mixed mode)

Also temporarily disabled the maven settings.xml to avoid potential trouble with my private repos, but same result.

jbauerrfid commented 2 years ago

Update - Root cause:

Further investigation revealed that the azure-storage-blob 12.0.0 pom.xml file is missing in the maven repository,

jongio commented 2 years ago

@conniey - Can you have a look?