We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Maven not authorised message

Hi,

I am getting the following warning message when I execute mvn install or mvn package.

Downloading:
http://maven.aspose.com/repository/repo/ch/qos/logback/logback-classic/maven-metadata.xml

[WARNING] Could not transfer metadata ch.qos.logback:logback-classic/maven-metadata.xml from/to aspose-maven-repository (https://repository.aspose.com/repo/): Not authorized , ReasonPhrase:Unauthorized.

[WARNING] The artifact org.apache.commons:commons-io:jar:1.3.2 has been relocated to commons-io:commons-io:jar:1.3.2

Following this maven configuration

aspose-maven-repository
https://repository.aspose.com/repo/
true
false
com.aspose
aspose-slides
16.12.0

Even though it is warning, it is annoying me and I would like to get rid of this message in a proper way

Thank you

Hi,


I have observed your comments. I like to share that this problem occur due to maven settings on your pc. Please visit this link for more details. As maven setting is not part of Aspose.Slides so we can only provide this. Also please visit this link

Best Regards,
Thank you.
I googled it first, before posting :). But thanks for sharing the links.

Look, when I access the URL
http://maven.aspose.com/repository/repo/ch/qos/logback/logback-classic/maven-metadata.xml
it asks for credentials, that's why I am facing this problem.
I don't get it when accessing other Aspose repo folders, eg http://maven.aspose.com/repository/repo/com/aspose/aspose-slides/, http://maven.aspose.com/repository/repo/com/aspose/aspose-slides/17.1/. which I presume it is open! But then, logback-classic is a dependency of your project and then maven reactor tries to find it in the same repo, as it finds then I get the warning.

btw, checking the entire folder I don't the Credentials Popup http://maven.aspose.com/repository/repo/ch/qos/logback/logback-classic/ but the folder "looks" empty, Maybe file permission in your mvn repo ?!

Thank you

I have discussed the issue in detail with our prduct team.First of all following maven repo is incorrect.

https://repository.aspose.com/repo/

Actually, Aspose Artifactory has only one repo - ext-release-local. Can you please check http://maven.aspose.com/repository/webapp/browserepo.html?2

Secondly, there have been only one repository record shared by you in your post and we are not sure if there is only one or more. However, we have observed following repo in your log:

http://maven.aspose.com/repository/repo/ch/qos/logback/logback-classic/maven-metadata.xml

Which means that maven would like download some dependencies through our server. First of all, you should use other repositories, i.e. add ‘repository’ nodes that points to other servers. it will allow for maven to download files from correct locations, not from our server. Please note that maven use Central Repository by default, i.e. it is not necessary to add http://repo1.maven.org/ to your configs.

Also, maven has curious way for dependencies downloading. Since there is no way to link some dependency to concrete repository, maven will iterates through repositories list and try to downloading from each location. Thus, that warning is the maven trait and is irrelevant to Aspose.Slides and to Aspose in general.

In this situation, we could recommend you to add Central Repo to your config file at top of list. For example, some thing like below can be adopted:
true
true
My local repo
http://local/repo
true
true
central
http://repo1.maven.org/maven2
true
false

maven.aspose.com
maven.aspose.com-releases
http://maven.aspose.com/repository/ext-release-local

The order of the repositories in config will also decide the order of the repository access. I hope the shared information will be helpful.

Many Thanks,

Thank you for the explanation!

Well, the maven repo I am using has been confirmed in my other post - License + Maven Dependency and Aspose Repo:
https://forum.aspose.com/t/license-maven-dependency-and-aspose-repo/8631 ( I will update my thread in case future users go thru it )

Anyway, I updated to the one you recommended and I don’t get the warning anymore!

That’s great!.

Thanks a lot.

Hi Guilherme,


Thanks for showing interest in Aspose.Slides.

Best Regards,