Maven cannot resolve dependency with a specific version of a jar

I am trying to get a specific version of jar from the public adobe repository:

<dependency>
   <groupId>com.adobe.granite</groupId>
   <artifactId>com.adobe.granite.asset.api</artifactId>
   <version>2.0.4</version>
</dependency>

There are 3 versions that I can see in the repository:

  • 1.4
  • 1,6
  • 2.0.4

But Maven can only get 1.4 and 1.6 when I try to get maven throws 2.0.4 exception:

Failed to read artifact descriptor for com.adobe.granite:com.adobe.granite.asset.api:jar:2.0.4.

Does anyone know what I missed?

+4
source share
1 answer

You need to download the β€œparent” project for asset.api and then seal it in your local repository

mvn install:install-file -Dfile=path-to-file -DpomFile=path-to-pomfile

jar "parent" 33, com.adobe.granite.asset.api, adbre 32 33

+1

Source: https://habr.com/ru/post/1613476/


All Articles